forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
1 parent
dcfeb16
commit f6964fc
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |