pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/csound6 add options.mk to csound6 and use it to ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d9968384842b
branches:  trunk
changeset: 418887:d9968384842b
user:      mrg <mrg%pkgsrc.org@localhost>
date:      Sat Dec 07 10:24:02 2019 +0000

description:
add options.mk to csound6 and use it to (optionally, non default)
disable including pulseaudio support.

diffstat:

 audio/csound6/Makefile   |   5 +++--
 audio/csound6/PLIST      |   4 ++--
 audio/csound6/options.mk |  13 +++++++++++++
 3 files changed, 18 insertions(+), 4 deletions(-)

diffs (57 lines):

diff -r 4285a0544a12 -r d9968384842b audio/csound6/Makefile
--- a/audio/csound6/Makefile    Sat Dec 07 07:44:36 2019 +0000
+++ b/audio/csound6/Makefile    Sat Dec 07 10:24:02 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 2019/11/03 11:51:01 rillig Exp $
+# $NetBSD: Makefile,v 1.42 2019/12/07 10:24:02 mrg Exp $
 
 DISTNAME=              csound-${CSOUND_VERSION}
 PKGNAME=               csound6-${CSOUND_VERSION}
@@ -41,10 +41,11 @@
                rm -f bin/csound6 && \
                ${LN} -s ../lib/csound6/csound bin/csound6
 
+.include "options.mk"
+
 .include "../../audio/fluidsynth/buildlink3.mk"
 .include "../../audio/libsamplerate/buildlink3.mk"
 .include "../../audio/libsndfile/buildlink3.mk"
-.include "../../audio/pulseaudio/buildlink3.mk"
 .include "../../mk/jpeg.buildlink3.mk"
 .include "../../devel/boost-libs/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
diff -r 4285a0544a12 -r d9968384842b audio/csound6/PLIST
--- a/audio/csound6/PLIST       Sat Dec 07 07:44:36 2019 +0000
+++ b/audio/csound6/PLIST       Sat Dec 07 10:24:02 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2019/11/02 22:25:46 mrg Exp $
+@comment $NetBSD: PLIST,v 1.7 2019/12/07 10:24:02 mrg Exp $
 bin/csound6
 include/csound6/CppSound.hpp
 include/csound6/CsoundFile.hpp
@@ -82,7 +82,7 @@
 lib/csound6/plugins-6.0/libpvsops.so
 lib/csound6/plugins-6.0/libpy.so
 lib/csound6/plugins-6.0/libquadbezier.so
-lib/csound6/plugins-6.0/librtpulse.so
+${PLIST.pulseaudio}lib/csound6/plugins-6.0/librtpulse.so
 lib/csound6/plugins-6.0/libscansyn.so
 lib/csound6/plugins-6.0/libscugens.so
 lib/csound6/plugins-6.0/libselect.so
diff -r 4285a0544a12 -r d9968384842b audio/csound6/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/csound6/options.mk  Sat Dec 07 10:24:02 2019 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2019/12/07 10:24:02 mrg Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.csound6
+PKG_SUPPORTED_OPTIONS= pulseaudio
+PKG_SUGGESTED_OPTIONS= pulseaudio
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=            pulseaudio
+.if !empty(PKG_OPTIONS:Mpulseaudio)
+.include "../../audio/pulseaudio/buildlink3.mk"
+PLIST.pulseaudio=      yes
+.endif



Home | Main Index | Thread Index | Old Index