diff options
Diffstat (limited to 'audio/zynaddsubfx/Makefile')
-rw-r--r-- | audio/zynaddsubfx/Makefile | 106 |
1 files changed, 34 insertions, 72 deletions
diff --git a/audio/zynaddsubfx/Makefile b/audio/zynaddsubfx/Makefile index 005144b86630..1e433aec9abb 100644 --- a/audio/zynaddsubfx/Makefile +++ b/audio/zynaddsubfx/Makefile @@ -15,76 +15,42 @@ LICENSE= GPLv2 LIB_DEPENDS= fftw3:${PORTSDIR}/math/fftw3 \ mxml:${PORTSDIR}/textproc/mxml -OPTIONS_DEFINE= ALSAMIDI DSSI GUI LASH LO JACK PORTAUDIO DOCS EXAMPLES +OPTIONS_DEFINE= GUI LASH LO JACK PORTAUDIO DOCS EXAMPLES OPTIONS_DEFAULT= GUI +OPTIONS_RADIO= AUDIO +OPTIONS_RADIO_AUDIO= ALSAMIDI DSSI +OPTIONS_SUB= yes + ALSAMIDI_DESC= MIDI input through ALSA DSSI_DESC= DSSI Plugin LO_DESC= Open Sound Control support via LibLO +ALSAMIDI_CMAKE_OFF= -DAlsaEnable:BOOL=OFF +ALSAMIDI_LIB_DEPENDS= asound:${PORTSDIR}/audio/alsa-lib +DSSI_BUILD_DEPENDS= dssi>0:${PORTSDIR}/audio/dssi +DSSI_CFLAGS= -I${LOCALBASE}/include/dssi +DSSI_CMAKE_OFF= -DDssiEnable:BOOL=OFF +DSSI_LIB_DEPENDS= dssialsacompat:${PORTSDIR}/audio/libdssialsacompat +DSSI_RUN_DEPENDS= dssi>0:${PORTSDIR}/audio/dssi +GUI_CMAKE_OFF= -DGuiModule:STRING=OFF +GUI_LIB_DEPENDS= fltk:${PORTSDIR}/x11-toolkits/fltk +GUI_ON= -DGuiModule:STRING=fltk +JACK_CMAKE_OFF= -DJackEnable:BOOL=OFF +JACK_LIB_DEPENDS= jack:${PORTSDIR}/audio/jack +LASH_CMAKE_OFF= -DLashEnabe:BOOL=OFF +LASH_LIB_DEPENDS= lash:${PORTSDIR}/audio/lash +LO_CMAKE_OFF= -DLibloEnable:BOOL=OFF +LO_LIB_DEPENDS= lo:${PORTSDIR}/audio/liblo +PORTAUDIO_BUILD_DEPENDS= portaudio>=19:${PORTSDIR}/audio/portaudio2 +PORTAUDIO_CFLAGS= -I${LOCALBASE}/include/portaudio2 +PORTAUDIO_CMAKE_OFF= -DPaEnabe:BOOL=OFF +PORTAUDIO_LDFLAGS= ${LOCALBASE}/lib/portaudio2/libportaudio.so +PORTAUDIO_RUN_DEPENDS= portaudio>=19:${PORTSDIR}/audio/portaudio2 + USE_BZIP2= yes -NO_STAGE= yes USES= cmake pkgconfig -PORTDOCS= * -PORTEXAMPLES= * - .include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MALSAMIDI} -LIB_DEPENDS+= asound:${PORTSDIR}/audio/alsa-lib -.else -CMAKE_ARGS+= -DAlsaEnable:BOOL=OFF -.endif - -.if ${PORT_OPTIONS:MDSSI} -BUILD_DEPENDS+= dssi>0:${PORTSDIR}/audio/dssi -LIB_DEPENDS+= dssialsacompat:${PORTSDIR}/audio/libdssialsacompat -RUN_DEPENDS+= dssi>0:${PORTSDIR}/audio/dssi -CFLAGS+= -I${LOCALBASE}/include/dssi -PLIST_SUB+= DSSI="" -.else -CMAKE_ARGS+= -DDssiEnable:BOOL=OFF -PLIST_SUB+= DSSI="@comment " -.endif - -.if ${PORT_OPTIONS:MGUI} -LIB_DEPENDS+= fltk:${PORTSDIR}/x11-toolkits/fltk -CMAKE_ARGS+= -DGuiModule:STRING=fltk -.else -CMAKE_ARGS+= -DGuiModule:STRING=OFF -.endif - -.if ${PORT_OPTIONS:MJACK} -LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack -.else -CMAKE_ARGS+= -DJackEnable:BOOL=OFF -.endif - -.if ${PORT_OPTIONS:MLASH} -LIB_DEPENDS+= lash:${PORTSDIR}/audio/lash -.else -CMAKE_ARGS+= -DLashEnable:BOOL=OFF -.endif - -.if ${PORT_OPTIONS:MLO} -LIB_DEPENDS+= lo:${PORTSDIR}/audio/liblo -.else -CMAKE_ARGS+= -DLibloEnable:BOOL=OFF -.endif - -.if ${PORT_OPTIONS:MPORTAUDIO} -BUILD_DEPENDS+= portaudio>=19:${PORTSDIR}/audio/portaudio2 -RUN_DEPENDS+= portaudio>=19:${PORTSDIR}/audio/portaudio2 -CFLAGS+= -I${LOCALBASE}/include/portaudio2 -LDFLAGS+= ${LOCALBASE}/lib/portaudio2/libportaudio.so -.else -CMAKE_ARGS+= -DPaEnable:BOOL=OFF -.endif - -.if ${PORT_OPTIONS:MALSAMIDI} && ${PORT_OPTIONS:MDSSI} -IGNORE= selected mutually exclusive options: ALSAMIDI and DSSI -.endif - .include <bsd.port.pre.mk> .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" @@ -110,19 +76,15 @@ post-patch: 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/src/Misc/Config.cpp post-install: - @${MKDIR} ${DATADIR}/banks - @(cd ${WRKDIR}/${DISTNAME}/instruments/banks \ - && ${COPYTREE_SHARE} . ${DATADIR}/banks) -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DATADIR}/banks + (cd ${WRKDIR}/${DISTNAME}/instruments/banks \ + && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/banks) + ${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in AUTHORS.txt FAQ.txt HISTORY.txt README.txt - (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR}) + (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR}) .endfor -.endif -.if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKDIR}/${DISTNAME}/instruments/examples \ - && ${INSTALL_DATA} * ${EXAMPLESDIR}) -.endif + && ${INSTALL_DATA} * ${STAGEDIR}${EXAMPLESDIR}) .include <bsd.port.post.mk> |