2013-03-21 18:32:34 +01:00
|
|
|
# Created by: trasz <trasz@pin.if.uz.zgora.pl>
|
2007-01-28 13:50:41 +01:00
|
|
|
|
|
|
|
PORTNAME= zynaddsubfx
|
2022-01-22 11:14:15 +01:00
|
|
|
DISTVERSION= 3.0.6
|
|
|
|
PORTEPOCH= 2
|
2007-01-28 13:50:41 +01:00
|
|
|
CATEGORIES= audio
|
|
|
|
|
2014-11-13 10:22:31 +01:00
|
|
|
MAINTAINER= hselasky@FreeBSD.org
|
2013-05-27 16:21:14 +02:00
|
|
|
COMMENT= Realtime software synthesizer
|
2007-01-28 13:50:41 +01:00
|
|
|
|
2013-05-27 16:21:14 +02:00
|
|
|
LICENSE= GPLv2
|
2007-01-28 13:50:41 +01:00
|
|
|
|
2021-12-28 23:46:11 +01:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3
|
2021-12-26 17:14:26 +01:00
|
|
|
|
2021-12-23 14:45:27 +01:00
|
|
|
LIB_DEPENDS= libfftw3f.so:math/fftw3-float \
|
2017-12-06 10:57:32 +01:00
|
|
|
libmxml.so:textproc/mxml \
|
|
|
|
liblo.so:audio/liblo
|
2013-05-27 16:21:14 +02:00
|
|
|
|
2019-03-06 05:56:56 +01:00
|
|
|
USES= cmake:insource compiler:c++11-lang pkgconfig tar:bzip2
|
2017-12-06 10:57:32 +01:00
|
|
|
USE_LDCONFIG= yes
|
2013-10-28 04:03:46 +01:00
|
|
|
|
2021-03-26 22:16:37 +01:00
|
|
|
USE_GITHUB= yes
|
2021-12-21 20:52:54 +01:00
|
|
|
GH_TUPLE= DISTRHO:DPF:86a621bfd86922a49ce593fec2a618a1e0cc6ef3:d/DPF \
|
2022-01-22 11:14:15 +01:00
|
|
|
fundamental:rtosc:2aec26327e0139131c9bd7439c9928370fccf1ce:e/rtosc \
|
2021-12-21 20:52:54 +01:00
|
|
|
zynaddsubfx:instruments:c5c912131b31df5fdf372d2f06a25aaf2375837f:f/instruments
|
2021-03-26 22:16:37 +01:00
|
|
|
|
2021-04-16 10:38:12 +02:00
|
|
|
OPTIONS_DEFINE= BASH OSS JACK GUI PORTAUDIO SNDIO LASH DOCS EXAMPLES
|
2017-12-06 10:57:32 +01:00
|
|
|
OPTIONS_DEFAULT= OSS JACK GUI PORTAUDIO
|
2013-10-22 18:50:10 +02:00
|
|
|
OPTIONS_RADIO= AUDIO
|
|
|
|
OPTIONS_RADIO_AUDIO= ALSAMIDI DSSI
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2013-05-27 16:21:14 +02:00
|
|
|
ALSAMIDI_DESC= MIDI input through ALSA
|
|
|
|
DSSI_DESC= DSSI Plugin
|
2007-01-28 13:50:41 +01:00
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
ALSAMIDI_LIB_DEPENDS= libasound.so:audio/alsa-lib
|
2013-10-22 18:50:10 +02:00
|
|
|
ALSAMIDI_CMAKE_OFF= -DAlsaEnable:BOOL=OFF
|
2013-10-28 04:03:46 +01:00
|
|
|
|
2021-04-16 10:38:12 +02:00
|
|
|
BASH_DESC= Support for bash auto-completion
|
|
|
|
BASH_BUILD_DEPENDS= bash-completion>=0:shells/bash-completion
|
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
DSSI_LIB_DEPENDS= libdssialsacompat.so:audio/libdssialsacompat
|
|
|
|
DSSI_BUILD_DEPENDS= dssi>0:audio/dssi
|
|
|
|
DSSI_RUN_DEPENDS= dssi>0:audio/dssi
|
2013-10-22 18:50:10 +02:00
|
|
|
DSSI_CFLAGS= -I${LOCALBASE}/include/dssi
|
|
|
|
DSSI_CMAKE_OFF= -DDssiEnable:BOOL=OFF
|
2013-10-28 04:03:46 +01:00
|
|
|
|
2021-03-26 22:16:37 +01:00
|
|
|
GUI_LIB_DEPENDS= libntk.so:x11-toolkits/ntk \
|
2018-02-25 17:46:51 +01:00
|
|
|
libpng.so:graphics/png \
|
2017-12-06 10:57:32 +01:00
|
|
|
libfontconfig.so:x11-fonts/fontconfig
|
2021-03-26 22:16:37 +01:00
|
|
|
GUI_CMAKE_ON= -DGuiModule:STRING=ntk
|
2013-10-28 04:03:46 +01:00
|
|
|
GUI_CMAKE_OFF= -DGuiModule:STRING=OFF
|
2017-12-06 18:30:06 +01:00
|
|
|
GUI_USE+= XORG=x11,xext,xfixes,xcursor,xrender,ice,sm,xpm,xinerama,xft
|
|
|
|
GUI_USE+= GL=gl,glu
|
2019-11-08 10:27:56 +01:00
|
|
|
GUI_USES= gl gnome jpeg xorg
|
2013-10-28 04:03:46 +01:00
|
|
|
|
2017-12-06 10:57:32 +01:00
|
|
|
OSS_CMAKE_ON= -DOssEnable:BOOL=ON
|
|
|
|
OSS_CMAKE_OFF= -DOssEnable:BOOL=OFF
|
2013-10-28 04:03:46 +01:00
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
LASH_LIB_DEPENDS= liblash.so:audio/lash
|
2017-12-06 10:57:32 +01:00
|
|
|
LASH_CMAKE_OFF= -DLashEnable:BOOL=OFF
|
2013-10-28 04:03:46 +01:00
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
JACK_LIB_DEPENDS= libjack.so:audio/jack
|
2013-10-28 04:03:46 +01:00
|
|
|
JACK_CMAKE_OFF= -DJackEnable:BOOL=OFF
|
|
|
|
|
2016-04-01 15:29:15 +02:00
|
|
|
PORTAUDIO_LIB_DEPENDS= libportaudio.so:audio/portaudio
|
2017-12-06 10:57:32 +01:00
|
|
|
PORTAUDIO_CMAKE_OFF= -DPaEnable:BOOL=OFF
|
2021-03-26 22:16:37 +01:00
|
|
|
|
|
|
|
SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
|
|
|
|
SNDIO_CMAKE_OFF= -DSndioEnable:BOOL=OFF
|
2013-10-22 18:50:10 +02:00
|
|
|
|
2013-10-28 04:03:46 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
DOCSRCDIR1= ${WRKSRC}
|
2021-03-26 22:16:37 +01:00
|
|
|
DOC_FILES1= AUTHORS.txt NEWS.txt
|
2013-10-28 04:03:46 +01:00
|
|
|
|
|
|
|
DOCSRCDIR2= ${WRKSRC}/doc
|
|
|
|
DOCSDIR2= ${DOCSDIR}/doc
|
|
|
|
DOC_FILES2= adsynth.txt controller.txt envelope.txt filter.txt intro.txt \
|
|
|
|
lfo.txt mididefaults.txt nrpn.txt saving.txt zynaddsubfx.txt
|
|
|
|
|
|
|
|
DOCSRCDIR3= ${WRKSRC}/doc/images
|
|
|
|
DOCSDIR3= ${DOCSDIR}/doc/images
|
|
|
|
DOC_FILES3= *.png *.jpg
|
|
|
|
|
|
|
|
PORTEXAMPLES= *
|
2007-01-28 13:50:41 +01:00
|
|
|
|
2017-12-06 10:57:32 +01:00
|
|
|
CMAKE_ARGS+= -DZYN_DATADIR:STRING=${DATADIR}
|
|
|
|
CMAKE_ARGS+= -DZYN_EXAMPLESDIR:STRING=${EXAMPLESDIR}
|
|
|
|
|
2018-09-26 00:09:55 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
2017-12-06 18:30:06 +01:00
|
|
|
|
2013-05-27 16:21:14 +02:00
|
|
|
post-install:
|
2014-11-13 10:08:36 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}/banks \
|
|
|
|
${STAGEDIR}${DOCSDIR} \
|
|
|
|
${STAGEDIR}${DOCSDIR2} \
|
|
|
|
${STAGEDIR}${DOCSDIR3} \
|
|
|
|
${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
|
2021-03-26 22:16:37 +01:00
|
|
|
(cd ${WRKSRC}/instruments/banks && \
|
2014-11-13 10:08:36 +01:00
|
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/banks)
|
2013-10-28 04:03:46 +01:00
|
|
|
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES3:S|^|${DOCSRCDIR3}/|} ${STAGEDIR}${DOCSDIR3}
|
2011-07-01 19:33:49 +02:00
|
|
|
|
2013-05-27 16:21:14 +02:00
|
|
|
.include <bsd.port.post.mk>
|