From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libavif/
Date: Fri,  6 Oct 2023 08:29:13 +0000 (UTC)	[thread overview]
Message-ID: <1696580951.890be6efde5b1591507e1f19914d776b3c76a96c.juippis@gentoo> (raw)
commit:     890be6efde5b1591507e1f19914d776b3c76a96c
Author:     Daniel Novomeský <dnovomesky <AT> gmail <DOT> com>
AuthorDate: Wed Aug 30 13:21:16 2023 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Oct  6 08:29:11 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=890be6ef
media-libs/libavif: add 1.0.1
Signed-off-by: Daniel Novomeský <dnovomesky <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/32530
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
 media-libs/libavif/Manifest             |   1 +
 media-libs/libavif/libavif-1.0.1.ebuild | 107 ++++++++++++++++++++++++++++++++
 media-libs/libavif/metadata.xml         |   3 +
 3 files changed, 111 insertions(+)
diff --git a/media-libs/libavif/Manifest b/media-libs/libavif/Manifest
index 4655da5c028f..fa107dccd15b 100644
--- a/media-libs/libavif/Manifest
+++ b/media-libs/libavif/Manifest
@@ -1,2 +1,3 @@
 DIST libavif-0.10.1.tar.gz 2085698 BLAKE2B 5be3f9adf7e0a5747e42c90ce2768eba90053c821805cc8e39915d6cbc4cd42554b1473118b41eb25010d20a2b5a3c141b9cbd6ff55c46abd79eb97cdee6b0e5 SHA512 2f6f248c56c983761149d3c201fc2a2ea5072a32516578a7fdb2c66e3cd22491540f400e23581f873b15454250eeec8d433924ae2c1de9371b7924a5d82bef6b
 DIST libavif-0.11.1.tar.gz 5826813 BLAKE2B 8fcbc9e1655546b7f4e62882b44d07b8bcfceef599e0feb5658c475cbc35cbb27bae0ad58475c2657351a890ccb957fa8a0e28328bbb5664cd8a57cedfb58019 SHA512 4a9e2711fccddf35c477db6e2fa2f76c0648aafaa98b4e3f34df62c0fbd02ddcd57762f1f8149822da4f1bc3757ee75ec1d9ced5e56a54dbe9d0b43265aacd4c
