summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2020-09-25 12:34:24 +0300
committerJoonas Niilola <juippis@gentoo.org>2020-09-25 12:34:48 +0300
commit492444c463ca19391c19706f608d96ffe0f59687 (patch)
tree7f83c7dc3b27dd7d53acbae781042cb78925f93c /media-libs
parentsys-apps/fakeroot: Bump to version 1.24.1 (diff)
downloadgentoo-492444c463ca19391c19706f608d96ffe0f59687.tar.gz
gentoo-492444c463ca19391c19706f608d96ffe0f59687.tar.bz2
gentoo-492444c463ca19391c19706f608d96ffe0f59687.zip
media-libs/libavif: Library for encoding and decoding .avif files
- rdep of dev-libs/efl[avif] Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libavif/Manifest1
-rw-r--r--media-libs/libavif/libavif-0.8.1.ebuild47
-rw-r--r--media-libs/libavif/metadata.xml14
3 files changed, 62 insertions, 0 deletions
diff --git a/media-libs/libavif/Manifest b/media-libs/libavif/Manifest
new file mode 100644
index 000000000000..ca355de574cf
--- /dev/null
+++ b/media-libs/libavif/Manifest
@@ -0,0 +1 @@
+DIST libavif-0.8.1.tar.gz 2915941 BLAKE2B 40030a5a002e68231adf48ecc6e8012f7ec53506770872fc79dfd73496fa3a214c10cf5fb5826f145fe1f881adf2a3ecca13c33989b2f048aa72e455ab6950e0 SHA512 03692fbba49fde08d76cebb847d0404a81113824e9e65edc6a0977f323d060c394d111e2a7647788fa3115f3ae80b0fc92d4fe5be53852e6734b96a8f1c1a078
diff --git a/media-libs/libavif/libavif-0.8.1.ebuild b/media-libs/libavif/libavif-0.8.1.ebuild
new file mode 100644
index 000000000000..94fc5ce369f2
--- /dev/null
+++ b/media-libs/libavif/libavif-0.8.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="Library for encoding and decoding .avif files"
+HOMEPAGE="https://github.com/AOMediaCodec/libavif"
+SRC_URI="https://github.com/AOMediaCodec/libavif/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+aom dav1d examples extras rav1e"
+
+DEPEND="media-libs/libpng
+ sys-libs/zlib
+ virtual/jpeg
+ aom? ( media-libs/libaom )
+ dav1d? ( media-libs/dav1d )
+ rav1e? ( media-video/rav1e )"
+RDEPEND="${DEPEND}"
+BDEPEND="dev-lang/nasm
+ virtual/pkgconfig"
+
+REQUIRED_USE="|| ( aom dav1d rav1e )"
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ -DAVIF_CODEC_AOM=$(usex aom ON OFF)
+ -DAVIF_CODEC_DAV1D=$(usex dav1d ON OFF)
+ -DAVIF_CODEC_LIBGAV1=OFF
+ -DAVIF_CODEC_RAV1E=$(usex rav1e ON OFF)
+
+ # Use system libraries.
+ -DAVIF_LOCAL_ZLIBPNG=OFF
+ -DAVIF_LOCAL_JPEG=OFF
+
+ -DAVIF_BUILD_EXAMPLES=$(usex examples ON OFF)
+ -DAVIF_BUILD_APPS=$(usex extras ON OFF)
+ -DAVIF_BUILD_TESTS=$(usex extras ON OFF)
+ )
+
+ cmake_src_configure
+}
diff --git a/media-libs/libavif/metadata.xml b/media-libs/libavif/metadata.xml
new file mode 100644
index 000000000000..58fba5b72b3b
--- /dev/null
+++ b/media-libs/libavif/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>juippis@gentoo.org</email>
+ <name>Joonas Niilola</name>
+ </maintainer>
+ <use>
+ <flag name="aom">Enable support for the AOM codec encoding and decoding</flag>
+ <flag name="dav1d">Enable support for the dav1d codec encoding and decoding</flag>
+ <flag name="extras">Build extra apps and test files</flag>
+ <flag name="rav1e">Enable support for the rav1e codec encoding and decoding</flag>
+ </use>
+</pkgmetadata>