aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2005-01-14 10:38:21 +0800
committerahze <ahze@FreeBSD.org>2005-01-14 10:38:21 +0800
commit64b732c9084955320bcbb3527018fabe31cde853 (patch)
treec4429873dcdb348ad451f77a801f8b70163a6246
parent23429419e7ef62961f325fedc7f8af3596f61970 (diff)
downloadfreebsd-ports-gnome-64b732c9084955320bcbb3527018fabe31cde853.tar.gz
freebsd-ports-gnome-64b732c9084955320bcbb3527018fabe31cde853.tar.zst
freebsd-ports-gnome-64b732c9084955320bcbb3527018fabe31cde853.zip
Attempt to fix build on amd64
Reported by: pointyhat via kris
-rw-r--r--multimedia/x264-devel/Makefile6
-rw-r--r--multimedia/x264/Makefile6
2 files changed, 8 insertions, 4 deletions
diff --git a/multimedia/x264-devel/Makefile b/multimedia/x264-devel/Makefile
index 58bb4b83ab46..54fbef20ff70 100644
--- a/multimedia/x264-devel/Makefile
+++ b/multimedia/x264-devel/Makefile
@@ -34,15 +34,17 @@ OPTIONS= DEBUG "Enable Debugging" Off \
.include <bsd.port.pre.mk>
-.if ${ARCH}=="i386" || ${ARCH}=="amd64"
+.if ${ARCH}=="i386"
CFLAGS+=-DARCH_X86
+.endif
+
.if ${MACHINE_CPU:Mmmx}
CFLAGS+=-DHAVE_MMXEXT
.endif
+
.if ${MACHINE_CPU:Msse}
CFLAGS+=-DHAVE_SSE2
.endif
-.endif
.if defined(WITH_DEBUG)
CFLAGS+= -g -DDEBUG
diff --git a/multimedia/x264/Makefile b/multimedia/x264/Makefile
index 58bb4b83ab46..54fbef20ff70 100644
--- a/multimedia/x264/Makefile
+++ b/multimedia/x264/Makefile
@@ -34,15 +34,17 @@ OPTIONS= DEBUG "Enable Debugging" Off \
.include <bsd.port.pre.mk>
-.if ${ARCH}=="i386" || ${ARCH}=="amd64"
+.if ${ARCH}=="i386"
CFLAGS+=-DARCH_X86
+.endif
+
.if ${MACHINE_CPU:Mmmx}
CFLAGS+=-DHAVE_MMXEXT
.endif
+
.if ${MACHINE_CPU:Msse}
CFLAGS+=-DHAVE_SSE2
.endif
-.endif
.if defined(WITH_DEBUG)
CFLAGS+= -g -DDEBUG