media-libs/libaom: new snapshot
authorThomas Deutschmann <whissi@gentoo.org>
Thu, 7 May 2020 13:33:09 +0000 (15:33 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Thu, 7 May 2020 13:33:42 +0000 (15:33 +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 [new file with mode: 0644]

index 9f4fe86094b4aee6d744dd065b34c7e0e53f422d..190d5c53708ea68ba1309b7bd744d7a4f8084be6 100644 (file)
@@ -1 +1,2 @@
 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
diff --git a/media-libs/libaom/libaom-1.0.0_p20200507.ebuild b/media-libs/libaom/libaom-1.0.0_p20200507.ebuild
new file mode 100644 (file)
index 0000000..93b1de3
--- /dev/null
@@ -0,0 +1,73 @@
+# 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="1a090d5d5ac322add74ebb6b5df7f4074909cd09"
+       SRC_URI="https://aomedia.googlesource.com/aom/+archive/${MY_COMMIT}.tar.gz -> ${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/0"
+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_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 )
+"
+
+PATCHES=( "${FILESDIR}/pthread_lib2.patch" )
+
+# 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_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_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
+}