From: Alexis Ballier Date: Sun, 23 Apr 2017 14:23:09 +0000 (+0200) Subject: media-libs/x264: Add altivec useflag and disable ppc asm if not enabled, since ppc... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=957db0b234d928bb48a8890f78b2bd6332ebc8f8;p=gentoo.git media-libs/x264: Add altivec useflag and disable ppc asm if not enabled, since ppc asm is what that means. Bug #616004. Patch by Marcus Comstedt Package-Manager: Portage-2.3.5, Repoman-2.3.2 --- diff --git a/media-libs/x264/x264-0.0.20160712.ebuild b/media-libs/x264/x264-0.0.20160712.ebuild index 859892752858..ee2a5490d74c 100644 --- a/media-libs/x264/x264-0.0.20160712.ebuild +++ b/media-libs/x264/x264-0.0.20160712.ebuild @@ -22,7 +22,7 @@ SONAME="148" SLOT="0/${SONAME}" LICENSE="GPL-2" -IUSE="10bit +interlaced opencl pic static-libs cpu_flags_x86_sse +threads" +IUSE="10bit altivec +interlaced opencl pic static-libs cpu_flags_x86_sse +threads" ASM_DEP=">=dev-lang/yasm-1.2.0" DEPEND="abi_x86_32? ( ${ASM_DEP} ) @@ -38,7 +38,7 @@ multilib_src_configure() { tc-export CC local asm_conf="" - if [[ ${ABI} == x86* ]] && { use pic || use !cpu_flags_x86_sse ; } || [[ ${ABI} == "x32" ]] || [[ ${CHOST} == armv5* ]]; then + if [[ ${ABI} == x86* ]] && { use pic || use !cpu_flags_x86_sse ; } || [[ ${ABI} == "x32" ]] || [[ ${CHOST} == armv5* ]] || [[ ${ABI} == ppc* ]] && { use !altivec ; }; then asm_conf=" --disable-asm" fi diff --git a/media-libs/x264/x264-9999.ebuild b/media-libs/x264/x264-9999.ebuild index ad54c5cdf91b..8cfe28afdd71 100644 --- a/media-libs/x264/x264-9999.ebuild +++ b/media-libs/x264/x264-9999.ebuild @@ -22,7 +22,7 @@ SONAME="148" SLOT="0/${SONAME}" LICENSE="GPL-2" -IUSE="10bit +interlaced opencl pic static-libs cpu_flags_x86_sse +threads" +IUSE="10bit altivec +interlaced opencl pic static-libs cpu_flags_x86_sse +threads" ASM_DEP=">=dev-lang/yasm-1.2.0" DEPEND="abi_x86_32? ( ${ASM_DEP} ) @@ -38,7 +38,7 @@ multilib_src_configure() { tc-export CC local asm_conf="" - if [[ ${ABI} == x86* ]] && { use pic || use !cpu_flags_x86_sse ; } || [[ ${ABI} == "x32" ]] || [[ ${CHOST} == armv5* ]]; then + if [[ ${ABI} == x86* ]] && { use pic || use !cpu_flags_x86_sse ; } || [[ ${ABI} == "x32" ]] || [[ ${CHOST} == armv5* ]] || [[ ${ABI} == ppc* ]] && { use !altivec ; }; then asm_conf=" --disable-asm" fi