pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/csound6 csound6: Support more audio backends.
details: https://anonhg.NetBSD.org/pkgsrc/rev/0f799c60b248
branches: trunk
changeset: 405783:0f799c60b248
user: nia <nia%pkgsrc.org@localhost>
date: Sun Dec 08 02:01:07 2019 +0000
description:
csound6: Support more audio backends.
Default to PortAudio since it's supported natively on most pkgsrc platforms.
Fix building with PKG_DEVELOPER and hdf5 installed.
Bump PKGREVISION
diffstat:
audio/csound6/Makefile | 11 ++++++++---
audio/csound6/PLIST | 7 ++++++-
audio/csound6/options.mk | 46 +++++++++++++++++++++++++++++++++++++++++++---
3 files changed, 57 insertions(+), 7 deletions(-)
diffs (124 lines):
diff -r 5bccf108981b -r 0f799c60b248 audio/csound6/Makefile
--- a/audio/csound6/Makefile Sun Dec 08 01:54:52 2019 +0000
+++ b/audio/csound6/Makefile Sun Dec 08 02:01:07 2019 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.42 2019/12/07 10:24:02 mrg Exp $
+# $NetBSD: Makefile,v 1.43 2019/12/08 02:01:07 nia Exp $
DISTNAME= csound-${CSOUND_VERSION}
PKGNAME= csound6-${CSOUND_VERSION}
+PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_GITHUB:=csound/}
GITHUB_PROJECT= csound
@@ -17,8 +18,9 @@
USE_TOOLS+= bison
CFLAGS+= -g -D__PKGSRC_PREFIX__=\"${PREFIX}/\" -DBETA
USE_CMAKE= yes
-CMAKE_ARGS+= -DUSE_PULSEAUDIO:BOOL=ON
-CMAKE_ARGS+= -DBUILD_RELEASE=1 -DCMAKE_BUILD_TYPE=Release
+CMAKE_ARGS+= -DBUILD_RELEASE=1
+CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release
+CMAKE_ARGS+= -DBUILD_HDF5_OPCODES=OFF
# CMAKE_INSTALL_RPATH doesn't work for some reason, so do it here.
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/csound6
@@ -30,7 +32,10 @@
INSTALLATION_DIRS= bin
CHECK_PORTABILITY_SKIP+= installer/misc/makedeb.sh \
+ installer/macosx/beta-build.sh \
+ installer/macosx/release-build.sh \
installer/macosx/release-build-10.8.sh \
+ installer/macosx/release-build-10.10.sh \
frontends/max_csound_tilde/installer/build-installer.sh \
frontends/max_csound_tilde/installer/build-installer-windows.sh
diff -r 5bccf108981b -r 0f799c60b248 audio/csound6/PLIST
--- a/audio/csound6/PLIST Sun Dec 08 01:54:52 2019 +0000
+++ b/audio/csound6/PLIST Sun Dec 08 02:01:07 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2019/12/07 10:24:02 mrg Exp $
+@comment $NetBSD: PLIST,v 1.8 2019/12/08 02:01:07 nia Exp $
bin/csound6
include/csound6/CppSound.hpp
include/csound6/CsoundFile.hpp
@@ -75,6 +75,8 @@
lib/csound6/plugins-6.0/libgtf.so
lib/csound6/plugins-6.0/libimage.so
lib/csound6/plugins-6.0/libipmidi.so
+${PLIST.jack}lib/csound6/plugins-6.0/libjackTransport.so
+${PLIST.jack}lib/csound6/plugins-6.0/libjacko.so
lib/csound6/plugins-6.0/libliveconv.so
lib/csound6/plugins-6.0/libmixer.so
lib/csound6/plugins-6.0/libpadsynth.so
@@ -82,6 +84,9 @@
lib/csound6/plugins-6.0/libpvsops.so
lib/csound6/plugins-6.0/libpy.so
lib/csound6/plugins-6.0/libquadbezier.so
+${PLIST.alsa}lib/csound6/plugins-6.0/librtalsa.so
+${PLIST.jack}lib/csound6/plugins-6.0/librtjack.so
+${PLIST.portaudio}lib/csound6/plugins-6.0/librtpa.so
${PLIST.pulseaudio}lib/csound6/plugins-6.0/librtpulse.so
lib/csound6/plugins-6.0/libscansyn.so
lib/csound6/plugins-6.0/libscugens.so
diff -r 5bccf108981b -r 0f799c60b248 audio/csound6/options.mk
--- a/audio/csound6/options.mk Sun Dec 08 01:54:52 2019 +0000
+++ b/audio/csound6/options.mk Sun Dec 08 02:01:07 2019 +0000
@@ -1,13 +1,53 @@
-# $NetBSD: options.mk,v 1.1 2019/12/07 10:24:02 mrg Exp $
+# $NetBSD: options.mk,v 1.2 2019/12/08 02:01:07 nia Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.csound6
-PKG_SUPPORTED_OPTIONS= pulseaudio
-PKG_SUGGESTED_OPTIONS= pulseaudio
+PKG_SUPPORTED_OPTIONS= jack portaudio pulseaudio
+
+.include "../../mk/bsd.fast.prefs.mk"
+
+.if ${OPSYS} == "Linux"
+PKG_SUPPORTED_OPTIONS+= alsa
+PKG_SUGGESTED_OPTIONS+= alsa
+.elif ${OPSYS} != "Darwin" && ${OPSYS} != "Haiku"
+PKG_SUGGESTED_OPTIONS+= portaudio
+.endif
.include "../../mk/bsd.options.mk"
+PLIST_VARS+= alsa
+.if !empty(PKG_OPTIONS:Malsa)
+.include "../../audio/alsa-lib/buildlink3.mk"
+CMAKE_ARGS+= -DUSE_ALSA=ON
+PLIST.alsa= yes
+.else
+CMAKE_ARGS+= -DUSE_ALSA=OFF
+.endif
+
+PLIST_VARS+= jack
+.if !empty(PKG_OPTIONS:Mjack)
+.include "../../audio/jack/buildlink3.mk"
+CMAKE_ARGS+= -DUSE_JACK=ON
+PLIST.jack= yes
+.else
+CMAKE_ARGS+= -DUSE_JACK=OFF
+.endif
+
+PLIST_VARS+= portaudio
+.if !empty(PKG_OPTIONS:Mportaudio)
+.include "../../audio/portaudio/buildlink3.mk"
+CMAKE_ARGS+= -DUSE_PORTAUDIO=ON
+CMAKE_ARGS+= -DPORTAUDIO_INCLUDE_PATH=${BUILDLINK_DIR}/include/portaudio2
+CMAKE_ARGS+= -DCMAKE_LIBRARY_PATH=${BUILDLINK_PREFIX.portaudio}/lib/portaudio2
+PLIST.portaudio= yes
+.else
+CMAKE_ARGS+= -DUSE_PORTAUDIO=OFF
+.endif
+
PLIST_VARS+= pulseaudio
.if !empty(PKG_OPTIONS:Mpulseaudio)
.include "../../audio/pulseaudio/buildlink3.mk"
+CMAKE_ARGS+= -DUSE_PULSEAUDIO=ON
PLIST.pulseaudio= yes
+.else
+CMAKE_ARGS+= -DUSE_PULSEAUDIO=OFF
.endif
Home |
Main Index |
Thread Index |
Old Index