diff options
author | gahr <gahr@FreeBSD.org> | 2010-04-01 23:24:25 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2010-04-01 23:24:25 +0800 |
commit | e3a0972f7f90f257af3594c4e2136b0c0e886e92 (patch) | |
tree | 418e0aa222b527d1df9e356807e7744cd202f045 /audio | |
parent | 193bf96ab888a0aedc156f8de81ab9d4250a3a33 (diff) | |
download | freebsd-ports-graphics-e3a0972f7f90f257af3594c4e2136b0c0e886e92.tar.gz freebsd-ports-graphics-e3a0972f7f90f257af3594c4e2136b0c0e886e92.tar.zst freebsd-ports-graphics-e3a0972f7f90f257af3594c4e2136b0c0e886e92.zip |
- Make fltk optional
PR: 145254
Submitted by: Chris Petrik <chris@officialunix.com> (maintainer)
Diffstat (limited to 'audio')
-rw-r--r-- | audio/csound/Makefile | 26 | ||||
-rw-r--r-- | audio/csound/pkg-plist | 6 |
2 files changed, 21 insertions, 11 deletions
diff --git a/audio/csound/Makefile b/audio/csound/Makefile index 4a2ac4dd270..fedd9833fb8 100644 --- a/audio/csound/Makefile +++ b/audio/csound/Makefile @@ -7,7 +7,7 @@ PORTNAME= csound PORTVERSION= 5.12.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio lang MASTER_SITES= SF/${PORTNAME}/${PORTNAME}5/${PORTNAME}5.12/:src \ SF/${PORTNAME}/${PORTNAME}5/${PORTNAME}5.10/:manual @@ -20,8 +20,7 @@ DIST_SUBDIR= csound MAINTAINER= chris@officialunix.com COMMENT= Sound synthesizer -LIB_DEPENDS= sndfile:${PORTSDIR}/audio/libsndfile \ - fltk.1:${PORTSDIR}/x11-toolkits/fltk +LIB_DEPENDS= sndfile:${PORTSDIR}/audio/libsndfile BUILD_DEPENDS= ${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13 WRKSRC= ${WRKDIR}/${DISTNAME}/ @@ -29,18 +28,30 @@ USE_PYTHON= 2.6+ USE_SCONS= yes SCONS_ARGS+= prefix=${PREFIX} CC=${CC} CXX=${CXX} \ usePortAudio=0 usePortMIDI=0 useALSA=0 \ - useJack=0 useFLTK=1 buildCsoundAC=0 buildCsoundVST=0 \ - buildCsound5GUI=1 buildRelease=1 install=1 \ - useCoreAudio=1 buildWinsound=1 buildInterfaces=1 \ + useJack=0 buildCsoundAC=0 buildCsoundVST=0 \ + buildRelease=1 install=1 useCoreAudio=1 \ + buildWinsound=1 buildInterfaces=1 \ buildVirtual=1 buildCSEditor=1 buildDSSI=0 \ useGettext=1 dynamicCsoundLibrary=1 useDouble=1 + +OPTIONS= FLTKGUI "Build fltk plugin and GUI" on + +.include <bsd.port.pre.mk> + USE_GETTEXT= yes SUB_FILES= custom.py pkg-message SUB_LIST+= PYTHON_INCLUDEDIR=${PYTHON_INCLUDEDIR} \ PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} USE_LDCONFIG= yes -.include <bsd.port.pre.mk> +.if !defined(WITHOUT_FLTKGUI) +LIB_DEPENDS+= fltk.1:${PORTSDIR}/x11-toolkits/fltk +PLIST_SUB+= FLTKGUI="" +SCONS_ARGS+= useFLTK=1 buildCsound5GUI=1 +.else +PLIST_SUB+= FLTKGUI="@comment " +SCONS_ARGS+= useFLTK=0 buildCsound5GUI=0 +.endif .if !defined(NOPORTDOCS) BUILD_DEPENDS+= ${LOCALBASE}/bin/unzip:${PORTSDIR}/archivers/unzip @@ -48,7 +59,6 @@ DISTFILES+= Csound5.10_manual_html.zip:manual .endif post-patch: apply-slist - @${SETENV} LOCALBASE=${LOCALBASE} ${SH} ${SCRIPTDIR}/check-fltk-threads.sh @${MV} ${WRKDIR}/custom.py ${WRKSRC} @${REINPLACE_CMD} -e "s|'unsupported'|'linux'|; \ s|ENV = {'PATH' : os.environ\['PATH'\]}|ENV = os.environ|; \ diff --git a/audio/csound/pkg-plist b/audio/csound/pkg-plist index 72cf9fb06de..426508676c1 100644 --- a/audio/csound/pkg-plist +++ b/audio/csound/pkg-plist @@ -4,7 +4,7 @@ bin/csmixer bin/csb64enc bin/cseditor bin/csound -bin/csound5gui +%%FLTKGUI%%bin/csound5gui bin/cvanal bin/dnoise bin/envext @@ -83,8 +83,8 @@ lib/csound/plugins64/libudpsend.so lib/csound/plugins64/libugakbari.so lib/csound/plugins64/libvaops.so lib/csound/plugins64/libvbap.so -lib/csound/plugins64/libvirtual.so -lib/csound/plugins64/libwidgets.so +%%FLTKGUI%%lib/csound/plugins64/libvirtual.so +%%FLTKGUI%%lib/csound/plugins64/libwidgets.so lib/csound/plugins64/libsignalflowgraph.so lib/csound/plugins64/libambicode1.so lib/csound/plugins64/libcs_pan2.so |