From 3bfc1ec5d9437fff3dc65e324e7258fc6a9c36e7 Mon Sep 17 00:00:00 2001 From: q66 Date: Sat, 24 Aug 2019 17:17:09 +0200 Subject: [PATCH] mplayer: runtime cpudetection is broken on ppc, disable altivec [ci skip] --- srcpkgs/mplayer/template | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/srcpkgs/mplayer/template b/srcpkgs/mplayer/template index 7b2a0c27e7..1c603498ea 100644 --- a/srcpkgs/mplayer/template +++ b/srcpkgs/mplayer/template @@ -32,13 +32,12 @@ conf_files=" do_configure() { sed 's|-march=i486||g' -i configure + # we tried runtime cpudetection for ppc32 but stuff's broken case "$XBPS_TARGET_MACHINE" in - i686*|x86_64*|ppc*) configure_args+=" --enable-vdpau --enable-runtime-cpudetection";; + i686*|x86_64*|ppc64*) configure_args+=" --enable-vdpau --enable-runtime-cpudetection";; + ppc*) configure_args+=" --enable-vdpau --disable-altivec";; esac - # we enable runtime cpu detection for ppc, let the altivec bits build - export CFLAGS="${CFLAGS/-mno-altivec}" - ./configure --prefix=/usr \ --disable-gui --disable-arts --disable-liblzo --disable-speex \ --disable-openal --disable-libdv --disable-musepack --disable-esd \