aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2022-10-19 11:18:11 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2022-12-06 17:00:45 +0000
commita6e4e0d324d2c661b2e6434faefd492d11af2fb8 (patch)
treeb569fedd9d8b79e1478bf6af3b12233cede8c829
parentf7ed2f7db48d0836b87e67d68d79126cc7d2ad3a (diff)
downloadports-a6e4e0d324d2c661b2e6434faefd492d11af2fb8.tar.gz
ports-a6e4e0d324d2c661b2e6434faefd492d11af2fb8.zip
audio/portaudio: Install missing source files to build examples.
PR: 267181 Approved by: pi (implicit)
-rw-r--r--audio/portaudio/Makefile6
-rw-r--r--audio/portaudio/files/pkg-message.in14
2 files changed, 19 insertions, 1 deletions
diff --git a/audio/portaudio/Makefile b/audio/portaudio/Makefile
index 358c642420b1..9f9c5c74f90c 100644
--- a/audio/portaudio/Makefile
+++ b/audio/portaudio/Makefile
@@ -1,6 +1,6 @@
PORTNAME= portaudio
PORTVERSION= 19.6.0
-PORTREVISION= 6
+PORTREVISION= 7
PORTEPOCH= 1
CATEGORIES= audio
MASTER_SITES= http://www.portaudio.com/archives/
@@ -34,6 +34,8 @@ PORTEXAMPLES= *
OPTIONS_DEFINE= DOCS DOXYGEN EXAMPLES JACK PATEST SNDIO
OPTIONS_SUB= yes
+SUB_FILES= pkg-message
+
PATEST_DESC= PortAudio Test Programs
DOXYGEN_IMPLIES= DOCS
@@ -69,6 +71,8 @@ post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/bindings/cpp/example/*.cxx \
${WRKSRC}/examples/*.c ${WRKSRC}/examples/*.cpp \
+ ${WRKSRC}/src/os/unix/*.[ch] \
+ ${WRKSRC}/src/common/*.[ch] \
${STAGEDIR}${EXAMPLESDIR}
post-install-PATEST-on:
diff --git a/audio/portaudio/files/pkg-message.in b/audio/portaudio/files/pkg-message.in
new file mode 100644
index 000000000000..7bfeb760856a
--- /dev/null
+++ b/audio/portaudio/files/pkg-message.in
@@ -0,0 +1,14 @@
+[
+{ type: install
+ message: <<EOM
+%%EXAMPLES%%#
+%%EXAMPLES%%# PortAudio test programs can be built like this:
+%%EXAMPLES%%#
+%%EXAMPLES%%# cd %%EXAMPLESDIR%%
+%%EXAMPLES%%# cc -L%%PREFIX%%/lib -lm -lpthread -lportaudio -I%%PREFIX%%/include \
+%%EXAMPLES%%# pa_unix*.c pa_allocation.c pa_ringbuffer.c pa_debugprint.c \
+%%EXAMPLES%%# pa_front.c paex_ocean_shore.c
+%%EXAMPLES%%#
+EOM
+}
+]