From f815949a7acd02a0e28b45fe20c5eb804aef8080 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sun, 24 Aug 2014 23:00:47 +0200 Subject: [PATCH] mplayer: use runtime cpu detection only where possible --- srcpkgs/mplayer/template | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/srcpkgs/mplayer/template b/srcpkgs/mplayer/template index eea6ce1613..4f1435bb17 100644 --- a/srcpkgs/mplayer/template +++ b/srcpkgs/mplayer/template @@ -1,7 +1,7 @@ # Template file for 'mplayer' pkgname=mplayer version=1.1.1 -revision=6 +revision=7 wrksrc="MPlayer-${version}" short_desc="A movie player" maintainer="Juan RP " @@ -11,12 +11,16 @@ distfiles="http://www2.mplayerhq.hu/MPlayer/releases/MPlayer-${version}.tar.xz" checksum=ce8fc7c3179e6a57eb3a58cb7d1604388756b8a61764cc93e095e7aff3798c76 build_style=configure -configure_args="--prefix=/usr --enable-runtime-cpudetection +configure_args="--prefix=/usr --disable-gui --disable-arts --disable-liblzo --disable-speex --disable-openal --disable-libdv --disable-musepack --disable-esd --disable-mga --disable-ass-internal --disable-cdparanoia --enable-xvmc --enable-radio --enable-radio-capture --language=all --confdir=/etc/mplayer --enable-debug=3" +if [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then + configure_args+=" --enable-runtime-cpudetection" +fi +nocross=yes hostmakedepends="pkg-config yasm" makedepends="videoproto libudev-devel>=183 libpng-devel>=1.6