diff options
author | Patrick McLean <patrick.mclean@sony.com> | 2019-10-28 11:35:47 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2019-10-28 11:36:48 -0700 |
commit | f6964fcf0c59cf679ba5dc1bf72be6c1dffc1a87 (patch) | |
tree | 3e33b14cdebeb0f32d6509a932ba0de10bea38df /media-libs/dav1d/dav1d-0.5.1.ebuild | |
parent | net-libs/libmicrohttpd: version bump to 0.9.68 (diff) | |
download | gentoo-f6964fcf0c59cf679ba5dc1bf72be6c1dffc1a87.tar.gz gentoo-f6964fcf0c59cf679ba5dc1bf72be6c1dffc1a87.tar.bz2 gentoo-f6964fcf0c59cf679ba5dc1bf72be6c1dffc1a87.zip |
media-libs/dav1d: Version bump to 0.5.1, move to EAPI=7
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'media-libs/dav1d/dav1d-0.5.1.ebuild')
-rw-r--r-- | media-libs/dav1d/dav1d-0.5.1.ebuild | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/media-libs/dav1d/dav1d-0.5.1.ebuild b/media-libs/dav1d/dav1d-0.5.1.ebuild new file mode 100644 index 000000000000..69a1a98df066 --- /dev/null +++ b/media-libs/dav1d/dav1d-0.5.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +SCM="" +if [[ "${PV}" == "9999" ]]; then + SCM="git-r3" + EGIT_REPO_URI="https://code.videolan.org/videolan/dav1d" +else + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86" + 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/3" +IUSE="+8bit +10bit +asm" + +ASM_DEPEND=">=dev-lang/nasm-2.13.02" +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 ) + + if [[ ${MULTILIB_ABI_FLAG} == abi_x86_x32 ]]; then + build_asm=false + else + build_asm=$(usex asm true false) + fi + + local emesonargs=( + -D bitdepths=$(IFS=,; echo "${bits[*]}") + -D build_asm=$build_asm + ) + meson_src_configure +} + +multilib_src_compile() { + eninja +} + +multilib_src_install() { + DESTDIR="${D}" eninja install +} |