aboutsummaryrefslogtreecommitdiff
path: root/audio/calf
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2014-04-23 01:14:42 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2014-04-23 01:14:42 +0000
commit7099f3ea92b7c3e7859a3d77d4d1e5522e724d6a (patch)
tree2e90bde0fc93b1fdcd1b6b64aa290568f2b36a15 /audio/calf
parent375aa7879eab54cc879a36bd5c8361ad9c8dd1f6 (diff)
Notes
Diffstat (limited to 'audio/calf')
-rw-r--r--audio/calf/Makefile36
1 files changed, 19 insertions, 17 deletions
diff --git a/audio/calf/Makefile b/audio/calf/Makefile
index f54389e1ea66..c4c1ede4becb 100644
--- a/audio/calf/Makefile
+++ b/audio/calf/Makefile
@@ -18,12 +18,7 @@ LIB_DEPENDS= libfluidsynth.so:${PORTSDIR}/audio/fluidsynth \
libfftw3f.so:${PORTSDIR}/math/fftw3-float \
libexpat.so:${PORTSDIR}/textproc/expat2
-OPTIONS_DEFINE= LASH LV2
-OPTIONS_DEFAULT=LASH LV2
-OPTIONS_SUB= yes
-LV2_DESC= LV2 audio plugin
-
-USES= gmake pkgconfig compiler:env
+USES= gmake pkgconfig
USE_GNOME= gtk20
GNU_CONFIGURE= yes
INSTALLS_ICONS= yes
@@ -31,29 +26,36 @@ INSTALLS_ICONS= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
+OPTIONS_DEFINE= LASH LV2
+OPTIONS_DEFAULT= LASH LV2
+OPTIONS_SUB= yes
+
LASH_LIB_DEPENDS= liblash.so:${PORTSDIR}/audio/lash
LASH_CONFIGURE_WITH= lash
+LV2_DESC= LV2 audio plugin
LV2_BUILD_DEPENDS= lv2core>0:${PORTSDIR}/audio/lv2core
LV2_RUN_DEPENDS= lv2core>0:${PORTSDIR}/audio/lv2core
LV2_CONFIGURE_WITH= lv2
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
post-patch:
@${FIND} ${BUILD_WRKSRC} -name '*.cpp' | ${XARGS} ${REINPLACE_CMD} -e \
's|<malloc.h>|<stdlib.h>|'
- @${REINPLACE_CMD} -e '/CXXFLAGS/s|-O3||' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e '/calf.so/s|$$(pkglibdir)|../../calf|' \
+ @${REINPLACE_CMD} -e \
+ '/CXXFLAGS/s|-O3|| ; \
+ /CXXFLAGS/s|-finline-functions-called-once||' \
+ ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e \
+ '/AM_CXXFLAGS/s|-finline-limit=80|| ; \
+ /calf.so/s|$$(pkglibdir)|../../calf|' \
${WRKSRC}/src/Makefile.in
- @${REINPLACE_CMD} -e 's|src\.size();|src->size();|' \
+ @${REINPLACE_CMD} -e \
+ 's|src\.size();|src->size();|' \
${WRKSRC}/src/calf/buffer.h
- @${REINPLACE_CMD} -e 's|data\[(1<<IntBits)+1\]|data[]|' \
+ @${REINPLACE_CMD} -e \
+ 's|data\[(1<<IntBits)+1\]|data[]|' \
${WRKSRC}/src/calf/fixed_point.h
-.if ${COMPILER_TYPE} == "clang"
- @${REINPLACE_CMD} -e 's|-finline-functions -finline-functions-called-once||' \
- ${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's|-finline-limit=80||' ${WRKSRC}/src/Makefile.in
-.endif
pre-build:
.if ${PORT_OPTIONS:MLV2}
@@ -72,4 +74,4 @@ post-install:
-p ${STAGEDIR}${PREFIX}/lib/lv2/calf.lv2)
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>