summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2007-12-21 17:41:12 +0000
committerdrochner <drochner@pkgsrc.org>2007-12-21 17:41:12 +0000
commit84aa0c81e1f2cef72933161f7e0221b20e9b1fb5 (patch)
tree69d50d288ed8040d9b2dc95333c144f61996301f /multimedia
parentc8fa83b3b6b3e284695ec1831d0be99b737e9c35 (diff)
downloadpkgsrc-84aa0c81e1f2cef72933161f7e0221b20e9b1fb5.tar.gz
disable ssse3 in the standard case, this makes the pkg build on NetBSD
because ssse3 needs a newer assembler than we have, add an option to enable it, which pulls in devel/binutils to get a recent assembler
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/mplayer-share/options.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/multimedia/mplayer-share/options.mk b/multimedia/mplayer-share/options.mk
index 79b9a8b53a9..f55903fc906 100644
--- a/multimedia/mplayer-share/options.mk
+++ b/multimedia/mplayer-share/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.23 2007/12/21 11:31:14 tron Exp $
+# $NetBSD: options.mk,v 1.24 2007/12/21 17:41:12 drochner Exp $
.if defined(PKGNAME) && empty(PKGNAME:Mmplayer-share*)
@@ -54,6 +54,9 @@ PKG_SUPPORTED_OPTIONS+= mplayer-default-cflags mplayer-win32
${MACHINE_ARCH} == "alpha"
PKG_SUPPORTED_OPTIONS+= mplayer-real
.endif
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+PKG_SUPPORTED_OPTIONS+= mplayer-ssse3
+.endif
# -------------------------------------------------------------------------
# Define PKG_SUGGESTED_OPTIONS.
@@ -258,6 +261,13 @@ EXTRA_LIBS+= -lxvidcore
CONFIGURE_ARGS+= --disable-xvid
.endif
+.if !empty(PKG_OPTIONS:Mmplayer-ssse3)
+# needs a recent assembler
+.include "../../devel/binutils/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-ssse3
+.endif
+
# -------------------------------------------------------------------------
# Handle extra libraries (part 1)
# -------------------------------------------------------------------------