summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2004-11-24 06:26:16 +0000
committerMichael Johnson <ahze@FreeBSD.org>2004-11-24 06:26:16 +0000
commitc5eaa3975af0781028ba1bdc5f27e5a9facd1b60 (patch)
tree89e323513d3fa2c4b82f7cd8d2294c32d7c8e45e /audio
parentsecurity/sudoscript to 2.1.2; fixes security bug (diff)
- Add math/fftw3 to BUILD_DEPENDS since it installs the header files [1]
- Add WITH_SSE knob since fftw3-float supports it - Add WITH_OPTIMIZED_CFLAGS knob to respect CFLAGS if not defined [1] Submitted by: KATO Tsuguru [1] Approved by: adamw (implicit)
Notes
Notes: svn path=/head/; revision=122284
Diffstat (limited to 'audio')
-rw-r--r--audio/swhplugins/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/audio/swhplugins/Makefile b/audio/swhplugins/Makefile
index 6f1f52fa3b85..e25d9f3e34af 100644
--- a/audio/swhplugins/Makefile
+++ b/audio/swhplugins/Makefile
@@ -6,7 +6,7 @@
PORTNAME= swhplugins
PORTVERSION= 0.4.11
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= audio
MASTER_SITES= http://plugin.org.uk/releases/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTVERSION}
@@ -15,7 +15,8 @@ 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
+BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa \
+ ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3
LIB_DEPENDS= fftw3f.3:${PORTSDIR}/math/fftw3-float
# includes assembler code
@@ -35,6 +36,10 @@ CFLAGS+= -fPIC -DPIC
CONFIGURE_ARGS+= --enable-3dnow
.endif
+.if defined(WITH_SSE)
+CONFIGURE_ARGS+= --enable-sse
+.endif
+
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
@@ -44,6 +49,10 @@ PLIST_SUB+= NLS=""
.endif
post-patch:
+.if !defined(WITH_OPTIMIZED_CFLAGS)
+ @${REINPLACE_CMD} -e 's|$$CFLAGS.*$${MACHINE}|$$CFLAGS|g' \
+ ${WRKSRC}/configure
+.endif
@${REINPLACE_CMD} -e 's|gcc |$$(CC) |g ; \
s| -lc| $$(LDFLAGS)|g ; \
s|-lrt||g' ${WRKSRC}/Makefile.in