Update audio/qjackctl to version 0.6.2
[dports.git] / audio / swhplugins / Makefile
1 # Created by: Tilman Linneweh <arved@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       swhplugins
5 PORTVERSION=    0.4.15
6 PORTREVISION=   7
7 CATEGORIES=     audio
8 MASTER_SITES=   http://plugin.org.uk/releases/${PORTVERSION}/
9 DISTNAME=       swh-plugins-${PORTVERSION}
10
11 MAINTAINER=     arved@FreeBSD.org
12 COMMENT=        Steve Harris' huge Collection of LADSPA Plugins
13
14 LICENSE=        GPLv2
15 LICENSE_FILE=   ${WRKSRC}/COPYING
16
17 BUILD_DEPENDS=  ${LOCALBASE}/include/ladspa.h:audio/ladspa \
18                 ${LOCALBASE}/include/fftw3.h:math/fftw3
19 LIB_DEPENDS=    libfftw3f.so:math/fftw3-float
20
21 # includes assembler code
22 ONLY_FOR_ARCHS= amd64 i386
23 USES=           gmake libtool pkgconfig
24
25 GNU_CONFIGURE=  yes
26 CPPFLAGS+=      -I${LOCALBASE}/include
27 LDFLAGS+=       -L${LOCALBASE}/lib
28 USE_LDCONFIG=   yes
29
30 CFLAGS+=        -fPIC -DPIC -fgnu89-inline
31
32 OPTIONS_DEFINE= NLS 3DNOW SSE
33 OPTIONS_SUB=    yes
34 3DNOW_DESC=     use 3DNow! instructions
35 SSE_DESC=       use SSE instructions
36
37 NLS_USES=       gettext
38 NLS_LDFLAGS=    -lintl
39 NLS_CONFIGURE_ENABLE=   nls
40
41 3DNOW_CONFIGURE_ENABLE= 3dnow
42
43 SSE_CONFIGURE_ENABLE=   sse
44
45 post-patch:
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
50
51 .include <bsd.port.mk>