From 158567319aed99ea9dfb2eee6e628cc916222ed4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 15 May 2020 13:57:23 +0200 Subject: extra/ffmpeg: do not build with libvamf on non-pentium4 --- extra/ffmpeg/PKGBUILD | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 extra/ffmpeg/PKGBUILD (limited to 'extra/ffmpeg') diff --git a/extra/ffmpeg/PKGBUILD b/extra/ffmpeg/PKGBUILD new file mode 100644 index 00000000..483b4b58 --- /dev/null +++ b/extra/ffmpeg/PKGBUILD @@ -0,0 +1,19 @@ +# no vamf for non-pentium4 +if [ "$CARCH" == 'i686' ] || [ "$CARCH" == 'i486' ]; then + depends=(${depends[@]//vmaf/}) + + eval "$( + declare -f prepare | \ + sed ' + /vmaf/d + ' + )" + + eval "$( + declare -f build | \ + sed ' + s/--enable-libvmaf/--disable-libvmaf/ + ' + )" + +fi -- cgit v1.2.3-70-g09d2