x265: disable altivec and power8 on ppc64{,-musl}

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-05-07 16:40:45 +02:00
parent 3300241f5d
commit 4b1dc0836a
No known key found for this signature in database
GPG key ID: DE55AD8DBEBB4EE8

View file

@ -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;;"