summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-07-19 23:56:21 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-07-19 23:56:21 +0000
commit9b8b97331ba784e130ce1583bcbd0991aba6d3e9 (patch)
tree05827c1a4f1232481cb21b9bfe841c28b1a047c3 /multimedia
parenta7dc5a6764cfc30ff834cd663553dc0e0e7bbb8b (diff)
downloadpkgsrc-9b8b97331ba784e130ce1583bcbd0991aba6d3e9.tar.gz
Only show USE_MMX in BUILD_DEFS when ${MACHINE_ARCH} == i386.
This closes PR pkg/26243.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/avidemux/Makefile6
-rw-r--r--multimedia/xawtv/Makefile7
2 files changed, 9 insertions, 4 deletions
diff --git a/multimedia/avidemux/Makefile b/multimedia/avidemux/Makefile
index 7ca3e8f74ad..e7027e73d89 100644
--- a/multimedia/avidemux/Makefile
+++ b/multimedia/avidemux/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2004/04/05 18:41:14 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2004/07/19 23:56:21 xtraeme Exp $
#
DISTNAME= avidemux-2.0.18
@@ -26,9 +26,10 @@ BUILDLINK_TRANSFORM+= S:-O3:
.include "../../mk/bsd.prefs.mk"
+.if !empty(MACHINE_ARCH:Mi386)
BUILD_DEFS+= USE_MMX
-.if empty(USE_MMX:M[Yy][Ee][Ss])
+. if empty(USE_MMX:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --disable-mmx
post-configure:
@@ -37,6 +38,7 @@ post-configure:
${SED} -e 's/TARGET_MMX=yes/TARGET_MMX=no/g' \
< ${WRKSRC}/adm_lavcodec/config.mak.in \
> ${WRKSRC}/adm_lavcodec/config.mak
+. endif
.endif
do-install:
diff --git a/multimedia/xawtv/Makefile b/multimedia/xawtv/Makefile
index 8e1a2ef83f3..9d0937f6874 100644
--- a/multimedia/xawtv/Makefile
+++ b/multimedia/xawtv/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2004/04/18 07:11:29 snj Exp $
+# $NetBSD: Makefile,v 1.4 2004/07/19 23:56:21 xtraeme Exp $
#
DISTNAME= xawtv_3.90
@@ -33,8 +33,11 @@ SUBST_SED.devoss= -e 's|/dev/dsp|${DEVOSSAUDIO}|g'
.include "../../mk/bsd.prefs.mk"
-.if defined(USE_MMX) && !empty(USE_MMX:M[Yy][Ee][Ss])
+.if !empty(MACHINE_ARCH:Mi386)
+BUILD_DEFS+= USE_MMX
+. if defined(USE_MMX) && !empty(USE_MMX:M[Yy][Ee][Ss])
CONFIGURE_ARGS+= --enable-mmx
+. endif
.endif
.include "../../devel/ncurses/buildlink3.mk"