mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Support stage
Use options helpers
This commit is contained in:
parent
25b45206c3
commit
9b51ce6107
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334768
2 changed files with 13 additions and 27 deletions
|
@ -13,44 +13,30 @@ LICENSE= GPLv2 LGPL21
|
||||||
LICENSE_COMB= multi
|
LICENSE_COMB= multi
|
||||||
|
|
||||||
BUILD_DEPENDS= fftw3>0:${PORTSDIR}/math/fftw3
|
BUILD_DEPENDS= fftw3>0:${PORTSDIR}/math/fftw3
|
||||||
LIB_DEPENDS= fluidsynth:${PORTSDIR}/audio/fluidsynth \
|
LIB_DEPENDS= libfluidsynth.so:${PORTSDIR}/audio/fluidsynth \
|
||||||
jack:${PORTSDIR}/audio/jack \
|
libjack.so:${PORTSDIR}/audio/jack \
|
||||||
fftw3f:${PORTSDIR}/math/fftw3-float \
|
libfftw3f.so:${PORTSDIR}/math/fftw3-float \
|
||||||
expat:${PORTSDIR}/textproc/expat2
|
libexpat.so:${PORTSDIR}/textproc/expat2
|
||||||
|
|
||||||
OPTIONS_DEFINE= LASH LV2
|
OPTIONS_DEFINE= LASH LV2
|
||||||
OPTIONS_DEFAULT=LASH LV2
|
OPTIONS_DEFAULT=LASH LV2
|
||||||
LV2_DESC= LV2 audio plugin
|
LV2_DESC= LV2 audio plugin
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
USES= gmake pkgconfig
|
USES= gmake pkgconfig
|
||||||
USE_GCC= any
|
|
||||||
USE_GNOME= gtk20
|
USE_GNOME= gtk20
|
||||||
|
USE_CSTD= gnu89
|
||||||
GNU_CONFIGURE= yes
|
GNU_CONFIGURE= yes
|
||||||
INSTALLS_ICONS= yes
|
INSTALLS_ICONS= yes
|
||||||
|
|
||||||
CPPFLAGS+= -I${LOCALBASE}/include
|
CPPFLAGS+= -I${LOCALBASE}/include
|
||||||
LDFLAGS+= -L${LOCALBASE}/lib
|
LDFLAGS+= -L${LOCALBASE}/lib
|
||||||
|
|
||||||
MAN1= calfjackhost.1
|
OPTIONS_SUB= yes
|
||||||
MAN7= calf.7
|
LASH_LIB_DEPENDS= liblash.so:${PORTSDIR}/audio/lash
|
||||||
|
LASH_CONFIGURE_WITH= lash
|
||||||
.include <bsd.port.options.mk>
|
LV2_BUILD_DEPENDS+= lv2core>0:${PORTSDIR}/audio/lv2core
|
||||||
|
LV2_RUN_DEPENDS+= lv2core>0:${PORTSDIR}/audio/lv2core
|
||||||
.if ${PORT_OPTIONS:MLASH}
|
LV2_CONFIGURE_WITH= lv2
|
||||||
LIB_DEPENDS+= lash:${PORTSDIR}/audio/lash
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+=--without-lash
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MLV2}
|
|
||||||
BUILD_DEPENDS+= lv2core>0:${PORTSDIR}/audio/lv2core
|
|
||||||
RUN_DEPENDS+= lv2core>0:${PORTSDIR}/audio/lv2core
|
|
||||||
PLIST_SUB+= LV2=""
|
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+=--without-lv2
|
|
||||||
PLIST_SUB+= LV2="@comment "
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${FIND} ${BUILD_WRKSRC} -name '*.cpp' | ${XARGS} ${REINPLACE_CMD} -e \
|
@${FIND} ${BUILD_WRKSRC} -name '*.cpp' | ${XARGS} ${REINPLACE_CMD} -e \
|
||||||
|
@ -60,9 +46,7 @@ post-patch:
|
||||||
${WRKSRC}/Makefile.in
|
${WRKSRC}/Makefile.in
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if ${PORT_OPTIONS:MDOCS}
|
|
||||||
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
|
@(cd ${INSTALL_WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} \
|
||||||
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install-data-local)
|
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install-data-local)
|
||||||
.endif
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -39,6 +39,8 @@ lib/calf/calf.so
|
||||||
%%LV2%%lib/lv2/calf.lv2/presets-Monosynth.ttl
|
%%LV2%%lib/lv2/calf.lv2/presets-Monosynth.ttl
|
||||||
%%LV2%%lib/lv2/calf.lv2/presets-Organ.ttl
|
%%LV2%%lib/lv2/calf.lv2/presets-Organ.ttl
|
||||||
%%LV2%%lib/lv2/calf.lv2/presets-Reverb.ttl
|
%%LV2%%lib/lv2/calf.lv2/presets-Reverb.ttl
|
||||||
|
man/man1/calfjackhost.1.gz
|
||||||
|
man/man7/calf.7.gz
|
||||||
share/applications/calf.desktop
|
share/applications/calf.desktop
|
||||||
%%DATADIR%%/background_black.png
|
%%DATADIR%%/background_black.png
|
||||||
%%DATADIR%%/background_blue.png
|
%%DATADIR%%/background_blue.png
|
||||||
|
|
Loading…
Add table
Reference in a new issue