From d42fa3a3a3f586ff497943b51646e9ace0078312 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Mon, 12 Feb 2018 16:47:13 -0500 Subject: mplayer: armv7h port --- libre/mplayer/PKGBUILD | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libre/mplayer/PKGBUILD') diff --git a/libre/mplayer/PKGBUILD b/libre/mplayer/PKGBUILD index 82e83e8e6..e556dd62c 100644 --- a/libre/mplayer/PKGBUILD +++ b/libre/mplayer/PKGBUILD @@ -40,12 +40,16 @@ prepare() { build() { cd ${pkgbase}-${pkgver} - export CFLAGS="${CFLAGS/-march=x86-64/}" - export CFLAGS="${CFLAGS/-mtune=generic/}" + + # CPU detection doesn't work in ARM + if [ "$CARCH" != "armv7h" ]; then + extra=--enable-runtime-cpudetection + fi + export LDFLAGS="${LDFLAGS/,O1/}" export LDFLAGS="${LDFLAGS/,--sort-common/}" ./configure --prefix=/usr \ - --enable-runtime-cpudetection \ + $extra \ --disable-gui \ --disable-arts \ --disable-liblzo \ -- cgit v1.2.3