+DIST libavif-1.0.1.tar.gz 10569767 BLAKE2B a50ade5ac9a05c987f8f10806d2f749af89a5fb5cb5ef01648a398bcd5a2f568abe4fa646b2a8f33aa2b5b0a718f80f140d9f1f87c524c805d970d5517ec667c SHA512 f7c35e40f9214314afeae69d5da6ab345e6dbd025e737a920ea4270452cdf7ff7010d7af5cc18d27e93b217114eb6b613cd349703d0e1bb7814dbeb84a9fd70f
diff --git a/media-libs/libavif/libavif-1.0.1.ebuild b/media-libs/libavif/libavif-1.0.1.ebuild
new file mode 100644
index 000000000000..66db654c8a23
--- /dev/null
+++ b/media-libs/libavif/libavif-1.0.1.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib 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"
+# See bug #822336 re subslot
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1"
+
+REQUIRED_USE="|| ( aom dav1d )"
+
+DEPEND="media-libs/libjpeg-turbo[${MULTILIB_USEDEP}]
+	media-libs/libpng[${MULTILIB_USEDEP}]
+	sys-libs/zlib[${MULTILIB_USEDEP}]
+	aom? ( >=media-libs/libaom-3.3.0:=[${MULTILIB_USEDEP}] )
+	dav1d? ( >=media-libs/dav1d-1.0.0:=[${MULTILIB_USEDEP}] )
+	extras? ( dev-cpp/gtest )
+	gdk-pixbuf? ( x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] )
+	rav1e? ( >=media-video/rav1e-0.5.1[capi] )
+	svt-av1? ( >=media-libs/svt-av1-0.9.1 )"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+multilib_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
+
+		# Use system libraries.
+		-DAVIF_LOCAL_ZLIBPNG=OFF
+		-DAVIF_LOCAL_JPEG=OFF
+
+		-DAVIF_BUILD_GDK_PIXBUF=$(usex gdk-pixbuf ON OFF)
+
+		-DAVIF_ENABLE_WERROR=OFF
+	)
+
+	if multilib_is_native_abi; then
+		mycmakeargs+=(
+			-DAVIF_CODEC_RAV1E=$(usex rav1e ON OFF)
+			-DAVIF_CODEC_SVT=$(usex svt-av1 ON OFF)
+
+			-DAVIF_BUILD_EXAMPLES=$(usex examples ON OFF)
+			-DAVIF_BUILD_APPS=$(usex extras ON OFF)
+			-DAVIF_BUILD_TESTS=$(usex extras ON OFF)
+			-DAVIF_ENABLE_GTEST=$(usex extras ON OFF)
+		)
+	else
+		mycmakeargs+=(
+			-DAVIF_CODEC_RAV1E=OFF
+			-DAVIF_CODEC_SVT=OFF
+
+			-DAVIF_BUILD_EXAMPLES=OFF
+			-DAVIF_BUILD_APPS=OFF
+			-DAVIF_BUILD_TESTS=OFF
+			-DAVIF_ENABLE_GTEST=OFF
+		)
+
+		if ! use aom ; then
+			if use rav1e || use svt-av1 ; then
+				ewarn "libavif on ${MULTILIB_ABI_FLAG} will work in read-only mode."
+				ewarn "Support for rav1e and/or svt-av1 is is not available on ${MULTILIB_ABI_FLAG}"
+				ewarn "Enable aom flag for full support on ${MULTILIB_ABI_FLAG}"
+			fi
+		fi
+	fi
+
+	cmake_src_configure
+}
+
+pkg_preinst() {
+	if use gdk-pixbuf ; then
+		gnome2_gdk_pixbuf_savelist
+	fi
+}
+
+pkg_postinst() {
+	if ! use aom && ! use rav1e && ! use svt-av1 ; then
+		ewarn "No AV1 encoder is set,"
+		ewarn "libavif will work in read-only mode."
+		ewarn "Enable aom, rav1e or svt-av1 flag if you want to save .AVIF files."
+	fi
+
+	if use gdk-pixbuf ; then
+		# causes segfault if set, see bug 375615
+		unset __GL_NO_DSO_FINALIZER
+		multilib_foreach_abi gnome2_gdk_pixbuf_update
+	fi
+}
+
+pkg_postrm() {
+	if use gdk-pixbuf ; then
+		# causes segfault if set, see bug 375615
+		unset __GL_NO_DSO_FINALIZER
+		multilib_foreach_abi gnome2_gdk_pixbuf_update
+	fi
+}
diff --git a/media-libs/libavif/metadata.xml b/media-libs/libavif/metadata.xml
index d04294192b93..fa304031f6dd 100644
--- a/media-libs/libavif/metadata.xml
+++ b/media-libs/libavif/metadata.xml
@@ -17,4 +17,7 @@
     <flag name="rav1e">Enable support for the rav1e codec encoding</flag>
     <flag name="svt-av1">Enable support for the SVT-AV1 encoder</flag>
   </use>
+  <upstream>
+    <remote-id type="github">AOMediaCodec/libavif</remote-id>
+  </upstream>
 </pkgmetadata>
