From 84aa0c81e1f2cef72933161f7e0221b20e9b1fb5 Mon Sep 17 00:00:00 2001 From: drochner Date: Fri, 21 Dec 2007 17:41:12 +0000 Subject: 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 --- multimedia/mplayer-share/options.mk | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'multimedia') 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) # ------------------------------------------------------------------------- -- cgit v1.2.3