summaryrefslogtreecommitdiff
path: root/multimedia/mplayer-share
diff options
context:
space:
mode:
authordrochner <drochner>2007-12-21 17:41:12 +0000
committerdrochner <drochner>2007-12-21 17:41:12 +0000
commit0de1e8b0ec98969838d605a535e9945923386f94 (patch)
tree69d50d288ed8040d9b2dc95333c144f61996301f /multimedia/mplayer-share
parent8c64ee7566bc0cfa5b4a4dd32c42a3ba97706175 (diff)
downloadpkgsrc-0de1e8b0ec98969838d605a535e9945923386f94.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/mplayer-share')
-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)
# -------------------------------------------------------------------------