aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorBeech Rintoul <beech@FreeBSD.org>2013-03-23 00:07:40 +0000
committerBeech Rintoul <beech@FreeBSD.org>2013-03-23 00:07:40 +0000
commita8a5644e9587ef65d6eebc3d085622058f10e5d0 (patch)
tree6315dc74a8cd4d53fe40bcc59a09e902e7eb6b0a /audio
parent0827374d962733998aef34fcbb4ccf2fa1fb69a0 (diff)
downloadports-a8a5644e9587ef65d6eebc3d085622058f10e5d0.tar.gz
ports-a8a5644e9587ef65d6eebc3d085622058f10e5d0.zip
Notes
Diffstat (limited to 'audio')
-rw-r--r--audio/portaudio2/Makefile10
-rw-r--r--audio/portaudio2/pkg-plist31
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