media-libs/x265: Add power8 useflag, bug #611906
authorAlexis Ballier <aballier@gentoo.org>
Sun, 12 Mar 2017 11:39:23 +0000 (12:39 +0100)
committerAlexis Ballier <aballier@gentoo.org>
Sun, 12 Mar 2017 11:39:33 +0000 (12:39 +0100)
Package-Manager: Portage-2.3.4, Repoman-2.3.2

media-libs/x265/metadata.xml
media-libs/x265/x265-2.2.ebuild
media-libs/x265/x265-2.3.ebuild
media-libs/x265/x265-9999.ebuild

index ed61a9259d5f1182d41c389092d68387b19b459b..534499f3593e9c6ec5a422382aac3273b3cc0080 100644 (file)
@@ -9,6 +9,7 @@
     <flag name="12bit">Add support for producing 12bits HEVC.</flag>
     <flag name="numa">Build with support for NUMA nodes.</flag>
     <flag name="pic">Disable optimized assembly code that is not PIC friendly</flag>
+       <flag name="power8">Enable support for Power 8 assembly optimizations.</flag>
   </use>
   <upstream>
     <remote-id type="bitbucket">multicoreware/x265</remote-id>
index 31477382476f187cfe3e8cbe2086b38527d19b9e..379c18e775a6aaad93444ffee610a3f4688b64be 100644 (file)
@@ -21,7 +21,7 @@ HOMEPAGE="http://x265.org/"
 LICENSE="GPL-2"
 # subslot = libx265 soname
 SLOT="0/102"
-IUSE="+10bit +12bit neon numa pic test"
+IUSE="+10bit +12bit neon numa pic power8 test"
 
 ASM_DEPEND=">=dev-lang/yasm-1.2.0"
 RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )"
@@ -139,6 +139,8 @@ multilib_src_configure() {
                $(cmake-utils_use_enable test TESTS)
                $(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)"
        )
 
index 6a97b960617f6a9f74e15c87507137bf1aaf208e..ed35ad6d51044a6c77df465b0c13ec4a8ae1ee7a 100644 (file)
@@ -21,7 +21,7 @@ HOMEPAGE="http://x265.org/"
 LICENSE="GPL-2"
 # subslot = libx265 soname
 SLOT="0/110"
-IUSE="+10bit +12bit neon numa pic test"
+IUSE="+10bit +12bit neon numa pic power8 test"
 
 ASM_DEPEND=">=dev-lang/yasm-1.2.0"
 RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )"
@@ -139,6 +139,8 @@ multilib_src_configure() {
                $(cmake-utils_use_enable test TESTS)
                $(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)"
        )
 
index 5efa377f90f140bac229dba81a0e927cba96f2c5..65e1f961e655437ba9f56b091cd7fc42774f9995 100644 (file)
@@ -21,7 +21,7 @@ HOMEPAGE="http://x265.org/"
 LICENSE="GPL-2"
 # subslot = libx265 soname
 SLOT="0/111"
-IUSE="+10bit +12bit neon numa pic test"
+IUSE="+10bit +12bit neon numa pic power8 test"
 
 ASM_DEPEND=">=dev-lang/yasm-1.2.0"
 RDEPEND="numa? ( >=sys-process/numactl-2.0.10-r1[${MULTILIB_USEDEP}] )"
@@ -139,6 +139,8 @@ multilib_src_configure() {
                $(cmake-utils_use_enable test TESTS)
                $(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)"
        )