diff options
author | Daniel Novomesky <dnovomesky@gmail.com> | 2020-11-25 11:17:47 +0100 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2020-11-25 13:29:02 +0200 |
commit | 98727f40ac87c8ce371a303ed2d93318b7793cbc (patch) | |
tree | 0aae61bd87ddaa418193cd8af8c8ef1d5ee293dd /media-libs/libavif | |
parent | dev-python/os-vif: Mark ALLARCHES (diff) | |
download | gentoo-98727f40ac87c8ce371a303ed2d93318b7793cbc.tar.gz gentoo-98727f40ac87c8ce371a303ed2d93318b7793cbc.tar.bz2 gentoo-98727f40ac87c8ce371a303ed2d93318b7793cbc.zip |
media-libs/libavif: 0.8.4 version bump
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Daniel Novomesky <dnovomesky@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/18397
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-libs/libavif')
-rw-r--r-- | media-libs/libavif/Manifest | 1 | ||||
-rw-r--r-- | media-libs/libavif/libavif-0.8.4.ebuild | 75 |
2 files changed, 76 insertions, 0 deletions
diff --git a/media-libs/libavif/Manifest b/media-libs/libavif/Manifest index 5191a1181b65..398047181205 100644 --- a/media-libs/libavif/Manifest +++ b/media-libs/libavif/Manifest @@ -1,2 +1,3 @@ DIST libavif-0.8.1.tar.gz 2915941 BLAKE2B 40030a5a002e68231adf48ecc6e8012f7ec53506770872fc79dfd73496fa3a214c10cf5fb5826f145fe1f881adf2a3ecca13c33989b2f048aa72e455ab6950e0 SHA512 03692fbba49fde08d76cebb847d0404a81113824e9e65edc6a0977f323d060c394d111e2a7647788fa3115f3ae80b0fc92d4fe5be53852e6734b96a8f1c1a078 DIST libavif-0.8.3.tar.gz 2948213 BLAKE2B 985c18c86eb7d2049bac21111ba861b141806504b38d2fe0828745f6112c254633dc27fc7257fab5dadb866991085776bd9beeaceca15f33d216eb9337db42e9 SHA512 d8624cd63489f7c17dbafe1a91d01dca21143be073295f2bed9491d5e7899ec0163881e16f3331e5653cdf447e7fb56fb52b9260264cdd7c7ad0e3aaf5695b6c +DIST libavif-0.8.4.tar.gz 2952844 BLAKE2B b5cd46d668212aab23c8146ebfcb793214873d9f82e1b7ca5876cb9859b96ac5b60ad86c2345654f85e97cb6d920f286b683d0bb588ce7db04f50322b158678c SHA512 92c5df26da70ca113ff3b217a4a09e3dea0b7c4737e0924bd2b232502cfda0c79f4f0785bc7992c973491af7660338cda481bae7b999632815142564bf3275ba diff --git a/media-libs/libavif/libavif-0.8.4.ebuild b/media-libs/libavif/libavif-0.8.4.ebuild new file mode 100644 index 000000000000..3af174f791af --- /dev/null +++ b/media-libs/libavif/libavif-0.8.4.ebuild @@ -0,0 +1,75 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake gnome2-utils + +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-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" +IUSE="+aom dav1d examples extras gdk-pixbuf rav1e" + +DEPEND="media-libs/libpng + sys-libs/zlib + virtual/jpeg + aom? ( >=media-libs/libaom-2.0.0 ) + dav1d? ( media-libs/dav1d ) + gdk-pixbuf? ( x11-libs/gdk-pixbuf:2 ) + rav1e? ( media-video/rav1e[capi] )" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +REQUIRED_USE="|| ( aom dav1d )" + +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) + + -DAVIF_BUILD_GDK_PIXBUF=$(usex gdk-pixbuf ON OFF) + + -DAVIF_ENABLE_WERROR=OFF + ) + + cmake_src_configure +} + +pkg_preinst() { + if use gdk-pixbuf ; then + gnome2_gdk_pixbuf_savelist + fi +} + +pkg_postinst() { + if ! use aom && ! use rav1e ; then + ewarn "aom and rav1e flags are not set," + ewarn "libavif will work in read-only mode." + ewarn "Enable aom or rav1e flag if you want to save .AVIF files." + fi + + if use gdk-pixbuf ; then + gnome2_gdk_pixbuf_update + fi +} + +pkg_postrm() { + if use gdk-pixbuf ; then + gnome2_gdk_pixbuf_update + fi +} |