From 4b1dc0836a3da8f7456eff4ce0c17c8a4949521d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 7 May 2019 16:40:45 +0200 Subject: [PATCH] x265: disable altivec and power8 on ppc64{,-musl} MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- srcpkgs/x265/template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srcpkgs/x265/template b/srcpkgs/x265/template index 5c872e2e7fd..80561b477a4 100644 --- a/srcpkgs/x265/template +++ b/srcpkgs/x265/template @@ -14,6 +14,10 @@ homepage="http://x265.org/" distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz" checksum=c5b9fc260cabbc4a81561a448f4ce9cad7218272b4011feabc3a6b751b2f0662 +case "$XBPS_TARGET_MACHINE" in + ppc64|ppc64-musl) configure_args+=" -DCPU_POWER8=OFF -DENABLE_ALTIVEC=OFF";; +esac + pre_configure() { if [ "$CROSS_BUILD" ]; then sed -i CMakeLists.txt -e "s; -mcpu=native;;"