next             reply	other threads:[~2023-10-06  8:29 UTC|newest]
Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-06  8:29 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-09-23 14:39 [gentoo-commits] repo/gentoo:master commit in: media-libs/libavif/ Arthur Zamarin
2025-09-23 14:29 Sam James
2025-09-22 16:12 Arthur Zamarin
2025-09-22 16:12 Arthur Zamarin
2025-07-13  9:13 Sam James
2025-07-13  8:58 Sam James
2025-06-24 12:29 Sam James
2025-04-28 16:48 Sam James
2025-04-28  5:55 Sam James
2025-04-28  5:53 Sam James
2025-04-28  5:33 Sam James
2025-03-21 10:22 Sam James
2025-03-21 10:22 Sam James
2024-10-04 17:37 Andreas Sturmlechner
2024-09-24 15:22 Sam James
2024-09-23  7:32 Arthur Zamarin
2024-09-23  7:32 Arthur Zamarin
2024-09-23  7:13 Arthur Zamarin
2024-09-23  7:13 Arthur Zamarin
2024-09-23  5:56 Sam James
2024-08-13  4:55 Michał Górny
2024-08-01  6:28 Joonas Niilola
2024-08-01  6:28 Joonas Niilola
2024-08-01  6:28 Joonas Niilola
2024-08-01  6:28 Joonas Niilola
2024-04-03 17:44 Michał Górny
2024-03-23  5:40 Michał Górny
2024-03-23  5:40 Michał Górny
2024-02-06 11:02 Michał Górny
2024-02-02 17:11 Michał Górny
2024-01-23  5:07 Ionen Wolkens
2024-01-09 14:38 Joonas Niilola
2024-01-09 14:38 Joonas Niilola
2023-12-25 17:26 Sam James
2023-12-12  6:30 Viorel Munteanu
2023-11-23 17:12 Sam James
2023-11-22 17:13 Florian Schmaus
2023-10-06  8:29 Joonas Niilola
2022-11-12  7:00 Joonas Niilola
2022-10-18 10:23 Agostino Sarubbo
2022-10-18  5:42 Sam James
2022-10-17 17:26 Arthur Zamarin
2022-08-05  7:16 Agostino Sarubbo
2022-08-04  8:03 Agostino Sarubbo
2022-05-17 11:54 WANG Xuerui
2022-04-18  7:27 Joonas Niilola
2022-03-22 17:02 Sam James
2022-01-05 17:34 Arthur Zamarin
2022-01-03  9:20 Sam James
2022-01-03  9:19 Sam James
2022-01-02 22:51 Sam James
2022-01-02 22:50 Sam James
2021-11-07 23:08 Sam James
2021-10-24  4:06 Sam James
2021-10-24  4:06 Sam James
2021-09-07  3:05 Sam James
2021-09-07  3:03 Sam James
2021-08-02 16:42 Marek Szuba
2021-06-30  6:53 Joonas Niilola
2021-05-23 23:07 Thomas Deutschmann
2021-05-23 12:12 Andreas Sturmlechner
2021-05-16 20:00 Sam James
2021-04-25  9:31 Sam James
2021-03-11 17:26 Sam James
2021-03-11  8:52 Joonas Niilola
2021-03-05  5:38 Joonas Niilola
2021-02-28 10:56 Joonas Niilola
2021-02-15  6:05 Sam James
2021-02-12 16:20 Sam James
2021-02-04  8:12 Agostino Sarubbo
2021-02-03  3:12 Sam James
2021-01-15  8:44 Joonas Niilola
2020-11-26  7:53 Joonas Niilola
2020-11-25 11:29 Joonas Niilola
2020-11-12  7:28 Joonas Niilola
2020-11-12  7:28 Joonas Niilola
2020-11-10 17:27 Joonas Niilola
2020-11-10 17:27 Joonas Niilola
2020-10-17 16:46 Joonas Niilola
2020-10-01 22:29 Sergei Trofimovich
2020-09-29 11:40 Sam James
2020-09-27 19:28 Sam James
2020-09-27 10:27 Joonas Niilola
2020-09-25 13:49 Joonas Niilola
2020-09-25  9:34 Joonas Niilola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox
  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):
  git send-email \
    --in-reply-to=1696580951.890be6efde5b1591507e1f19914d776b3c76a96c.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY
  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
  Be sure your reply has a Subject: header at the top and a blank line
  before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox