summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2024-06-10 10:16:22 +0200
committerLuca Barbato <lu_zero@gentoo.org>2024-06-10 10:52:19 +0200
commita5fdc7abed3a7302f7629bb95a46d69fb81a63ba (patch)
treef189cfddc88d3c37f30ea91305dbefaaccb1bc26 /media-libs/dav1d/dav1d-1.4.2.ebuild
parentapp-misc/fastfetch: Stabilize 2.11.5 ppc64, #933991 (diff)
downloadgentoo-a5fdc7abed3a7302f7629bb95a46d69fb81a63ba.tar.gz
gentoo-a5fdc7abed3a7302f7629bb95a46d69fb81a63ba.tar.bz2
gentoo-a5fdc7abed3a7302f7629bb95a46d69fb81a63ba.zip
media-libs/dav1d: add 1.4.2
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'media-libs/dav1d/dav1d-1.4.2.ebuild')
-rw-r--r--media-libs/dav1d/dav1d-1.4.2.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/media-libs/dav1d/dav1d-1.4.2.ebuild b/media-libs/dav1d/dav1d-1.4.2.ebuild
new file mode 100644
index 000000000000..5a9b234dae6e
--- /dev/null
+++ b/media-libs/dav1d/dav1d-1.4.2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+if [[ ${PV} == 9999 ]]; then
+ EGIT_REPO_URI="https://code.videolan.org/videolan/dav1d"
+ inherit git-r3
+else
+ SRC_URI="https://downloads.videolan.org/pub/videolan/dav1d/${PV}/${P}.tar.xz"
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~arm64-macos ~x64-macos"
+fi
+
+inherit meson-multilib
+
+DESCRIPTION="dav1d is an AV1 Decoder :)"
+HOMEPAGE="https://code.videolan.org/videolan/dav1d"
+
+LICENSE="BSD-2"
+# Check SONAME on version bumps!
+SLOT="0/7"
+IUSE="+8bit +10bit +asm test xxhash"
+RESTRICT="!test? ( test )"
+
+ASM_DEPEND=">=dev-lang/nasm-2.15.05"
+DEPEND="xxhash? ( dev-libs/xxhash )"
+BDEPEND="
+ asm? (
+ abi_x86_32? ( ${ASM_DEPEND} )
+ abi_x86_64? ( ${ASM_DEPEND} )
+ )
+"
+
+DOCS=( README.md doc/PATENTS THANKS.md )
+
+multilib_src_configure() {
+ local -a bits=()
+ use 8bit && bits+=( 8 )
+ use 10bit && bits+=( 16 )
+
+ local enable_asm
+ if [[ ${MULTILIB_ABI_FLAG} == abi_x86_x32 ]]; then
+ enable_asm=false
+ else
+ enable_asm=$(usex asm true false)
+ fi
+
+ local emesonargs=(
+ -Dbitdepths=$(IFS=,; echo "${bits[*]}")
+ -Denable_asm=${enable_asm}
+ $(meson_use test enable_tests)
+ $(meson_feature xxhash xxhash_muxer)
+ )
+ meson_src_configure
+}
+
+multilib_src_test() {
+ if multilib_is_native_abi ; then
+ meson_src_test
+ fi
+}