From a7a011e36d224aa91ab55efa6d73b971bd398ef1 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sun, 11 Oct 2015 05:47:31 +0000 Subject: [PATCH] extra/mplayer: v8 fix --- extra/mplayer/PKGBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extra/mplayer/PKGBUILD b/extra/mplayer/PKGBUILD index 997827dd4..66ddda9e8 100644 --- a/extra/mplayer/PKGBUILD +++ b/extra/mplayer/PKGBUILD @@ -7,6 +7,7 @@ # - remove --enable-runtime-cpudetection from configure # - --enable-armv5te to use v5 edsp (fails autodetect for v5) # - patch to fix ARM build +# - use system ffmpeg on AArch64 pkgbase=mplayer pkgname=('mplayer' 'mencoder') @@ -60,6 +61,8 @@ prepare() { build() { cd $pkgbase-$pkgver + [[ $CARCH == "aarch64" ]] && CONFIG="--disable-ffmpeg_a" + ./configure --prefix=/usr \ --enable-armv5te \ --disable-gui \ @@ -78,7 +81,7 @@ build() { --enable-radio-capture \ --enable-smb \ --language=all \ - --confdir=/etc/mplayer + --confdir=/etc/mplayer $CONFIG [[ "$CARCH" = "i686" ]] && sed 's|-march=i486|-march=i686|g' -i config.mak make @@ -97,6 +100,7 @@ package_mplayer() { 'libass' 'libxxf86vm' 'libbluray' 'libcdio-paranoia' 'opus' 'rtmpdump' 'gsm' 'gnutls' 'libdvdnav' ) + depends_aarch64=('ffmpeg') cd $pkgbase-$pkgver make DESTDIR="$pkgdir" install-mplayer install-mplayer-man