commit:     c0e7ffe1a6e34be0172d32d11f92b69cfe5a1efc
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Sun Jun  7 12:42:11 2020 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Sun Jun  7 12:42:18 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0e7ffe1

media-libs/x265: Fix typo for ppc asm on main variant

This was causing cmakeargs to be ignored

Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 media-libs/x265/x265-3.4.ebuild  | 18 +++++++++++++++---
 media-libs/x265/x265-9999.ebuild | 18 +++++++++++++++---
 2 files changed, 30 insertions(+), 6 deletions(-)

diff --git a/media-libs/x265/x265-3.4.ebuild b/media-libs/x265/x265-3.4.ebuild
index a3ce2faae8c..8d6664cdef2 100644
--- a/media-libs/x265/x265-3.4.ebuild
+++ b/media-libs/x265/x265-3.4.ebuild
@@ -73,6 +73,8 @@ x265_variant_src_configure() {
        mkdir -p "${BUILD_DIR}" || die
        pushd "${BUILD_DIR}" >/dev/null || die
 
+       einfo "Configuring variant: ${MULTIBUILD_VARIANT} for ABI: ${ABI}"
+
        local mycmakeargs=( "${myabicmakeargs[@]}" )
        case "${MULTIBUILD_VARIANT}" in
                "main12")
@@ -91,7 +93,12 @@ x265_variant_src_configure() {
                                mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
                        fi
                        # disable altivec for 12bit build #607802#c5
-                       [[ ${ABI} = ppc* ]] && mycmakeargs+=( 
-DENABLE_ALTIVEC=OFF )
+                       if [[ ${ABI} = ppc* ]] ; then
+                               mycmakeargs+=(
+                                       -DENABLE_ALTIVEC=OFF
+                                       -DCPU_POWER8=$(usex power8 ON OFF)
+                               )
+                       fi
                        ;;
                "main10")
                        mycmakeargs+=(
@@ -108,7 +115,12 @@ x265_variant_src_configure() {
                                mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
                        fi
                        # disable altivec for 10bit build #607802#c5
-                       [[ ${ABI} = ppc* ]] && mycmakeargs+=( 
-DENABLE_ALTIVEC=OFF )
+                       if [[ ${ABI} = ppc* ]] ; then
+                               mycmakeargs+=(
+                                       -DENABLE_ALTIVEC=OFF
+                                       -DCPU_POWER8=$(usex power8 ON OFF)
+                               )
+                       fi
                        ;;
                "main")
                        if (( "${#MULTIBUILD_VARIANTS[@]}" > 1 )) ; then
@@ -126,7 +138,7 @@ x265_variant_src_configure() {
                                        -DLINKED_12BIT=$(usex 12bit)
                                )
                                if [[ ${ABI} = ppc* ]] ; then
-                                       myabicmakeargs+=(
+                                       mycmakeargs+=(
                                                -DCPU_POWER8=$(usex power8 ON 
OFF)
                                                -DENABLE_ALTIVEC=$(usex 
cpu_flags_ppc_altivec ON OFF)
                                        )

diff --git a/media-libs/x265/x265-9999.ebuild b/media-libs/x265/x265-9999.ebuild
index a3ce2faae8c..8d6664cdef2 100644
--- a/media-libs/x265/x265-9999.ebuild
+++ b/media-libs/x265/x265-9999.ebuild
@@ -73,6 +73,8 @@ x265_variant_src_configure() {
        mkdir -p "${BUILD_DIR}" || die
        pushd "${BUILD_DIR}" >/dev/null || die
 
+       einfo "Configuring variant: ${MULTIBUILD_VARIANT} for ABI: ${ABI}"
+
        local mycmakeargs=( "${myabicmakeargs[@]}" )
        case "${MULTIBUILD_VARIANT}" in
                "main12")
@@ -91,7 +93,12 @@ x265_variant_src_configure() {
                                mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
                        fi
                        # disable altivec for 12bit build #607802#c5
-                       [[ ${ABI} = ppc* ]] && mycmakeargs+=( 
-DENABLE_ALTIVEC=OFF )
+                       if [[ ${ABI} = ppc* ]] ; then
+                               mycmakeargs+=(
+                                       -DENABLE_ALTIVEC=OFF
+                                       -DCPU_POWER8=$(usex power8 ON OFF)
+                               )
+                       fi
                        ;;
                "main10")
                        mycmakeargs+=(
@@ -108,7 +115,12 @@ x265_variant_src_configure() {
                                mycmakeargs+=( -DENABLE_ASSEMBLY=OFF )
                        fi
                        # disable altivec for 10bit build #607802#c5
-                       [[ ${ABI} = ppc* ]] && mycmakeargs+=( 
-DENABLE_ALTIVEC=OFF )
+                       if [[ ${ABI} = ppc* ]] ; then
+                               mycmakeargs+=(
+                                       -DENABLE_ALTIVEC=OFF
+                                       -DCPU_POWER8=$(usex power8 ON OFF)
+                               )
+                       fi
                        ;;
                "main")
                        if (( "${#MULTIBUILD_VARIANTS[@]}" > 1 )) ; then
@@ -126,7 +138,7 @@ x265_variant_src_configure() {
                                        -DLINKED_12BIT=$(usex 12bit)
                                )
                                if [[ ${ABI} = ppc* ]] ; then
-                                       myabicmakeargs+=(
+                                       mycmakeargs+=(
                                                -DCPU_POWER8=$(usex power8 ON 
OFF)
                                                -DENABLE_ALTIVEC=$(usex 
cpu_flags_ppc_altivec ON OFF)
                                        )

Reply via email to