diff options
author | beech <beech@FreeBSD.org> | 2013-03-23 08:07:40 +0800 |
---|---|---|
committer | beech <beech@FreeBSD.org> | 2013-03-23 08:07:40 +0800 |
commit | 8647d54e3f8ecc986840621adb6aa648ab806f91 (patch) | |
tree | 6315dc74a8cd4d53fe40bcc59a09e902e7eb6b0a /audio | |
parent | 02e7c25fee1cb05cf7f67c71b95ee9c121e7e231 (diff) | |
download | freebsd-ports-gnome-8647d54e3f8ecc986840621adb6aa648ab806f91.tar.gz freebsd-ports-gnome-8647d54e3f8ecc986840621adb6aa648ab806f91.tar.zst freebsd-ports-gnome-8647d54e3f8ecc986840621adb6aa648ab806f91.zip |
- Makefile tweaks
- fix NOPORTDOCS
PR: ports/177038
Submitted by: nemysis <nemysis@gmx.ch> (maintainer)
Diffstat (limited to 'audio')
-rw-r--r-- | audio/portaudio2/Makefile | 10 | ||||
-rw-r--r-- | audio/portaudio2/pkg-plist | 31 |
2 files changed, 17 insertions, 24 deletions
diff --git a/audio/portaudio2/Makefile b/audio/portaudio2/Makefile index 0e38d2571781..879c54e98cea 100644 --- a/audio/portaudio2/Makefile +++ b/audio/portaudio2/Makefile @@ -32,13 +32,14 @@ CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} PORTDOCS= * +PORTEXAMPLES= * DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}2 DOCSRCDIR1= ${WRKSRC} DOC_FILES1= README.txt index.html -OPTIONS_DEFINE= DOCS EXAMPLES JACK PATEST DOXYGEN +OPTIONS_DEFINE= JACK PATEST DOXYGEN OPTIONS_DEFAULT=PATEST DOXYGEN PATEST_DESC= PortAudio Test Programs @@ -70,6 +71,11 @@ post-patch: @${REINPLACE_CMD} -e 's|$$(DESTDIR)$$(libdir)/pkgconfig|$$(prefix)/libdata/pkgconfig|g' \ ${WRKSRC}/Makefile.in +.if ! ${PORT_OPTIONS:MEXAMPLES} + @${REINPLACE_CMD} -i '' '/EXAMPLES =/,/bin\/paex_write_sine_nonint/s/^/#/' \ + ${WRKSRC}/Makefile.in +.endif + post-install: .if ${PORT_OPTIONS:MPATEST} @(cd ${WRKSRC}/bin && for i in *; do ${MV} "$$i" "$${i}"-2; done) @@ -87,7 +93,7 @@ post-install: .endif .if ${PORT_OPTIONS:MEXAMPLES} - @cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR} + @(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}) .endif .include <bsd.port.mk> diff --git a/audio/portaudio2/pkg-plist b/audio/portaudio2/pkg-plist index 29946c0e9453..cb9f67c7690c 100644 --- a/audio/portaudio2/pkg-plist +++ b/audio/portaudio2/pkg-plist @@ -1,13 +1,13 @@ -%%PATEST%%bin/pa_devs-2 -%%PATEST%%bin/pa_fuzz-2 +%%PORTEXAMPLES%%bin/pa_devs-2 +%%PORTEXAMPLES%%bin/pa_fuzz-2 %%PATEST%%bin/pa_minlat-2 -%%PATEST%%bin/paex_pink-2 -%%PATEST%%bin/paex_read_write_wire-2 -%%PATEST%%bin/paex_record-2 -%%PATEST%%bin/paex_saw-2 -%%PATEST%%bin/paex_sine-2 -%%PATEST%%bin/paex_write_sine-2 -%%PATEST%%bin/paex_write_sine_nonint-2 +%%PORTEXAMPLES%%bin/paex_pink-2 +%%PORTEXAMPLES%%bin/paex_read_write_wire-2 +%%PORTEXAMPLES%%bin/paex_record-2 +%%PORTEXAMPLES%%bin/paex_saw-2 +%%PORTEXAMPLES%%bin/paex_sine-2 +%%PORTEXAMPLES%%bin/paex_write_sine-2 +%%PORTEXAMPLES%%bin/paex_write_sine_nonint-2 %%PATEST%%bin/paqa_devs-2 %%PATEST%%bin/paqa_errs-2 %%PATEST%%bin/paqa_latency-2 @@ -46,18 +46,5 @@ lib/portaudio2/libportaudio.la lib/portaudio2/libportaudio.so lib/portaudio2/libportaudio.so.2 libdata/pkgconfig/portaudio-2.0.pc -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pa_devs.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pa_fuzz.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/paex_mono_asio_channel_select.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/paex_pink.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/paex_read_write_wire.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/paex_record.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/paex_saw.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/paex_sine.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/paex_wmme_ac3.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/paex_wmme_surround.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/paex_write_sine.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/paex_write_sine_nonint.c -%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% @dirrm lib/portaudio2 @dirrm include/portaudio2 |