diff options
Diffstat (limited to 'media-libs/dav1d')
-rw-r--r-- | media-libs/dav1d/Manifest | 2 | ||||
-rw-r--r-- | media-libs/dav1d/dav1d-9999.ebuild | 52 | ||||
-rw-r--r-- | media-libs/dav1d/metadata.xml | 12 |
3 files changed, 66 insertions, 0 deletions
diff --git a/media-libs/dav1d/Manifest b/media-libs/dav1d/Manifest new file mode 100644 index 000000000000..093a63f3160d --- /dev/null +++ b/media-libs/dav1d/Manifest @@ -0,0 +1,2 @@ +EBUILD dav1d-9999.ebuild 1027 BLAKE2B eae4bb5079e773f5b8947a46410e94d6e509599702e69584ae760d185ecbaa3be42d18d83a8eac8f9afb41c9761cfdc4a842902a7de2232706cb1874462d0935 SHA512 fddcc1f6c07a5e885abf5f68baed1922e12f9ad647df6b71d7c6f300584e18530256b4fcb225de20677fbb78a49e5a791dec1bc7336438cc6e756eaeabeba9aa +MISC metadata.xml 450 BLAKE2B e0baba38bb5ce93220e5773e6f93d92ac12f10f2c7fc26049e3951ed2da988920256efd517eb8fad9d811677ed74ca0bbb6aca216bbee3edf1cffc6b0143a2a4 SHA512 9c93e96a5fbca416aab7c0ed91b3e9ff3dac5469500ff73001519d56240e1c5576c02d51a5988d9e3a5bdfcd1e82bb9eedce2449fb2e8a0f39d1a4c672f19515 diff --git a/media-libs/dav1d/dav1d-9999.ebuild b/media-libs/dav1d/dav1d-9999.ebuild new file mode 100644 index 000000000000..2f6ff4e339b5 --- /dev/null +++ b/media-libs/dav1d/dav1d-9999.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +SCM="" +if [[ "${PV}" == "9999" ]]; then + SCM="git-r3" + EGIT_REPO_URI="https://code.videolan.org/videolan/dav1d" +else + KEYWORDS="~amd64" + SRC_URI="https://code.videolan.org/videolan/dav1d/-/archive/${PV}/${P}.tar.bz2" +fi + +inherit ${SCM} meson ninja-utils multilib-minimal + +DESCRIPTION="dav1d is an AV1 Decoder :)" +HOMEPAGE="https://code.videolan.org/videolan/dav1d" + +LICENSE="BSD-2" +SLOT="0" +IUSE="+8bit +10bit +asm" + +ASM_DEPEND=">=dev-lang/nasm-2.13" +RDEPEND="" +DEPEND="${RDEPEND} + asm? ( + abi_x86_32? ( ${ASM_DEPEND} ) + abi_x86_64? ( ${ASM_DEPEND} ) + )" + +DOCS=( README.md doc/PATENTS ) + +multilib_src_configure() { + local -a bits=() + use 8bit && bits+=( 8 ) + use 10bit && bits+=( 10 ) + + local emesonargs=( + -D bitdepths=$(IFS=,; echo "${bits[*]}") + -D build_asm=$(usex asm true false) + ) + meson_src_configure +} + +multilib_src_compile() { + eninja +} + +multilib_src_install() { + DESTDIR="${D}" eninja install +} diff --git a/media-libs/dav1d/metadata.xml b/media-libs/dav1d/metadata.xml new file mode 100644 index 000000000000..726e757f4b0d --- /dev/null +++ b/media-libs/dav1d/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <use> + <flag name="8bit">Add support for decoding 8-bit AV1.</flag> + <flag name="10bit">Add support for building 10-bit AV1.</flag> + <flag name="asm">Enable custom x86 assembly for faster decoding.</flag> + </use> + <upstream> + <bugs-to>https://code.videolan.org/videolan/dav1d/issues</bugs-to> + </upstream> +</pkgmetadata> |