From c847dcd8a535c5d1ea7696199ac8db8b5bba6e84 Mon Sep 17 00:00:00 2001 From: Thomas Batten Date: Wed, 23 Jan 2019 11:32:51 +1030 Subject: [PATCH] libmpeg2: Explicitly disable altivec on ppc --- srcpkgs/libmpeg2/template | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/srcpkgs/libmpeg2/template b/srcpkgs/libmpeg2/template index fc530f697a..6d06974faf 100644 --- a/srcpkgs/libmpeg2/template +++ b/srcpkgs/libmpeg2/template @@ -13,6 +13,10 @@ homepage="http://libmpeg2.sourceforge.net/" distfiles="http://libmpeg2.sourceforge.net/files/libmpeg2-${version}.tar.gz" checksum=dee22e893cb5fc2b2b6ebd60b88478ab8556cb3b93f9a0d7ce8f3b61851871d4 +case "$XBPS_MACHINE" in + ppc|ppc-musl) CFLAGS+=" -mno-altivec" ;; +esac + libmpeg2-devel_package() { depends="libmpeg2>=${version}_${revision}" short_desc+=" - development files"