# Created by: # $FreeBSD$ PORTNAME= calf PORTVERSION= 0.0.19 PORTREVISION= 3 CATEGORIES= audio MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Audio plug-in pack for LV2 and JACK environments LICENSE= GPLv2 LGPL21 LICENSE_COMB= multi BUILD_DEPENDS= fftw3>0:${PORTSDIR}/math/fftw3 LIB_DEPENDS= libfluidsynth.so:${PORTSDIR}/audio/fluidsynth \ libjack.so:${PORTSDIR}/audio/jack \ libfftw3f.so:${PORTSDIR}/math/fftw3-float \ libexpat.so:${PORTSDIR}/textproc/expat2 USES= gmake pkgconfig libtool USE_GNOME= gtk20 GNU_CONFIGURE= yes INSTALLS_ICONS= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE= LASH LV2 DOCS 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 post-patch: @${FIND} ${BUILD_WRKSRC} -name '*.cpp' | ${XARGS} ${REINPLACE_CMD} -e \ 's|||' @${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();|' \ ${WRKSRC}/src/calf/buffer.h @${REINPLACE_CMD} -e \ 's|data\[(1<