aboutsummaryrefslogtreecommitdiff
path: root/multimedia/x264/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/x264/Makefile')
-rw-r--r--multimedia/x264/Makefile15
1 files changed, 6 insertions, 9 deletions
diff --git a/multimedia/x264/Makefile b/multimedia/x264/Makefile
index 5da799d90f7e..a6aed1a5ecee 100644
--- a/multimedia/x264/Makefile
+++ b/multimedia/x264/Makefile
@@ -16,10 +16,6 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/0.0.//}
MAINTAINER= ahze@FreeBSD.org
COMMENT= Multimedia library and tool for encoding H.264/AVC video streams
-BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
-
-ONLY_FOR_ARCHS= i386
-
USE_GETOPT_LONG=yes
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
@@ -42,15 +38,16 @@ OPTIONS= DEBUG "Enable Debugging" Off \
.include <bsd.port.pre.mk>
.if ${ARCH}=="i386"
-CFLAGS+=-DARCH_X86
-.endif
+BUILD_DEPENDS+= nasm:${PORTSDIR}/devel/nasm
+CFLAGS+= -DARCH_X86
+MAKE_ENV+= ARCH_X86="1"
.if ${MACHINE_CPU:Mmmx}
-CFLAGS+=-DHAVE_MMXEXT
+CFLAGS+= -DHAVE_MMXEXT
.endif
-
.if ${MACHINE_CPU:Msse}
-CFLAGS+=-DHAVE_SSE2
+CFLAGS+= -DHAVE_SSE2
+.endif
.endif
.if !defined(WITH_DEBUG)