1 # Created by: Tilman Linneweh <arved@FreeBSD.org>
8 MASTER_SITES= http://plugin.org.uk/releases/${PORTVERSION}/
9 DISTNAME= swh-plugins-${PORTVERSION}
11 MAINTAINER= arved@FreeBSD.org
12 COMMENT= Steve Harris' huge Collection of LADSPA Plugins
15 LICENSE_FILE= ${WRKSRC}/COPYING
17 BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:audio/ladspa \
18 ${LOCALBASE}/include/fftw3.h:math/fftw3
19 LIB_DEPENDS= libfftw3f.so:math/fftw3-float
21 # includes assembler code
22 ONLY_FOR_ARCHS= amd64 i386
23 USES= gmake libtool pkgconfig
26 CPPFLAGS+= -I${LOCALBASE}/include
27 LDFLAGS+= -L${LOCALBASE}/lib
30 CFLAGS+= -fPIC -DPIC -fgnu89-inline
32 OPTIONS_DEFINE= NLS 3DNOW SSE
34 3DNOW_DESC= use 3DNow! instructions
35 SSE_DESC= use SSE instructions
39 NLS_CONFIGURE_ENABLE= nls
41 3DNOW_CONFIGURE_ENABLE= 3dnow
43 SSE_CONFIGURE_ENABLE= sse
46 @${REINPLACE_CMD} -e \
47 's|="$$CFLAGS -Wall .*"|="$$CFLAGS"|g' ${WRKSRC}/configure
48 @${REINPLACE_CMD} -e \
49 's|<stdint\.h>|<inttypes.h>|g' ${WRKSRC}/ladspa-util.h
51 .include <bsd.port.mk>