1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

audio/portaudio: Install missing source files to build examples.

PR: 267181
Approved by: pi (implicit)
This commit is contained in:
Hans Petter Selasky 2022-10-19 13:18:11 +02:00
parent f7ed2f7db4
commit a6e4e0d324
2 changed files with 19 additions and 1 deletions

View File

@ -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:

View File

@ -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
}
]