aboutsummaryrefslogtreecommitdiff
path: root/audio/wavpack
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2009-01-19 23:31:41 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2009-01-19 23:31:41 +0000
commitf52fcde1677c2e2b67a26cbcb802415711ac327e (patch)
treea13227020e5daeaf0076a2e293fb83afea7290a7 /audio/wavpack
parent44c5a591942a65262e10409c90ec2f04e344906d (diff)
downloadports-f52fcde1677c2e2b67a26cbcb802415711ac327e.tar.gz
ports-f52fcde1677c2e2b67a26cbcb802415711ac327e.zip
Notes
Diffstat (limited to 'audio/wavpack')
-rw-r--r--audio/wavpack/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/audio/wavpack/Makefile b/audio/wavpack/Makefile
index 227a44e9dc35..8bc70e2103e3 100644
--- a/audio/wavpack/Makefile
+++ b/audio/wavpack/Makefile
@@ -21,4 +21,16 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-.include <bsd.port.mk>
+OPTIONS= MMX "Enable MMX optimizations (x86 only)" Off
+
+.include <bsd.port.pre.mk>
+
+# GCC 3.x fails with internal compiler errror
+.if defined(WITH_MMX) && (${ARCH} == "i386" || ${ARCH} == "amd64") && \
+ (${OSVERSION} >= 700042)
+CONFIGURE_ARGS+= --enable-mmx
+.else
+CONFIGURE_ARGS+= --disable-mmx
+.endif
+
+.include <bsd.port.post.mk>