git: 4ec1f052f21c - main - audio/rtaudio: Add PULSEAUDIO option to enable use with PulseAudio

Yuri Victorovich yuri at FreeBSD.org
Thu May 13 23:43:52 UTC 2021


The branch main has been updated by yuri:

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

commit 4ec1f052f21c47fbb2b310d945c756fd022dc521
Author:     Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-05-13 23:37:52 +0000
Commit:     Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-05-13 23:37:52 +0000

    audio/rtaudio: Add PULSEAUDIO option to enable use with PulseAudio
    
    PR:             255853
    Reported by:    Duane <parakleta at darkreality.org>
---
 audio/rtaudio/Makefile | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/audio/rtaudio/Makefile b/audio/rtaudio/Makefile
index 290989da485c..83cb2e4ac011 100644
--- a/audio/rtaudio/Makefile
+++ b/audio/rtaudio/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	rtaudio
 DISTVERSION=	5.1.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	audio
 
 MAINTAINER=	yuri at FreeBSD.org
@@ -9,11 +9,22 @@ COMMENT=	C++ classes that provide a common API for realtime audio input/output
 LICENSE=	MIT
 
 USES=		autoreconf compiler:c++11-lang libtool pkgconfig
+USE_LDCONFIG=	yes
+
 USE_GITHUB=	yes
 GH_ACCOUNT=	thestk
+
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-static
-USE_LDCONFIG=	yes
+
 INSTALL_TARGET=	install-strip
 
+OPTIONS_DEFINE=			PULSEAUDIO
+OPTIONS_DEFAULT=		PULSEAUDIO
+
+PULSEAUDIO_CONFIGURE_WITH=	pulse
+PULSEAUDIO_USES=		localbase:ldflags
+PULSEAUDIO_LDFLAGS=		-lpulse # see https://github.com/thestk/rtaudio/issues/293
+PULSEAUDIO_LIB_DEPENDS=		libpulse.so:audio/pulseaudio
+
 .include <bsd.port.mk>


More information about the dev-commits-ports-all mailing list