summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-05-24 17:12:10 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-05-24 22:23:51 +0200
commit132ec2330862d4305e3d450e08325862a88451b2 (patch)
treee7272b10cee44d5aab37afa7da755472411e52f9 /media-libs/x265
parentmedia-libs/x265: rework assembly support (diff)
downloadgentoo-132ec2330862d4305e3d450e08325862a88451b2.tar.gz
gentoo-132ec2330862d4305e3d450e08325862a88451b2.tar.bz2
gentoo-132ec2330862d4305e3d450e08325862a88451b2.zip
media-libs/x265: add USE=cpu_flags_ppc_altivec
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'media-libs/x265')
-rw-r--r--media-libs/x265/x265-3.3.ebuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/media-libs/x265/x265-3.3.ebuild b/media-libs/x265/x265-3.3.ebuild
index f5c4fee6d974..a8595e79d053 100644
--- a/media-libs/x265/x265-3.3.ebuild
+++ b/media-libs/x265/x265-3.3.ebuild
@@ -19,7 +19,7 @@ HOMEPAGE="http://x265.org/ https://bitbucket.org/multicoreware/x265/wiki/Home"
LICENSE="GPL-2"
# subslot = libx265 soname
SLOT="0/188"
-IUSE="+asm +10bit +12bit cpu_flags_arm_neon numa pic power8 test"
+IUSE="+asm +10bit +12bit cpu_flags_arm_neon cpu_flags_ppc_altivec numa pic power8 test"
# Test suite requires assembly support and is known to be broken
RESTRICT="test"
@@ -128,8 +128,6 @@ multilib_src_configure() {
local myabicmakeargs=(
$(multilib_is_native_abi || echo "-DENABLE_CLI=OFF")
-DENABLE_LIBNUMA=$(usex numa ON OFF)
- -DCPU_POWER8=$(usex power8 ON OFF)
- -DENABLE_ALTIVEC=$(usex power8 ON OFF)
-DLIB_INSTALL_DIR="$(get_libdir)"
)
@@ -156,6 +154,11 @@ multilib_src_configure() {
elif use asm ; then
supports_asm=no
fi
+ elif [[ ${ABI} = ppc* ]] ; then
+ myabicmakeargs+=(
+ -DCPU_POWER8=$(usex power8 ON OFF)
+ -DENABLE_ALTIVEC=$(usex cpu_flags_ppc_altivec ON OFF)
+ )
fi
if [[ "${supports_asm}" = yes ]] && use asm ; then