media-libs/libaom: bump to v2.0.0 RC1
authorThomas Deutschmann <whissi@gentoo.org>
Sat, 9 May 2020 11:51:41 +0000 (13:51 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Sat, 9 May 2020 12:25:22 +0000 (14:25 +0200)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
media-libs/libaom/Manifest
media-libs/libaom/libaom-1.0.0_p20200507.ebuild
media-libs/libaom/libaom-2.0.0_rc1.ebuild [new file with mode: 0644]
media-libs/libaom/libaom-9999.ebuild

index 190d5c53708ea68ba1309b7bd744d7a4f8084be6..a3e5ed5a7d97cfb1b482be93b06a2d35772a3cae 100644 (file)
@@ -1,2 +1,3 @@
 DIST libaom-1.0.0.tar.gz 2775454 BLAKE2B 09b891d365804f0c086785a00760af3191b40fc66fc752294e915b54454171fb47d3d1b037fb6d276727772ceec3177d78c14f90a2b01e28250d2de735bf02ec SHA512 131512ef286cb138047bb56dea54196f9a8d2b0d9f3d7689299f185338e5c03ee658b0cfe017a099f1a6be351a3a7157204dea70d2645a1d0a9249fd582c3fa4
 DIST libaom-1.0.0_p20200507.tar.gz 3569380 BLAKE2B caaff47e7e443694b41dcac6b4d1ea08c7c33ab25a443582875be6f22157e515ec88050e3d9036f94e26177335db5d76cde1b1ea306fc674af01995def23620d SHA512 2f906ac3ca3c3fe87de03238ae4ded3c87e3d5a780cc29d4ceaf3bfce91c65d0088ee8b63018ceecff27cc48a022ae4dbf7b72861bf9bf4416de98115b493c65
+DIST libaom-2.0.0_rc1.tar.gz 3497410 BLAKE2B e8443e5d390c82912b951d78551f2c7a3e0cffe6aea1b846da29c0264cc9736069110e6701e6dc075964c0375e95f2c1c108c0c980a5ea78d0f970c6f47f4790 SHA512 06a0971e8fcd1d449c4fd2b04569dc32ce6fb8ab6c4a270413997c3aeba7a186e071683686e0fbc1eb1f8d6c2c3afa7f48601bf5530984bc1cf612ab5dd64841
index bb1078b69e74d22e167a9de7451aaf4cc0ab3262..9d13a216729a4c5f9555a26d46ae06e2f3a0e2bc 100644 (file)
@@ -21,9 +21,10 @@ DESCRIPTION="Alliance for Open Media AV1 Codec SDK"
 HOMEPAGE="https://aomedia.org"
 
 LICENSE="BSD-2"
-SLOT="0/0"
+SLOT="0/1.9999"
 IUSE="doc examples"
-IUSE="${IUSE} cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 cpu_flags_x86_avx cpu_flags_x86_avx2"
+IUSE="${IUSE} cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3"
+IUSE="${IUSE} cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2"
 IUSE="${IUSE} cpu_flags_arm_neon"
 
 REQUIRED_USE="
@@ -60,6 +61,7 @@ multilib_src_configure() {
                -DENABLE_SSE3=$(usex cpu_flags_x86_sse3 ON OFF)
                -DENABLE_SSSE3=$(usex cpu_flags_x86_ssse3 ON OFF)
                -DENABLE_SSE4_1=$(usex cpu_flags_x86_sse4_1 ON OFF)
+               -DENABLE_SSE4_2=$(usex cpu_flags_x86_sse4_2 ON OFF)
                -DENABLE_AVX=$(usex cpu_flags_x86_avx ON OFF)
                -DENABLE_AVX2=$(usex cpu_flags_x86_avx2 ON OFF)
        )
diff --git a/media-libs/libaom/libaom-2.0.0_rc1.ebuild b/media-libs/libaom/libaom-2.0.0_rc1.ebuild
new file mode 100644 (file)
index 0000000..bcc3c96
--- /dev/null
@@ -0,0 +1,79 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+CMAKE_ECLASS=cmake
+inherit cmake-multilib
+
+if [[ ${PV} == *9999* ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://aomedia.googlesource.com/aom"
+else
+       MY_COMMIT="1e711b0aca6721da83835e3b5ceda07238e8b6ae"
+       #SRC_URI="https://aomedia.googlesource.com/aom/+archive/${MY_COMMIT}.tar.gz -> ${P}.tar.gz"
+       SRC_URI="https://dev.gentoo.org/~whissi/dist/${PN}/${P}.tar.gz"
+       S="${WORKDIR}"
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+fi
+
+DESCRIPTION="Alliance for Open Media AV1 Codec SDK"
+HOMEPAGE="https://aomedia.org"
+
+LICENSE="BSD-2"
+SLOT="0/2"
+IUSE="doc examples"
+IUSE="${IUSE} cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3"
+IUSE="${IUSE} cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2"
+IUSE="${IUSE} cpu_flags_arm_neon"
+
+REQUIRED_USE="
+       cpu_flags_x86_sse2? ( cpu_flags_x86_mmx )
+       cpu_flags_x86_ssse3? ( cpu_flags_x86_sse2 )
+"
+
+BDEPEND="abi_x86_32? ( dev-lang/yasm )
+       abi_x86_64? ( dev-lang/yasm )
+       abi_x86_x32? ( dev-lang/yasm )
+       x86-fbsd? ( dev-lang/yasm )
+       amd64-fbsd? ( dev-lang/yasm )
+       doc? ( app-doc/doxygen )
+"
+
+# the PATENTS file is required to be distributed with this package bug #682214
+DOCS=( PATENTS )
+
+multilib_src_configure() {
+       local mycmakeargs=(
+               -DENABLE_DOCS=$(multilib_native_usex doc ON OFF)
+               -DENABLE_EXAMPLES=$(multilib_native_usex examples ON OFF)
+               -DENABLE_NASM=OFF
+               -DENABLE_TESTS=OFF
+               -DENABLE_TOOLS=ON
+               -DENABLE_WERROR=OFF
+
+               -DENABLE_NEON=$(usex cpu_flags_arm_neon ON OFF)
+               # ENABLE_DSPR2 / ENABLE_MSA for mips
+               -DENABLE_MMX=$(usex cpu_flags_x86_mmx ON OFF)
+               -DENABLE_SSE=$(usex cpu_flags_x86_sse ON OFF)
+               -DENABLE_SSE2=$(usex cpu_flags_x86_sse2 ON OFF)
+               -DENABLE_SSE3=$(usex cpu_flags_x86_sse3 ON OFF)
+               -DENABLE_SSSE3=$(usex cpu_flags_x86_ssse3 ON OFF)
+               -DENABLE_SSE4_1=$(usex cpu_flags_x86_sse4_1 ON OFF)
+               -DENABLE_SSE4_2=$(usex cpu_flags_x86_sse4_2 ON OFF)
+               -DENABLE_AVX=$(usex cpu_flags_x86_avx ON OFF)
+               -DENABLE_AVX2=$(usex cpu_flags_x86_avx2 ON OFF)
+       )
+       cmake_src_configure
+}
+
+multilib_src_install() {
+       if multilib_is_native_abi && use doc ; then
+               local HTML_DOCS=( "${BUILD_DIR}"/docs/html/. )
+       fi
+       cmake_src_install
+}
+
+multilib_src_install_all() {
+       find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
+}
index 22ed368368561288a29c87c4585e1d4cfd48cb33..67c9b166e78aed61bce15dfca3ceb06bc8573bef 100644 (file)
@@ -25,9 +25,10 @@ DESCRIPTION="Alliance for Open Media AV1 Codec SDK"
 HOMEPAGE="https://aomedia.org"
 
 LICENSE="BSD-2"
-SLOT="0/0"
+SLOT="0/1.9999"
 IUSE="doc examples"
-IUSE="${IUSE} cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3 cpu_flags_x86_sse4_1 cpu_flags_x86_avx cpu_flags_x86_avx2"
+IUSE="${IUSE} cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 cpu_flags_x86_sse3 cpu_flags_x86_ssse3"
+IUSE="${IUSE} cpu_flags_x86_sse4_1 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2"
 IUSE="${IUSE} cpu_flags_arm_neon"
 
 REQUIRED_USE="
@@ -53,6 +54,7 @@ multilib_src_configure() {
                -DENABLE_DOCS=$(multilib_native_usex doc ON OFF)
                -DENABLE_EXAMPLES=$(multilib_native_usex examples ON OFF)
                -DENABLE_NASM=OFF
+               -DENABLE_TESTS=OFF
                -DENABLE_TOOLS=ON
                -DENABLE_WERROR=OFF
 
@@ -64,6 +66,7 @@ multilib_src_configure() {
                -DENABLE_SSE3=$(usex cpu_flags_x86_sse3 ON OFF)
                -DENABLE_SSSE3=$(usex cpu_flags_x86_ssse3 ON OFF)
                -DENABLE_SSE4_1=$(usex cpu_flags_x86_sse4_1 ON OFF)
+               -DENABLE_SSE4_2=$(usex cpu_flags_x86_sse4_2 ON OFF)
                -DENABLE_AVX=$(usex cpu_flags_x86_avx ON OFF)
                -DENABLE_AVX2=$(usex cpu_flags_x86_avx2 ON OFF)
        )
@@ -76,3 +79,7 @@ multilib_src_install() {
        fi
        cmake_src_install
 }
+
+multilib_src_install_all() {
+       find "${ED}" -type f \( -name "*.a" -o -name "*.la" \) -delete || die
+}