media-libs/x264: Add altivec useflag and disable ppc asm if not enabled, since ppc...
authorAlexis Ballier <aballier@gentoo.org>
Sun, 23 Apr 2017 14:23:09 +0000 (16:23 +0200)
committerAlexis Ballier <aballier@gentoo.org>
Sun, 23 Apr 2017 14:23:09 +0000 (16:23 +0200)
Bug #616004.
Patch by Marcus Comstedt

Package-Manager: Portage-2.3.5, Repoman-2.3.2

media-libs/x264/x264-0.0.20160712.ebuild
media-libs/x264/x264-9999.ebuild

index 859892752858a1f9db28791b122cb0cb1c0fe4fb..ee2a5490d74cc8358c88b447ecb785ff556b6ebb 100644 (file)
@@ -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
 
index ad54c5cdf91ba813a2ab58ec4362e5c4408292c9..8cfe28afdd716cf885b465ab1fb62e1975f0e595 100644 (file)
@@ -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