diff options
author | nia <nia@pkgsrc.org> | 2019-12-08 02:01:07 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2019-12-08 02:01:07 +0000 |
commit | d70b4afb7d112615b70895cdd6c7a6803d0ecd5f (patch) | |
tree | 9319ccbcd65ecc3c88ca21ac0255ec97c20b94c4 /audio | |
parent | 4b60dcc15946a4f29304bbd24af14cddf19b41e9 (diff) | |
download | pkgsrc-d70b4afb7d112615b70895cdd6c7a6803d0ecd5f.tar.gz |
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 (limited to 'audio')
-rw-r--r-- | audio/csound6/Makefile | 11 | ||||
-rw-r--r-- | audio/csound6/PLIST | 7 | ||||
-rw-r--r-- | audio/csound6/options.mk | 46 |
3 files changed, 57 insertions, 7 deletions
diff --git a/audio/csound6/Makefile b/audio/csound6/Makefile index 8d2209f877b..875297900e5 100644 --- a/audio/csound6/Makefile +++ b/audio/csound6/Makefile @@ -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_LANGUAGES= c c++ 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 @@ PYTHON_VERSIONS_ACCEPTED= 27 # not yet ported as of 5.01 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 --git a/audio/csound6/PLIST b/audio/csound6/PLIST index 082d4bcf8d2..4644dc4b685 100644 --- a/audio/csound6/PLIST +++ b/audio/csound6/PLIST @@ -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/libgetftargs.so 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/libplaterev.so 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 --git a/audio/csound6/options.mk b/audio/csound6/options.mk index a42d4f5d934..4882aa62438 100644 --- a/audio/csound6/options.mk +++ b/audio/csound6/options.mk @@ -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 |