summaryrefslogtreecommitdiff
path: root/media-libs
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/Manifest.gzbin69939 -> 70104 bytes
-rw-r--r--media-libs/imlib2/Manifest4
-rw-r--r--media-libs/imlib2/imlib2-1.12.4.ebuild107
-rw-r--r--media-libs/imlib2/metadata.xml2
-rw-r--r--media-libs/libavif/Manifest6
-rw-r--r--media-libs/libavif/libavif-1.2.0.ebuild113
-rw-r--r--media-libs/libavif/libavif-9999.ebuild9
-rw-r--r--media-libs/libavif/metadata.xml1
-rw-r--r--media-libs/libyuv/Manifest7
-rw-r--r--media-libs/libyuv/files/0001-fix-install-dirs.patch42
-rw-r--r--media-libs/libyuv/files/0002-disable-static-library.patch61
-rw-r--r--media-libs/libyuv/files/0003-disable-test-tools.patch43
-rw-r--r--media-libs/libyuv/libyuv-1904.ebuild42
-rw-r--r--media-libs/libyuv/libyuv-9999.ebuild42
-rw-r--r--media-libs/libyuv/metadata.xml12
-rw-r--r--media-libs/mesa-amber/Manifest2
-rw-r--r--media-libs/mesa-amber/mesa-amber-21.3.9-r1.ebuild4
17 files changed, 486 insertions, 11 deletions
diff --git a/media-libs/Manifest.gz b/media-libs/Manifest.gz
index fbd863d5204d..a565cbbc0fd1 100644
--- a/media-libs/Manifest.gz
+++ b/media-libs/Manifest.gz
Binary files differ
diff --git a/media-libs/imlib2/Manifest b/media-libs/imlib2/Manifest
index 02ac6aa3a75d..3122098f5abd 100644
--- a/media-libs/imlib2/Manifest
+++ b/media-libs/imlib2/Manifest
@@ -1,7 +1,9 @@
DIST imlib2-1.11.0.tar.xz 820368 BLAKE2B 2e1dec04c44ce14429910c0dd6b7b5173bc70e8968912c9c25e8b47d38fdfd6753c29de2e5a2ae0b0e6498550e207989ae927682b09032b637baf759744dfbec SHA512 2727b217ae18e1015591f2587f885a5a8d59471d6051f1aefb761329fd0fc979163e228154b2bff8728a3a2acc28437f189989d24a4d6e37bfc6f69445bd47e7
DIST imlib2-1.12.2.tar.xz 831812 BLAKE2B 6b1bad56a70c3beb91ef85d6b7a40c80d0f3d2dc8b87bb9d37f2073ab0154860230671c3e78bc87051e5f25fc5871a036cb51dcc24b6734dcd2c322f406796b3 SHA512 3bffb8f0f6b3ec73a81f1d0c6ef3a3443425677cd8a1950422f102b67769c06df54128b21f84bd6c7880120cc5ec6f30d2ab134b3c001ad77f2d39efd749a5b7
DIST imlib2-1.12.3.tar.xz 833128 BLAKE2B 3c02b103bf65ed54319b30d3112b8c4a1b8f41333f2a8848fc44bc1380e1e5dbe3a21e311685d80f77f08815bb11a2a1073beb1683df852919f2c6003535fcaf SHA512 79feea73fb67508ffdce52f8430c2c887b06d8bcb70f6e3bc551c86d521ebf61fc1eff10994b69def4d7a237873f107066aefa367e05b5f89b5d675751d9314f
+DIST imlib2-1.12.4.tar.xz 840092 BLAKE2B 016521328d519d32950d371695aecdae562e73fcfccf9f037dedeb98641ea66183a53ba6c9cab2a45236222b55c4fcbd5df28d5960b8f51dfb15a356ef53fe75 SHA512 7eaf971a4a949697e04af838ea26f366e0f82faaa5d42ad748da979baef12ea3b05bc2e4eabf8963767a2313b400341f625ed740de457ccaa0aa038fdc2135b9
EBUILD imlib2-1.11.0.ebuild 3023 BLAKE2B b9fb3166fb7bafcfae84f50a18577beb289387bb8b7874bee6485197091146d0a35cd7796d943237cbf473018216c31ceaed9428ab48d3f7762117b233a58594 SHA512 db23a1692312636f3c32b35376e16d04c2925e8b0aa2c74e751fbbc8df632be15dc5fbbabdbc122b9cf82f6dab74cb893cb5a5cd622a2e5157618028fb68a816
EBUILD imlib2-1.12.2.ebuild 3158 BLAKE2B 7e654e4bf49c1d64d509e341f20f1d75077106e5dfc4a435312c32212d808020bc712a2b2bc44c3f9e2bd158ee8829ecba63cd2a4276220532d36626d2f8fb52 SHA512 f43f8df199c5d13d22eb20f3370b5c6af08141a9be630d7c4c57d6720139aa2209a76e3467489d711b05e57be6a3e3f9195e979d6c6d7bf7669b234eac083370
EBUILD imlib2-1.12.3-r1.ebuild 3200 BLAKE2B fe75d602e2c93718dc9091c00131b36b3c4922acea30887eee925adf45543dbd6b5fc77a87add03123a050eacca754c8479f0e600ce256f65fc33faec2f97cc2 SHA512 2133c7e744a4e3604b0c4f764fc034e35602168d5d48ec1c9af8e361f079c10297bc3c2d625abbe36e3225f4f10083013ed09361073d1ab056e22e90cb028a5d
-MISC metadata.xml 3499 BLAKE2B 116f7f67a7fe0354e9da8b94d7c833a100341fe377561beaa6d40c05994dd776d2655b8b2d3d356e3f53b8cd9e1cfe1b310df994106f6416b4fbbfea3363f13d SHA512 0dbb2db546597fb2b00822f6860feccc12f4ba22deeeff3b4411c5025a54beaa66c81145dc70936f8a959aeb6ea0b8be05a5afcf8d9c171bac8bf9b97250c034
+EBUILD imlib2-1.12.4.ebuild 3399 BLAKE2B a9b6ffb85b9d7422c5e8c48c9c2badbfbbe0152536954be6f9c7dd737262117d8054cb1945cad424d4a5fb7794f6f3ea2fd0f92158f881970494c468f76625d1 SHA512 b52c4577a29a931285f6d2d0cb254034a063169b8ad59b93460bd0a2dfb76232ee44774194a3e0c1bfeb81db868e5870151fa4f081282e900d831a9b9a0312fc
+MISC metadata.xml 3647 BLAKE2B 5b1d37949be0788b9f7afd8f04129eb3b6b4d2689e3da1ce77ed47cc40262e65a9ddac7d2608f2e07e703519b57b883f434cc0a10c9197bfc70f47ecf8b815d5 SHA512 18a8fa47f5d4627556739ae37013568de982ca0456eaa01edef445d2736ef4db8d46c5d64e2d46fb8504d4024ba5ddf80053c0efe014355ba3774c105e67239d
diff --git a/media-libs/imlib2/imlib2-1.12.4.ebuild b/media-libs/imlib2/imlib2-1.12.4.ebuild
new file mode 100644
index 000000000000..8efc515f2b51
--- /dev/null
+++ b/media-libs/imlib2/imlib2-1.12.4.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# Must be bumped with media-plugins/imlib2_loaders!
+
+inherit multilib-minimal toolchain-funcs
+
+DESCRIPTION="Version 2 of an advanced replacement library for libraries like libXpm"
+HOMEPAGE="https://www.enlightenment.org/
+ https://sourceforge.net/projects/enlightenment/files/imlib2-src/"
+SRC_URI="https://downloads.sourceforge.net/enlightenment/${P}.tar.xz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
+IUSE="+X apidoc avif bzip2 cpu_flags_x86_mmx cpu_flags_x86_sse2 debug
+eps +filters +gif +jpeg jpeg2k jpegxl heif lzma mp3 packing +png
+raw +shm static-libs svg +text +tools +tiff +webp +zlib"
+
+REQUIRED_USE="shm? ( X )"
+
+RDEPEND="
+ X? (
+ x11-libs/libX11[${MULTILIB_USEDEP}]
+ x11-libs/libXext[${MULTILIB_USEDEP}]
+ )
+ shm? ( x11-libs/libxcb[${MULTILIB_USEDEP}] )
+ avif? ( media-libs/libavif:=[${MULTILIB_USEDEP}] )
+ bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] )
+ eps? ( app-text/libspectre )
+ gif? ( media-libs/giflib:=[${MULTILIB_USEDEP}] )
+ heif? ( media-libs/libheif:=[${MULTILIB_USEDEP}] )
+ jpeg2k? ( media-libs/openjpeg:=[${MULTILIB_USEDEP}] )
+ jpeg? ( media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}] )
+ jpegxl? ( media-libs/libjxl:=[${MULTILIB_USEDEP}] )
+ lzma? ( app-arch/xz-utils[${MULTILIB_USEDEP}] )
+ text? ( media-libs/freetype:2[${MULTILIB_USEDEP}] )
+ mp3? ( media-libs/libid3tag:=[${MULTILIB_USEDEP}] )
+ png? ( >=media-libs/libpng-1.6.10:0=[${MULTILIB_USEDEP}] )
+ raw? ( media-libs/libraw:=[${MULTILIB_USEDEP}] )
+ svg? ( >=gnome-base/librsvg-2.46.0:=[${MULTILIB_USEDEP}] )
+ tools? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
+ tiff? ( >=media-libs/tiff-4.0.4:=[${MULTILIB_USEDEP}] )
+ webp? ( media-libs/libwebp:=[${MULTILIB_USEDEP}] )
+ zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] )
+ !<media-plugins/imlib2_loaders-1.10.0
+"
+DEPEND="${RDEPEND}
+ X? ( x11-base/xorg-proto )"
+BDEPEND="
+ virtual/pkgconfig
+ apidoc? ( app-text/doxygen )
+"
+
+# default DOCS will haul README.in we do not need
+DOCS=( AUTHORS ChangeLog README TODO )
+
+multilib_src_configure() {
+ local myeconfargs=(
+ $(use_with X x)
+ $(multilib_native_use_enable apidoc doc-build)
+ $(use_with avif)
+ $(use_with bzip2 bz2)
+ $(use_enable debug)
+ $(multilib_native_use_with eps ps)
+ $(use_enable filters)
+ $(use_with gif)
+ $(use_with heif)
+ $(use_with jpeg)
+ $(use_with jpeg2k j2k)
+ $(use_with jpegxl jxl)
+ $(use_with lzma)
+ $(use_with mp3 id3)
+ $(use_enable packing)
+ $(use_with png)
+ $(use_with raw)
+ $(use_with shm x-shm-fd)
+ $(use_enable static-libs static)
+ $(use_with svg)
+ $(use_enable text)
+ $(use_enable tools progs)
+ $(use_with tiff)
+ $(use_with webp)
+ $(use_with zlib)
+ # BUG: https://git.enlightenment.org/old/legacy-imlib2/issues/31
+ --without-y4m
+ )
+
+ # imlib2 has different configure options for x86/amd64 assembly
+ if [[ $(tc-arch) == amd64 ]]; then
+ myeconfargs+=( $(use_enable cpu_flags_x86_sse2 amd64) --disable-mmx )
+ else
+ myeconfargs+=( --disable-amd64 $(use_enable cpu_flags_x86_mmx mmx) )
+ fi
+
+ ECONF_SOURCE="${S}" \
+ econf "${myeconfargs[@]}"
+}
+
+multilib_src_install() {
+ V=1 emake install DESTDIR="${D}"
+ find "${D}" -name '*.la' -delete || die
+ multilib_is_native_abi && use apidoc &&
+ export HTML_DOCS=( "${BUILD_DIR}/doc/html/"* )
+}
diff --git a/media-libs/imlib2/metadata.xml b/media-libs/imlib2/metadata.xml
index 71448ea79f8e..a97803a617d3 100644
--- a/media-libs/imlib2/metadata.xml
+++ b/media-libs/imlib2/metadata.xml
@@ -16,6 +16,7 @@
<use>
<flag name="X">Use the X window system</flag>
<flag name="apidoc">Provide doxygen generated API docs</flag>
+ <flag name="avif">Avif image loader support via <pkg>media-libs/libavif</pkg></flag>
<flag name="bzip2">Bzip2 loader support</flag>
<flag name="filters">Build filter functions (blur, sharpen, etc)</flag>
<flag name="heif">Heif and Avif image loader support</flag>
@@ -23,6 +24,7 @@
<flag name="mp3">ID3 loader support</flag>
<flag name="packing">Enable structure packing. This will reduce memory footprint at the cost of unaligned memory access</flag>
<flag name="shm">Use MIT shared memory support for X image transfer</flag>
+ <flag name="tools">Build and install the demo tools</flag>
<flag name="text">Build text (TrueType font) functions</flag>
<flag name="zlib">Zlib loader support</flag>
</use>
diff --git a/media-libs/libavif/Manifest b/media-libs/libavif/Manifest
index db55c0750a4a..806b6a689f9c 100644
--- a/media-libs/libavif/Manifest
+++ b/media-libs/libavif/Manifest
@@ -1,4 +1,6 @@
DIST libavif-1.1.1.tar.gz 13644189 BLAKE2B c0a473b172206ea32358c28e7b94d8038b24030e4845611341076518cd82fd2bea78eb8e22e5481062b893ffb70789619ce4f85129a94a0db70a667c000f4fd0 SHA512 ba72b8d02b098f361643a073361fccafd22eaac14e46dd06378d5e7acd9853538c5d166473e1de0b020de62dac25be83e42bd57ba51f675d11e2ddf155fbfa21
+DIST libavif-1.2.0.tar.gz 13939380 BLAKE2B 272d855bec6568dc15f2a953fdf79ec1df190e151c2f265ea00f680f2c828780e0875580d72000fb56a0252c7ae06ef115f2b609db23ec3afc9e8a1c4bac4197 SHA512 f88eda1c699910a20e63a0aa0bcf782fb67b477c4d99aa88723628a53b0d849f35f73ff6a2e8bb53e170dc77662bde4a5c5c38b655f5adcfb73ddcf7ec264805
EBUILD libavif-1.1.1.ebuild 2856 BLAKE2B 763fce77023cda7a64e6aa9ab79c175f675925ff8fa5d37701a9f693ad6a014fe5b50364862179b613767a461bdd9b89f983b74a7cc97ad2223a574b8ef44b55 SHA512 bde522cf659a9daa42fc661a14f0db306ab7073dc973123a874ba6c2846c8dbe51f2538cf7d8db2f4884f08be14a86c866562b98465f87af473426e9c2f98501
-EBUILD libavif-9999.ebuild 2754 BLAKE2B a39ce76f57e845238cb7c19f5ec8ec52d82167867642bc256a8ca0c3419e66d5103018e86b57eda3904ed0d537b2967ac5b527febd6088600d850b2b059c9b95 SHA512 2701e2387f6d0b3016a04108af980f453cdf64015ade320acf842800e852aa367e158d6edebb565f29505447b4d9188fa5f5c25a8bd2cb14f7cc9c8dab7e7a38
-MISC metadata.xml 1033 BLAKE2B 94be58c7c8d0ea88d86c1203b3f77ce4a2bd699360ceba9991b4de77ab626c707941ef79d57f189510de2e43da641d2ce836bcc50df0db4e105f4d6274183653 SHA512 0073116364038e100579fd0db821552a285c5bfc85f2cd20b2b2ff21cc5740df01c59f23964189912d6cc9700515bd604b0fb1efd951f08c6e181bf47b3b59d7
+EBUILD libavif-1.2.0.ebuild 2908 BLAKE2B 5e83695960c5e1eb9e919c60af379462240a7205278741d5b6214ae602ccc33e5200cf4723835e5120b13892c30b6e1cbb50c09321a1339e022e2dd978632fe4 SHA512 771b3d2ea16f0e8425b32bedf7dffb94e50540780ea1f024602f44aa854e986e27e59cad7320f38dd0474f281cf873efd54c6f4d2ab68bc72808a543021cbb3b
+EBUILD libavif-9999.ebuild 2800 BLAKE2B 8d73a623bc972fffe048f1002048220deca7430fdac8c62727d8d52896496cda076ca78d4c11d34996968874dfc9c28382873bb3eabae5bd4b40bdccdaa82d99 SHA512 e26434fdc4d2d90fc12a078aaa81c080d2c283b7706ba56ec30543c06e6dd4d7a513b90ecb075d4e114dd7d36ebc2f9505828faf2f867086655665d505e3ecdb
+MISC metadata.xml 1102 BLAKE2B f9a8a774847f705cc9e665d0c0da900607857980d745912ddf94dcf67e46d205dff7e03c09ef8ba318fc375ccef908f10e50f9d971201447b57c6963b2458b9b SHA512 a10b47eb35f0db17bf48bb1da7caff9848f377ad0d75a4244c13b91d697d0c1776dceeb0431241c9f9c462a4de13c06b58bed250eaef96092579238616e55f31
diff --git a/media-libs/libavif/libavif-1.2.0.ebuild b/media-libs/libavif/libavif-1.2.0.ebuild
new file mode 100644
index 000000000000..bcae76648e56
--- /dev/null
+++ b/media-libs/libavif/libavif-1.2.0.ebuild
@@ -0,0 +1,113 @@
+# Copyright 2020-2025 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/16.1.1"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc64 ~riscv ~sparc ~x86"
+IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1 libyuv test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="|| ( aom dav1d )"
+
+DEPEND="
+ media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}]
+ media-libs/libpng:=[${MULTILIB_USEDEP}]
+ aom? ( >=media-libs/libaom-3.3.0:=[${MULTILIB_USEDEP}] )
+ dav1d? ( >=media-libs/dav1d-1.0.0:=[${MULTILIB_USEDEP}] )
+ extras? (
+ test? (
+ dev-cpp/gtest
+ media-gfx/imagemagick[lcms]
+ )
+ )
+ gdk-pixbuf? (
+ dev-libs/glib:2[${MULTILIB_USEDEP}]
+ x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}]
+ )
+ rav1e? ( >=media-video/rav1e-0.5.1:=[capi] )
+ svt-av1? ( >=media-libs/svt-av1-0.9.1:= )
+ libyuv? ( media-libs/libyuv:= )
+"
+RDEPEND="
+ ${DEPEND}
+"
+BDEPEND="
+ virtual/pkgconfig
+"
+
+multilib_src_configure() {
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=ON
+ -DAVIF_CODEC_LIBGAV1=OFF
+
+ # Use system libraries.
+ -DAVIF_CODEC_AOM=$(usex aom SYSTEM OFF)
+ -DAVIF_CODEC_DAV1D=$(usex dav1d SYSTEM OFF)
+ -DAVIF_ZLIBPNG=SYSTEM
+ -DAVIF_JPEG=SYSTEM
+ -DAVIF_LIBYUV=$(usex libyuv SYSTEM 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 SYSTEM OFF)
+ -DAVIF_CODEC_SVT=$(usex svt-av1 SYSTEM OFF)
+
+ -DAVIF_BUILD_EXAMPLES=$(usex examples ON OFF)
+ -DAVIF_BUILD_APPS=$(usex extras ON OFF)
+ -DAVIF_BUILD_TESTS=$(usex test ON OFF)
+ -DAVIF_ENABLE_GTEST=$(usex extras $(usex test ON OFF) OFF)
+ -DAVIF_GTEST=$(usex extras $(usex test SYSTEM OFF) 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
+ -DAVIF_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_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
+
+ use gdk-pixbuf && multilib_foreach_abi gnome2_gdk_pixbuf_update
+}
+
+pkg_postrm() {
+ use gdk-pixbuf && multilib_foreach_abi gnome2_gdk_pixbuf_update
+}
diff --git a/media-libs/libavif/libavif-9999.ebuild b/media-libs/libavif/libavif-9999.ebuild
index 1b5831110d64..1f9b5b6e2724 100644
--- a/media-libs/libavif/libavif-9999.ebuild
+++ b/media-libs/libavif/libavif-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020-2024 Gentoo Authors
+# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -12,7 +12,7 @@ EGIT_REPO_URI="https://github.com/AOMediaCodec/libavif.git"
LICENSE="BSD-2"
# See bug #822336 re subslot
SLOT="0/${PV}"
-IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1 test"
+IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1 libyuv test"
RESTRICT="!test? ( test )"
REQUIRED_USE="|| ( aom dav1d )"
@@ -33,6 +33,7 @@ DEPEND="
)
rav1e? ( >=media-video/rav1e-0.5.1:=[capi] )
svt-av1? ( >=media-libs/svt-av1-0.9.1:= )
+ libyuv? ( media-libs/libyuv:= )
"
RDEPEND="
${DEPEND}
@@ -46,14 +47,12 @@ multilib_src_configure() {
-DBUILD_SHARED_LIBS=ON
-DAVIF_CODEC_LIBGAV1=OFF
- # bug 916948
- -DAVIF_LIBYUV=OFF
-
# Use system libraries.
-DAVIF_CODEC_AOM=$(usex aom SYSTEM OFF)
-DAVIF_CODEC_DAV1D=$(usex dav1d SYSTEM OFF)
-DAVIF_ZLIBPNG=SYSTEM
-DAVIF_JPEG=SYSTEM
+ -DAVIF_LIBYUV=$(usex libyuv SYSTEM OFF)
-DAVIF_BUILD_GDK_PIXBUF=$(usex gdk-pixbuf ON OFF)
diff --git a/media-libs/libavif/metadata.xml b/media-libs/libavif/metadata.xml
index fc327ca39df8..2b6e2784c588 100644
--- a/media-libs/libavif/metadata.xml
+++ b/media-libs/libavif/metadata.xml
@@ -16,6 +16,7 @@
<flag name="gdk-pixbuf">Build a gdk-pixbuf loader</flag>
<flag name="rav1e">Enable support for the rav1e codec encoding</flag>
<flag name="svt-av1">Enable support for the SVT-AV1 encoder</flag>
+ <flag name="libyuv">Enable fast YUV conversion via libyuv</flag>
</use>
<upstream>
<bugs-to>https://github.com/AOMediaCodec/libavif/issues</bugs-to>
diff --git a/media-libs/libyuv/Manifest b/media-libs/libyuv/Manifest
new file mode 100644
index 000000000000..9778173142dd
--- /dev/null
+++ b/media-libs/libyuv/Manifest
@@ -0,0 +1,7 @@
+AUX 0001-fix-install-dirs.patch 1612 BLAKE2B be05b32216c43a6640d2657b258a465265eb209815f527a16a375461a0306e55477b2f8cdb0bbe843411c8f7141e9b51409718eb5a11daae0a3cb93d882c422a SHA512 d4a7e87bb844eb3d97b490233ca2e4874744fb12d4fde211f05ce45ba3fdb4fab603a66f2a1df28c6213c5d7d92d28ecdde788171846fdfa0fbe604e0228c2ad
+AUX 0002-disable-static-library.patch 2267 BLAKE2B 0ab47e0e2795aba0eef1d002e4fffb76132c7e14b4ab6afca556e49e896663096f02fac342c14473dbecd30282208517ca96cd7bdf7ac15d95ba45139cdb5628 SHA512 d706337bc5569785f00dbbbd714c89f8342ddcd9af47806b29e067a6a8ee810186bb4b802bdbfae1e80a4323bf0a24ab344bfa872ed8aa66017f347c29a4ee99
+AUX 0003-disable-test-tools.patch 1470 BLAKE2B 4008cec8ae52a0fd43f5f44ec35cfac94eb963388cd12a3bc08bb04bf72484a142e9b2f337298e7aea93d59bbf427adb17f55e45dbdfea94b6a8fc5c1bed0244 SHA512 d31bb7a4919835aaf3bc208de0f37ee79d6499827ba3ac25edc3c561b5c58b032056df71fe504851b1919c6c00c5fb8590e39cb0c0bbab85408b374c5d8f14a6
+DIST libyuv-1904.tar.bz2 462619 BLAKE2B 088da4134a89822202fb38e87295f968936d9cb6fcc4701843f8bf1086ad2422ed26d371623d3eeca01c4ed22bdd5f9c61db5e96f8060e4b99f09771f3d1d65c SHA512 c24f4ce10a7cfa05d6d7f13b004c4721ec92d53a2535fec100683da6a660b2fca7f90d9c2905f9e05b85d6e6473043d209d0ce2519b39af21cfbb1260054d172
+EBUILD libyuv-1904.ebuild 1111 BLAKE2B 43129cf22d3d46289f0ea506fb92d560c07cb64d7bc63e97f23e7931ddaf4afa9a78f2dfe373ac1b4f317acddde6ff80d5f8f97c7f28b1a309772a45d841cc1d SHA512 5dea668212c2a5e166b8674f5d2245ad989255f92b55d211f810a6a3d7dbe846c2ebdf3376ca2e42b0d52976ff6d2789e78d2cb6767e0c2161f4c69a21728773
+EBUILD libyuv-9999.ebuild 1111 BLAKE2B 43129cf22d3d46289f0ea506fb92d560c07cb64d7bc63e97f23e7931ddaf4afa9a78f2dfe373ac1b4f317acddde6ff80d5f8f97c7f28b1a309772a45d841cc1d SHA512 5dea668212c2a5e166b8674f5d2245ad989255f92b55d211f810a6a3d7dbe846c2ebdf3376ca2e42b0d52976ff6d2789e78d2cb6767e0c2161f4c69a21728773
+MISC metadata.xml 382 BLAKE2B c310a5203e455240f249774f9a007c4dd48ecf6bea43e6292af08e32650303aa30cf444f446bc7711a1192aaad5f3002d2c6253df59110c0a2069af02c361bbc SHA512 860e2a87de6fc027142ce9f72caa445114b6853d3e293466775b298e792f20ccf340091a78bdf4a077d0f1a02d6a3f31e56d4c7bd7ac57e54c6a8176ca90bde0
diff --git a/media-libs/libyuv/files/0001-fix-install-dirs.patch b/media-libs/libyuv/files/0001-fix-install-dirs.patch
new file mode 100644
index 000000000000..e0419b1c5030
--- /dev/null
+++ b/media-libs/libyuv/files/0001-fix-install-dirs.patch
@@ -0,0 +1,42 @@
+From 7cbd908e3e4f63615c6d1da655eee6968526a229 Mon Sep 17 00:00:00 2001
+From: NRK <nrk@disroot.org>
+Date: Fri, 7 Mar 2025 21:06:23 +0000
+Subject: [PATCH 1/3] fix install dirs
+
+---
+ CMakeLists.txt | 11 ++++++-----
+ 1 file changed, 6 insertions(+), 5 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 5df7685..8c064a7 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -5,8 +5,9 @@
+ include(CheckCSourceCompiles)
+
+ project ( YUV C CXX ) # "C" is required even for C++ projects
+-cmake_minimum_required( VERSION 2.8.12 )
++cmake_minimum_required( VERSION 3.2 )
+ option( UNIT_TEST "Built unit tests" OFF )
++include(GNUInstallDirs)
+
+ set ( ly_base_dir ${PROJECT_SOURCE_DIR} )
+ set ( ly_src_dir ${ly_base_dir}/source )
+@@ -246,10 +247,10 @@ endif()
+
+
+ # install the conversion tool, .so, .a, and all the header files
+-install ( TARGETS yuvconvert DESTINATION bin )
+-install ( TARGETS ${ly_lib_static} DESTINATION lib )
+-install ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION lib RUNTIME DESTINATION bin ARCHIVE DESTINATION lib )
+-install ( DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION include )
++install ( TARGETS yuvconvert DESTINATION ${CMAKE_INSTALL_BINDIR} )
++install ( TARGETS ${ly_lib_static} DESTINATION ${CMAKE_INSTALL_LIBDIR} )
++install ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION bin ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )
++install ( DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
+
+ # create the .deb and .rpm packages using cpack
+ include ( CM_linux_packages.cmake )
+--
+2.48.1
+
diff --git a/media-libs/libyuv/files/0002-disable-static-library.patch b/media-libs/libyuv/files/0002-disable-static-library.patch
new file mode 100644
index 000000000000..427e463c52ea
--- /dev/null
+++ b/media-libs/libyuv/files/0002-disable-static-library.patch
@@ -0,0 +1,61 @@
+From f69772741e89fca8d3b98629bc79469e2d55864c Mon Sep 17 00:00:00 2001
+From: NRK <nrk@disroot.org>
+Date: Fri, 7 Mar 2025 21:06:56 +0000
+Subject: [PATCH 2/3] disable static library
+
+---
+ CMakeLists.txt | 11 +++--------
+ 1 file changed, 3 insertions(+), 8 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 8c064a7..d21c6cb 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -14,7 +14,6 @@ set ( ly_src_dir ${ly_base_dir}/source )
+ set ( ly_inc_dir ${ly_base_dir}/include )
+ set ( ly_tst_dir ${ly_base_dir}/unit_test )
+ set ( ly_lib_name yuv )
+-set ( ly_lib_static ${ly_lib_name} )
+ set ( ly_lib_shared ${ly_lib_name}_shared )
+
+ # We cannot use GLOB here since we want to be able to separate out files that
+@@ -174,9 +173,6 @@ if(LOONGARCH64)
+ endif()
+ endif()
+
+-# this creates the static library (.a)
+-add_library( ${ly_lib_static} STATIC ${ly_lib_parts})
+-
+ # this creates the shared library (.so)
+ add_library( ${ly_lib_shared} SHARED ${ly_lib_parts})
+ set_target_properties( ${ly_lib_shared} PROPERTIES OUTPUT_NAME "${ly_lib_name}" )
+@@ -187,15 +183,15 @@ endif()
+
+ # this creates the cpuid tool
+ add_executable ( cpuid ${ly_base_dir}/util/cpuid.c )
+-target_link_libraries ( cpuid ${ly_lib_static} )
++target_link_libraries ( cpuid ${ly_lib_shared} )
+
+ # this creates the conversion tool
+ add_executable ( yuvconvert ${ly_base_dir}/util/yuvconvert.cc )
+-target_link_libraries ( yuvconvert ${ly_lib_static} )
++target_link_libraries ( yuvconvert ${ly_lib_shared} )
+
+ # this creates the yuvconstants tool
+ add_executable ( yuvconstants ${ly_base_dir}/util/yuvconstants.c )
+-target_link_libraries ( yuvconstants ${ly_lib_static} )
++target_link_libraries ( yuvconstants ${ly_lib_shared} )
+
+ find_package ( JPEG )
+ if (JPEG_FOUND)
+@@ -248,7 +244,6 @@ endif()
+
+ # install the conversion tool, .so, .a, and all the header files
+ install ( TARGETS yuvconvert DESTINATION ${CMAKE_INSTALL_BINDIR} )
+-install ( TARGETS ${ly_lib_static} DESTINATION ${CMAKE_INSTALL_LIBDIR} )
+ install ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION bin ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )
+ install ( DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
+
+--
+2.48.1
+
diff --git a/media-libs/libyuv/files/0003-disable-test-tools.patch b/media-libs/libyuv/files/0003-disable-test-tools.patch
new file mode 100644
index 000000000000..d22860be8224
--- /dev/null
+++ b/media-libs/libyuv/files/0003-disable-test-tools.patch
@@ -0,0 +1,43 @@
+From c84dbf12267cf873b4d1ab2f49ad627d05cc45ff Mon Sep 17 00:00:00 2001
+From: NRK <nrk@disroot.org>
+Date: Fri, 7 Mar 2025 21:07:20 +0000
+Subject: [PATCH 3/3] disable test tools
+
+---
+ CMakeLists.txt | 13 -------------
+ 1 file changed, 13 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index d21c6cb..b2fa08a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -181,18 +181,6 @@ if(WIN32)
+ set_target_properties( ${ly_lib_shared} PROPERTIES IMPORT_PREFIX "lib" )
+ endif()
+
+-# this creates the cpuid tool
+-add_executable ( cpuid ${ly_base_dir}/util/cpuid.c )
+-target_link_libraries ( cpuid ${ly_lib_shared} )
+-
+-# this creates the conversion tool
+-add_executable ( yuvconvert ${ly_base_dir}/util/yuvconvert.cc )
+-target_link_libraries ( yuvconvert ${ly_lib_shared} )
+-
+-# this creates the yuvconstants tool
+-add_executable ( yuvconstants ${ly_base_dir}/util/yuvconstants.c )
+-target_link_libraries ( yuvconstants ${ly_lib_shared} )
+-
+ find_package ( JPEG )
+ if (JPEG_FOUND)
+ include_directories( ${JPEG_INCLUDE_DIR} )
+@@ -243,7 +231,6 @@ endif()
+
+
+ # install the conversion tool, .so, .a, and all the header files
+-install ( TARGETS yuvconvert DESTINATION ${CMAKE_INSTALL_BINDIR} )
+ install ( TARGETS ${ly_lib_shared} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION bin ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )
+ install ( DIRECTORY ${PROJECT_SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
+
+--
+2.48.1
+
diff --git a/media-libs/libyuv/libyuv-1904.ebuild b/media-libs/libyuv/libyuv-1904.ebuild
new file mode 100644
index 000000000000..b4210853ab36
--- /dev/null
+++ b/media-libs/libyuv/libyuv-1904.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Open source project that includes YUV scaling and conversion functionality."
+HOMEPAGE="https://chromium.googlesource.com/libyuv/libyuv"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://chromium.googlesource.com/libyuv/libyuv.git"
+ inherit git-r3
+else
+ # to diff against upstream (apparently not stable):
+ # https://chromium.googlesource.com/libyuv/libyuv.git/+archive/${commit}.tar.gz
+ MYTAG="0.0.1904.20250204"
+ SRC_URI="https://salsa.debian.org/debian/libyuv/-/archive/upstream/${MYTAG}/libyuv-upstream-${MYTAG}.tar.bz2 -> ${P}.tar.bz2"
+ S="${WORKDIR}/libyuv-upstream-${MYTAG}"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+# TODO(NRK): enable tests
+RESTRICT="test"
+
+RDEPEND=">=media-libs/libjpeg-turbo-3.0.0"
+BDEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/0001-fix-install-dirs.patch"
+ "${FILESDIR}/0002-disable-static-library.patch"
+ "${FILESDIR}/0003-disable-test-tools.patch"
+)
+
+src_configure() {
+ mycmakeargs=(
+ -DUNIT_TEST=OFF
+ )
+ cmake_src_configure
+}
diff --git a/media-libs/libyuv/libyuv-9999.ebuild b/media-libs/libyuv/libyuv-9999.ebuild
new file mode 100644
index 000000000000..b4210853ab36
--- /dev/null
+++ b/media-libs/libyuv/libyuv-9999.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Open source project that includes YUV scaling and conversion functionality."
+HOMEPAGE="https://chromium.googlesource.com/libyuv/libyuv"
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://chromium.googlesource.com/libyuv/libyuv.git"
+ inherit git-r3
+else
+ # to diff against upstream (apparently not stable):
+ # https://chromium.googlesource.com/libyuv/libyuv.git/+archive/${commit}.tar.gz
+ MYTAG="0.0.1904.20250204"
+ SRC_URI="https://salsa.debian.org/debian/libyuv/-/archive/upstream/${MYTAG}/libyuv-upstream-${MYTAG}.tar.bz2 -> ${P}.tar.bz2"
+ S="${WORKDIR}/libyuv-upstream-${MYTAG}"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+# TODO(NRK): enable tests
+RESTRICT="test"
+
+RDEPEND=">=media-libs/libjpeg-turbo-3.0.0"
+BDEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/0001-fix-install-dirs.patch"
+ "${FILESDIR}/0002-disable-static-library.patch"
+ "${FILESDIR}/0003-disable-test-tools.patch"
+)
+
+src_configure() {
+ mycmakeargs=(
+ -DUNIT_TEST=OFF
+ )
+ cmake_src_configure
+}
diff --git a/media-libs/libyuv/metadata.xml b/media-libs/libyuv/metadata.xml
new file mode 100644
index 000000000000..e11cf2251bd6
--- /dev/null
+++ b/media-libs/libyuv/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>nrk@disroot.org</email>
+ <name>NRK</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/media-libs/mesa-amber/Manifest b/media-libs/mesa-amber/Manifest
index ac96aa8878ef..ce127cfe1399 100644
--- a/media-libs/mesa-amber/Manifest
+++ b/media-libs/mesa-amber/Manifest
@@ -1,4 +1,4 @@
AUX mesa-amber-i915c.patch 1990 BLAKE2B 7b15d0e0aab853c8f2ce3e66fcf705c21e45d045f4f6090524d051f8d3498826240ec6626e7ffeecb0c939d1cb94bd6fb95da05a3d9b742d5c861948af15d9da SHA512 163e80342f6df7706d7db4defc0c5814db92e03fcec675e6729a05ba1b3907e3233a9bd6f40629bde5dcf7afbf397e40f774c2298ad2f9b3948a6db63f801893
DIST mesa-21.3.9.tar.xz 16607716 BLAKE2B 79669f9492c505b1729c526adf5a8261737b6088bdf01db654a0dca8ba22600ec985b574edfeee3a28c76e6e0f815782362973876e1d75b58f4417f45df70add SHA512 4cec6f4f50f444fcd327f7c40f8899c2f265e348e121455262b540b1f890a1468bbea59965af0876c548fa97aa0a05a1b23fa6ca7d308bd60328cfdeab757684
-EBUILD mesa-amber-21.3.9-r1.ebuild 5207 BLAKE2B 83f18c3392726ac80e7790ffa699806f75772644c0201bc7cfbf8ae154eb2a2b4653fbf9e9653d159700e0d8b4103b7bafd4b0dfacdcea612cea16dd07460cbb SHA512 beb9482033b2940060f055ba89c9fc4a427fa24003de04c2ca74a2bdfcb9de1212aa4065adcbae79175d37aa432e27cc3b41a25bef789d7935ed77cbefaec5db
+EBUILD mesa-amber-21.3.9-r1.ebuild 5207 BLAKE2B a14250b7accd45e6d936638e69bfe1bdded74b4cd97a9e9cdf3438378dbc6287520eecc74b16dcf0a05febba0dc3ba396fac492ceb5e04e846ce9a0cebf549d6 SHA512 37ff1eabcf2969569b079a2bf3129fe846b24d9c670367adc6eda2406686b4b655d56e952dded3b5421617853ac8bc8ed275658918c6b6f5a56044c298adb9fb
MISC metadata.xml 537 BLAKE2B 61aa612c4c7704e641439a4af58a2c489ac1a131518d5a26769a6bbf9f606cbf6234fcd4e42d991f394802f06974a752a502d7adc10ad8347dbc4d7abb18a236 SHA512 78620ba6005ff9927d5b2b2ce68d68bc6fb25d3ec8501334ed9fefadf155391f3d648f19aca47639c38c5f5fea56cba7983b1a3637d58511ccba4aca45f21808
diff --git a/media-libs/mesa-amber/mesa-amber-21.3.9-r1.ebuild b/media-libs/mesa-amber/mesa-amber-21.3.9-r1.ebuild
index 16f796dff10d..7e8199a0aba7 100644
--- a/media-libs/mesa-amber/mesa-amber-21.3.9-r1.ebuild
+++ b/media-libs/mesa-amber/mesa-amber-21.3.9-r1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
inherit meson-multilib python-any-r1 linux-info