diff options
Diffstat (limited to 'media-libs/libaom')
-rw-r--r-- | media-libs/libaom/Manifest | 4 | ||||
-rw-r--r-- | media-libs/libaom/libaom-2.0.0_rc1.ebuild | 79 | ||||
-rw-r--r-- | media-libs/libaom/libaom-9999.ebuild | 11 |
3 files changed, 91 insertions, 3 deletions
diff --git a/media-libs/libaom/Manifest b/media-libs/libaom/Manifest index 36581a4ed7a3..6970288b1580 100644 --- a/media-libs/libaom/Manifest +++ b/media-libs/libaom/Manifest @@ -4,6 +4,8 @@ AUX libaom-1.0.0-version.patch 403 BLAKE2B 8ab115aecb2251750f964bafea7e74ea8e4ed AUX libdirpc2.patch 2481 BLAKE2B 6236c31784ebd76884e716857e665824f9b325a97c2cb8e01a38c97b0398141202d7cab0a8d9b69b037ad8ba0b7d5e293bda3e2c491906ac6dd9555f7d4631ec SHA512 ec47d5b026c4b687649a2ce46500376103ae3fef21cba2cb564771c3738dba4e61e51858875516f884ab4604b0c160e6ee07b98e6740643e18f596c624df1ccb AUX pthread_lib2.patch 535 BLAKE2B 17eabab9e5d7b9d22b4f25ec8006e7e48bc3683b88f560bcb092234a1448ff47ae20d6ba04efb1af5742d7fc253acf9c944322acc8e8ed1acfad0b08df358eda SHA512 be19983342bae014409dd22c2e94ce11a5003a8ded3547a287ff71f53ef63ce1a1cfd6cdfbbfbf36deece2d3c1d9fb3e8e679598698a045229f79ba704976001 DIST libaom-1.0.0.tar.gz 2775454 BLAKE2B 09b891d365804f0c086785a00760af3191b40fc66fc752294e915b54454171fb47d3d1b037fb6d276727772ceec3177d78c14f90a2b01e28250d2de735bf02ec SHA512 131512ef286cb138047bb56dea54196f9a8d2b0d9f3d7689299f185338e5c03ee658b0cfe017a099f1a6be351a3a7157204dea70d2645a1d0a9249fd582c3fa4 +DIST libaom-2.0.0_rc1.tar.gz 3497410 BLAKE2B e8443e5d390c82912b951d78551f2c7a3e0cffe6aea1b846da29c0264cc9736069110e6701e6dc075964c0375e95f2c1c108c0c980a5ea78d0f970c6f47f4790 SHA512 06a0971e8fcd1d449c4fd2b04569dc32ce6fb8ab6c4a270413997c3aeba7a186e071683686e0fbc1eb1f8d6c2c3afa7f48601bf5530984bc1cf612ab5dd64841 EBUILD libaom-1.0.0-r2.ebuild 2585 BLAKE2B 6be258a02782560bf5fd8ac982e710a90f51abf4bf6565a7ae59b1531d560e064e6a3333cd6021cfa75e07db58e82c1d23d98e2bea84d89eadc80ab57f62e7b9 SHA512 6b834f4de8a1173c76ca3e4231ccb15c38f6a29669129865cbb8da6aa182a51a9673b965d57ddf876a6a32cc8a9e336d920dfa1208955089e2bcd706b256cdd5 -EBUILD libaom-9999.ebuild 2245 BLAKE2B ad771b20662c0d994ad6312a02248091f564c9a8277320ea6776df46d46630df63b9fb8b144cc1b4e9051c4c8fa76d3a819457896af4eaff7ad20fc8112f36ed SHA512 f4f288d79d8f493790790254436acd87937e6bf3d22cb4c050f759fdeedfe711a0792654831dbfe701f8389234757afbc385d686dee4325edd08a3a825e3bda7 +EBUILD libaom-2.0.0_rc1.ebuild 2391 BLAKE2B c3a087f79a756ebbd7b6dfd2bf59afe3d6cb4beb8ba89414f9830c4a515e19a9fcbebe4b879b3a13b2713ef543927840f0bfaed9b3c0b664fddf620cfffcdd9a SHA512 6a001c1c43c863428016fe20b702faf73b9cea9d0b884f050edd4960057dcbcd317b0083fd1cd180eba0e18a7e632b0e2b4ee66bb207ad74d99b5b2d713dee59 +EBUILD libaom-9999.ebuild 2464 BLAKE2B b7ce12113d541280fb7d0ab762970ae6e91bf5fafc05a6457a7e7483faab698d3a354e2a013ee97c011d6870a9e4ddb8530af43d7bba33c901742197385d41e2 SHA512 46fea52aa9dc196e9c740f86164264ac2bf4c5ab4acdbf0e94358c2dfd2c3d14b1417e5f2c3e7b01e622bfe183b3ea3afd9f83d2c45698ff88391f1ea94fa72f MISC metadata.xml 223 BLAKE2B 1a772bb5add75cb4343b09bb2456adcd5e46896daaab4091ab64b667c5fa1a4adab0940015a3e755df3d6540b456694dc67ef9581d02d40c63b89290f8f83e43 SHA512 27b688917e0b1c4a75ea34c97d2d67d309573941492ab04124de11034f3b2796480f02408d86e2eba77ca2000722ea6606fe12a49622c04f9e2c1fa27b6fc8db 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 index 000000000000..bcc3c9689fb9 --- /dev/null +++ b/media-libs/libaom/libaom-2.0.0_rc1.ebuild @@ -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 +} diff --git a/media-libs/libaom/libaom-9999.ebuild b/media-libs/libaom/libaom-9999.ebuild index 22ed36836856..67c9b166e78a 100644 --- a/media-libs/libaom/libaom-9999.ebuild +++ b/media-libs/libaom/libaom-9999.ebuild @@ -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 +} |