aboutsummaryrefslogtreecommitdiffstats
path: root/audio/swhplugins/Makefile
blob: f9e2c82d278e8bc598dc9dca40f0975ae0de97d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# New ports collection Makefile for:    swhplugins
# Date created:         12 May 2002
# Whom:             Tilman Linneweh <arved@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=   swhplugins
PORTVERSION=    0.4.11
CATEGORIES= audio
MASTER_SITES=   http://plugin.org.uk/releases/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTVERSION}
DISTNAME=   swh-plugins-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Steve Harris' huge Collection of LADSPA Plugins

BUILD_DEPENDS=  ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
LIB_DEPENDS=    fftw3.3:${PORTSDIR}/math/fftw3

# includes assembler code
ONLY_FOR_ARCHS= i386 amd64

USE_REINPLACE=  yes
USE_GMAKE=  yes
USE_LIBTOOL_VER=    15
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes

CFLAGS+=    -fPIC -DPIC

.if defined(WITH_3DNOW)
CONFIGURE_ARGS+=    --enable-3dnow
.endif

.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        's|$$CFLAGS.*$${USE_SSE}|$$CFLAGS|g ; \
         s|fftw3f|fftw3|g' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|gcc |$$(CC) |g ; \
         s| -lc| $$(LDFLAGS)|g ; \
         s|-lrt||g' ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's|<stdint\.h>|<inttypes.h>|g ; \
         s|ls_pcast |ls_pcast32 |g' ${WRKSRC}/ladspa-util.h

.include <bsd.port.mk>