From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 30830138334 for ; Fri, 28 Sep 2018 12:01:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2CE1AE0827; Fri, 28 Sep 2018 12:01:07 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E2C5AE0827 for ; Fri, 28 Sep 2018 12:01:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 275C9335C07 for ; Fri, 28 Sep 2018 12:01:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7CCA63E2 for ; Fri, 28 Sep 2018 12:01:03 +0000 (UTC) From: "Luca Barbato" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Luca Barbato" Message-ID: <1538136051.f5778ace3f0e72aab7acab9bcd746068c6f4b421.lu_zero@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/dav1d/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/dav1d/dav1d-9999.ebuild media-libs/dav1d/metadata.xml X-VCS-Directories: media-libs/dav1d/ X-VCS-Committer: lu_zero X-VCS-Committer-Name: Luca Barbato X-VCS-Revision: f5778ace3f0e72aab7acab9bcd746068c6f4b421 X-VCS-Branch: master Date: Fri, 28 Sep 2018 12:01:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 28f7cbdd-149f-4c33-818c-3e6beaacd4cb X-Archives-Hash: 356421ba7423381a8f7ebb00a0d30601 commit: f5778ace3f0e72aab7acab9bcd746068c6f4b421 Author: Niklas Haas haasn xyz> AuthorDate: Thu Sep 27 14:43:20 2018 +0000 Commit: Luca Barbato gentoo org> CommitDate: Fri Sep 28 12:00:51 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5778ace media-libs/dav1d: Add new package This is a new AV1 decoder by VideoLAN. There is no tagged release yet, so this commit only adds the 9999 ebuild. Signed-off-by: Niklas Haas haasn.xyz> Signed-off-by: Luca Barbato gentoo.org> media-libs/dav1d/dav1d-9999.ebuild | 52 ++++++++++++++++++++++++++++++++++++++ media-libs/dav1d/metadata.xml | 12 +++++++++ 2 files changed, 64 insertions(+) diff --git a/media-libs/dav1d/dav1d-9999.ebuild b/media-libs/dav1d/dav1d-9999.ebuild new file mode 100644 index 00000000000..2f6ff4e339b --- /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 00000000000..726e757f4b0 --- /dev/null +++ b/media-libs/dav1d/metadata.xml @@ -0,0 +1,12 @@ + + + + + Add support for decoding 8-bit AV1. + Add support for building 10-bit AV1. + Enable custom x86 assembly for faster decoding. + + + https://code.videolan.org/videolan/dav1d/issues + +