aboutsummaryrefslogtreecommitdiff
path: root/audio/wavpack
diff options
context:
space:
mode:
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>