summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorcube <cube@pkgsrc.org>2004-07-12 19:27:05 +0000
committercube <cube@pkgsrc.org>2004-07-12 19:27:05 +0000
commitd24b17b1058498eaff3ad92665bc6855034b4770 (patch)
tree1bdbb8477f81f6209af6e7a49a96a19f071561e4 /multimedia
parente364c6f686f30e9f9df2df876acc9fbdbb31999b (diff)
downloadpkgsrc-d24b17b1058498eaff3ad92665bc6855034b4770.tar.gz
For USE_MMX users, do the following:
o only include it in the BUILD_DEFS if the current platform is concerned. For now that only includes i386, but we might find amd64 users in the future. o test against [Yy][Ee][Ss], for consistency. Fixes part of PR 26243.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/ffmpeg/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile
index 3e137115d49..b08c144de0f 100644
--- a/multimedia/ffmpeg/Makefile
+++ b/multimedia/ffmpeg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2004/06/20 02:36:24 xtraeme Exp $
+# $NetBSD: Makefile,v 1.7 2004/07/12 19:27:05 cube Exp $
DISTNAME= ffmpeg-0.4.8
PKGREVISION= 1
@@ -25,12 +25,11 @@ MAKE_ENV+= EXTRA_LIBS="${LIBGETOPT}" \
CONFIGURE_ARGS= --cc=${CC} --disable-grab --prefix=${PREFIX}
CONFIGURE_ARGS+= --enable-pp --disable-vhook --disable-debug
-BUILD_DEFS+= USE_MMX
-
.include "../../mk/compiler.mk"
-.if !empty(MACHINE_ARCH:Mi386) && !empty(USE_MMX:M[Yy][Ee][Ss])
-. if !empty(CC_VERSION:Mgcc*)
+.if !empty(MACHINE_ARCH:Mi386)
+BUILD_DEFS+= USE_MMX
+. if !empty(USE_MMX:M[Yy][Ee][Ss]) && !empty(CC_VERSION:Mgcc*)
CFLAGS+= -fomit-frame-pointer
. endif
.else