1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00

audio/drumstick: Add/rearrange options

This fixes build for some combination of options.

Reported by:	hps@selasky.org
This commit is contained in:
Yuri Victorovich 2022-09-02 16:40:30 -07:00
parent 1313908949
commit b1a251040c
2 changed files with 23 additions and 14 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= drumstick
DISTVERSION= 2.7.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= audio multimedia
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}/
@ -10,31 +10,40 @@ COMMENT= MIDI libraries for Qt/C++
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth \
libsonivox.so:audio/sonivox
RUN_DEPENDS= ${LOCALBASE}/share/sounds/sf2/FluidR3_GM.sf2:audio/fluid-soundfont
USES= compiler:c++11-lang cmake desktop-file-utils pkgconfig qt:6 shared-mime-info tar:bz2
USE_QT= base svg 5compat tools_build
USE_LDCONFIG= yes
CMAKE_ARGS= -DUSE_QT=6
CMAKE_OFF= BUILD_TESTING
OPTIONS_DEFINE= ALSA PULSEAUDIO MANPAGES
OPTIONS_DEFAULT= ALSA PULSEAUDIO MANPAGES
OPTIONS_DEFINE= ALSA MANPAGES
OPTIONS_MULTI= RT_BACKEND
OPTIONS_MULTI_RT_BACKEND= FLUIDSYNTH NETWORK SONIVOX
OPTIONS_DEFAULT= ALSA MANPAGES ${OPTIONS_MULTI_RT_BACKEND}
OPTIONS_SUB= yes
ALSA_CMAKE_BOOL= BUILD_ALSA
ALSA_USES= localbase
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
PULSEAUDIO_CMAKE_BOOL= USE_PULSEAUDIO
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
MANPAGES_CMAKE_BOOL= BUILD_DOCS
MANPAGES_BUILD_DEPENDS= xsltproc:textproc/libxslt \
docbook-xsl>0:textproc/docbook-xsl
FLUIDSYNTH_DESC= Build FluidSynth RT backend
FLUIDSYNTH_CMAKE_BOOL= USE_FLUIDSYNTH
FLUIDSYNTH_RUN_DEPENDS= ${LOCALBASE}/share/sounds/sf2/FluidR3_GM.sf2:audio/fluid-soundfont
FLUIDSYNTH_LIB_DEPENDS= libfluidsynth.so:audio/fluidsynth
NETWORK_DESC= Build Network RT backend
NETWORK_CMAKE_BOOL= USE_NETWORK # QtNetwork is used
SONIVOX_DESC= Build FluidSynth RT backend
SONIVOX_CMAKE_BOOL= USE_SONIVOX USE_PULSEAUDIO # these two options have to be always equal
SONIVOX_LIB_DEPENDS= libpulse.so:audio/pulseaudio \
libsonivox.so:audio/sonivox
post-patch:
# instead of default.sf2 use FluidR3_GM.sf2 installed by fluid-soundfont
@${REINPLACE_CMD} -e 's|"default.sf2"|"${LOCALBASE}/share/sounds/sf2/FluidR3_GM.sf2"|' \

View File

@ -48,10 +48,10 @@ lib/cmake/drumstick/drumstick-widgets-targets-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/drumstick/drumstick-widgets-targets.cmake
%%ALSA%%lib/drumstick2/libdrumstick-rt-alsa-in.so
%%ALSA%%lib/drumstick2/libdrumstick-rt-alsa-out.so
%%PULSEAUDIO%%lib/drumstick2/libdrumstick-rt-eassynth.so
lib/drumstick2/libdrumstick-rt-fluidsynth.so
lib/drumstick2/libdrumstick-rt-net-in.so
lib/drumstick2/libdrumstick-rt-net-out.so
%%SONIVOX%%lib/drumstick2/libdrumstick-rt-eassynth.so
%%FLUIDSYNTH%%lib/drumstick2/libdrumstick-rt-fluidsynth.so
%%NETWORK%%lib/drumstick2/libdrumstick-rt-net-in.so
%%NETWORK%%lib/drumstick2/libdrumstick-rt-net-out.so
lib/drumstick2/libdrumstick-rt-oss-in.so
lib/drumstick2/libdrumstick-rt-oss-out.so
%%ALSA%%lib/libdrumstick-alsa.so