git: a6e4e0d324d2 - main - audio/portaudio: Install missing source files to build examples.

From: Hans Petter Selasky <hselasky_at_FreeBSD.org>
Date: Tue, 06 Dec 2022 17:01:42 UTC
The branch main has been updated by hselasky:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a6e4e0d324d2c661b2e6434faefd492d11af2fb8

commit a6e4e0d324d2c661b2e6434faefd492d11af2fb8
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2022-10-19 11:18:11 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2022-12-06 17:00:45 +0000

    audio/portaudio: Install missing source files to build examples.
    
    PR: 267181
    Approved by: pi (implicit)
---
 audio/portaudio/Makefile             |  6 +++++-
 audio/portaudio/files/pkg-message.in | 14 ++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

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