pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/mplayer-share disable ssse3 in the standard...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/565cce6e40e5
branches:  trunk
changeset: 536740:565cce6e40e5
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Fri Dec 21 17:41:12 2007 +0000

description:
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:

 multimedia/mplayer-share/options.mk |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 8f0d8cabb636 -r 565cce6e40e5 multimedia/mplayer-share/options.mk
--- a/multimedia/mplayer-share/options.mk       Fri Dec 21 17:32:24 2007 +0000
+++ b/multimedia/mplayer-share/options.mk       Fri Dec 21 17:41:12 2007 +0000
@@ -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 @@
     ${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 @@
 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)
 # -------------------------------------------------------------------------



Home | Main Index | Thread Index | Old Index