summaryrefslogtreecommitdiff
path: root/media-libs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-23 07:01:01 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-23 07:01:01 +0000
commit2c9b8fbe41c04a94054b0540b54fcf2de0b79166 (patch)
treee83313a8db0bba5ca6d288977a45bbdf0dea81c9 /media-libs
parent6c169675dd21d25ad82ab0560f3d5b1e714219b6 (diff)
gentoo auto-resync : 23:03:2024 - 07:01:01
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/Manifest.gzbin69492 -> 69496 bytes
-rw-r--r--media-libs/libavif/Manifest4
-rw-r--r--media-libs/libavif/libavif-1.0.4.ebuild112
-rw-r--r--media-libs/libavif/libavif-9999.ebuild37
-rw-r--r--media-libs/libjxl/Manifest2
-rw-r--r--media-libs/libjxl/libjxl-0.9.1-r1.ebuild110
6 files changed, 137 insertions, 128 deletions
diff --git a/media-libs/Manifest.gz b/media-libs/Manifest.gz
index 744f32c3c0d4..0b4e4a46b8e5 100644
--- a/media-libs/Manifest.gz
+++ b/media-libs/Manifest.gz
Binary files differ
diff --git a/media-libs/libavif/Manifest b/media-libs/libavif/Manifest
index 438750dfb29d..51976f8dd9f8 100644
--- a/media-libs/libavif/Manifest
+++ b/media-libs/libavif/Manifest
@@ -2,9 +2,11 @@ DIST libavif-0.10.1.tar.gz 2085698 BLAKE2B 5be3f9adf7e0a5747e42c90ce2768eba90053
DIST libavif-0.11.1.tar.gz 5826813 BLAKE2B 8fcbc9e1655546b7f4e62882b44d07b8bcfceef599e0feb5658c475cbc35cbb27bae0ad58475c2657351a890ccb957fa8a0e28328bbb5664cd8a57cedfb58019 SHA512 4a9e2711fccddf35c477db6e2fa2f76c0648aafaa98b4e3f34df62c0fbd02ddcd57762f1f8149822da4f1bc3757ee75ec1d9ced5e56a54dbe9d0b43265aacd4c
DIST libavif-1.0.1.tar.gz 10569767 BLAKE2B a50ade5ac9a05c987f8f10806d2f749af89a5fb5cb5ef01648a398bcd5a2f568abe4fa646b2a8f33aa2b5b0a718f80f140d9f1f87c524c805d970d5517ec667c SHA512 f7c35e40f9214314afeae69d5da6ab345e6dbd025e737a920ea4270452cdf7ff7010d7af5cc18d27e93b217114eb6b613cd349703d0e1bb7814dbeb84a9fd70f
DIST libavif-1.0.3.tar.gz 10573846 BLAKE2B 220f5ebfcae82e521cb13231dca478f480987b8eb80451edb9f9769ac1561ee18ebaaaa7f552fe9cb9094d141815ac6cdba1f544ebfbcc932f60b8f1233d58c6 SHA512 b713f35fd3e54e105e16f46012becdada86f522b4ed8ab7097a93fd437524b4f2c997c42d6f06828f93b53253b1d90302417afdb0bd8e09d176f64f19c7a0faa
+DIST libavif-1.0.4.tar.gz 10575992 BLAKE2B 69b7f376e8254f1f6b5df727e572e6aeef02710d8a09ad3289a71a38c2632b2cfdbee9284fcf08fccc5f072dc3aa2109f44b41ae10f0dad8cb299040ffc71c23 SHA512 37f0de757180c6414778e688006940395960b316c25192d6beb97a07942aff4bd3b712dec2eff52cd26f5d72c352731442175dfeb90e2e1381133539760142b0
EBUILD libavif-0.10.1.ebuild 2651 BLAKE2B c266d15dbccf07badf5a5845624c84a255e4324d972a73966934901d2551809f2dd8059c13eac0f5b24daa79e7f779e42b0710565641f32332071641a4c7e0fc SHA512 50738f35491c576aba78da1783148982ec315240da12c80bdca57aa93d904153ab894741fbc5901e5f03cc8423bafc6c6be5c6f6f255d9d7be9f0b4b47ed61d5
EBUILD libavif-0.11.1.ebuild 2761 BLAKE2B f82e2cf8d219e54653ef19d636213913d143b68e89de918e111084722df48c79c41bd75aaf22a2dcabb1ea02bad3c6d749cc0139f6de728536884118fec7fbd9 SHA512 2b8a621ef834556a61c116088e2e5af83f9103792457c809b363e10d5c7916438804c195db025cb4f4a9dbd2458df8f4c7af3e3c09d0090c4526b7f7f9f65fbf
EBUILD libavif-1.0.1.ebuild 2841 BLAKE2B 0f101a26a2fc8824f9a4e2778cf1bd718baf141b068c2e77b510335f6369da5fc5e683025d01a9dabced0bc6a04fff2aa5e528ba8d6c49beeb50bc995008ce42 SHA512 6c6a4c82590f0aefa1c7a873bff6000a31ffd89b4a7e7f32ac93fbe277326deb5339d23d3127b5deae849c1682fea99f3d938f3d53ee82e54f5f53e38287bca8
EBUILD libavif-1.0.3.ebuild 2841 BLAKE2B 0f101a26a2fc8824f9a4e2778cf1bd718baf141b068c2e77b510335f6369da5fc5e683025d01a9dabced0bc6a04fff2aa5e528ba8d6c49beeb50bc995008ce42 SHA512 6c6a4c82590f0aefa1c7a873bff6000a31ffd89b4a7e7f32ac93fbe277326deb5339d23d3127b5deae849c1682fea99f3d938f3d53ee82e54f5f53e38287bca8
-EBUILD libavif-9999.ebuild 2754 BLAKE2B dd5bd58f245bd123ba5bc2462b531f24c7ce579dcd4c7671eadebeb79f700280be6bf96bc40dab68e08973620641c3c8094f230e22ac8927262e2725fd5a0363 SHA512 211c6cdc8a01a6f977cb8149c497b87c1481bcf377951c51819964b1258a939928261d142583c8bcec06ee56dbe4bb6605496e90c376622520f3f31d80f972ba
+EBUILD libavif-1.0.4.ebuild 2864 BLAKE2B f2a8c1a2d4b598a81df080cb54dc78bc0c6d78495a5a4de035bbbc6e813bcab57d8a9ce209119d3b4992076d7bf3d4e62ead9da98a4c58276ec52638dae92eb2 SHA512 cc12a69cc106305c3eb093598bb4fbcf1583675aa33118fd29703f041f88868f926c89038c8df729f812c36e716dae4b7ccaf0143c4d976d050e343cc33dfc78
+EBUILD libavif-9999.ebuild 2790 BLAKE2B 2e5d38722dd978cd3c1849caaf1957f722aeffa9a4bf53067fcc0c59174c45f3b08f4f01ba8f1903fe47aebdcd22eb316541c5dc0be0bf4331531f23e419f625 SHA512 1e45ce733a8ff01160a2910ef03eab25b57ea7aa685d40f60ba4efe06efef4ffd4faa11859786cf588c18a2a316697505f64d92e6b161b4f7fea3c403a1418c5
MISC metadata.xml 963 BLAKE2B 4951865af2ec64924c0abc18c82f8df0da437545867a78e097f055a803a1017759ee165e9a49234fd683ad674f044cfdade33e7e6e72a3d2fdfb71cfff4cee28 SHA512 dbcc0d05970073d286d9e389d9e8797023d728a0067886ec25c61f5c65324e85ed8015111b45e43387e3b75fe7ad5ef5ca1cbd93ce56994b02589f1520e78116
diff --git a/media-libs/libavif/libavif-1.0.4.ebuild b/media-libs/libavif/libavif-1.0.4.ebuild
new file mode 100644
index 000000000000..e9f32be578ca
--- /dev/null
+++ b/media-libs/libavif/libavif-1.0.4.ebuild
@@ -0,0 +1,112 @@
+# Copyright 2020-2024 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"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc64 ~riscv ~sparc ~x86"
+IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1 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 ) )
+ 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 )
+"
+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 test ON OFF)
+ -DAVIF_ENABLE_GTEST=$(usex extras $(usex test ON 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
+ )
+
+ 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
+
+ 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/libavif-9999.ebuild b/media-libs/libavif/libavif-9999.ebuild
index 968df8e917da..55658a6a3fec 100644
--- a/media-libs/libavif/libavif-9999.ebuild
+++ b/media-libs/libavif/libavif-9999.ebuild
@@ -12,34 +12,41 @@ EGIT_REPO_URI="https://github.com/AOMediaCodec/libavif.git"
LICENSE="BSD-2"
# See bug #822336 re subslot
SLOT="0/${PV}"
-KEYWORDS=""
IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1 test"
RESTRICT="!test? ( test )"
-
REQUIRED_USE="|| ( aom dav1d )"
-DEPEND="media-libs/libjpeg-turbo[${MULTILIB_USEDEP}]
- media-libs/libpng[${MULTILIB_USEDEP}]
- sys-libs/zlib[${MULTILIB_USEDEP}]
+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 ) )
- gdk-pixbuf? ( x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] )
+ 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 )"
-RDEPEND="${DEPEND}"
-BDEPEND="virtual/pkgconfig"
+ 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_AOM=$(usex aom SYSTEM OFF)
+ -DAVIF_CODEC_DAV1D=$(usex dav1d SYSTEM OFF)
-DAVIF_CODEC_LIBGAV1=OFF
+ -DAVIF_LIBYUV=OFF
# Use system libraries.
- -DAVIF_LOCAL_ZLIBPNG=OFF
- -DAVIF_LOCAL_JPEG=OFF
+ -DAVIF_ZLIBPNG=SYSTEM
+ -DAVIF_JPEG=SYSTEM
-DAVIF_BUILD_GDK_PIXBUF=$(usex gdk-pixbuf ON OFF)
@@ -48,8 +55,8 @@ multilib_src_configure() {
if multilib_is_native_abi; then
mycmakeargs+=(
- -DAVIF_CODEC_RAV1E=$(usex rav1e ON OFF)
- -DAVIF_CODEC_SVT=$(usex svt-av1 ON OFF)
+ -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)
diff --git a/media-libs/libjxl/Manifest b/media-libs/libjxl/Manifest
index ba94b5acaa53..33cb56c1a67b 100644
--- a/media-libs/libjxl/Manifest
+++ b/media-libs/libjxl/Manifest
@@ -4,13 +4,11 @@ AUX libjxl-0.9.1-backport-pr3138.patch 1775 BLAKE2B 3bc8ec83f1104fabec0966dffd85
AUX libjxl-0.9.1-backport-pr3143.patch 1065 BLAKE2B acc6ab904994f42cffe19296966587dbbf316289277d91e1a17cd635161b51eed770ab95fc682d93b8693d50def9bb205290c3eb534effdfdc2cd057db36647c SHA512 d5eeca764e13175eb64ba5ee47a9bf03080d0830395ba9b626b7144674a5ce8fbb694705a4d2c55f3b52507a59c5793e21e9c99dded65803857a0859a1f9f466
DIST libjxl-0.10.2.tar.gz 1912303 BLAKE2B 9677d0d35d877ce269c9958accfbb5ee55d446dc0e8fa64df9323c1db3993613752803aae63a48c18eeb72ae91c2a044a1fab0a83ddf28fdf8395ddb67a72414 SHA512 1d19f30c0ae94e212326a15dc128612bce207e619c55c2a020401a27d01a933de71bb35e907521dc8fd853dd5578d74d74f7a5a282f0083fd22cf9cb07ccb96e
DIST libjxl-0.8.2.tar.gz 1612062 BLAKE2B 2b5e65cde6c85881c5f26f676afec825c974f6919c3cc3f056ca4a9679162e89f2de35ab7d0b2a60782d39eca1f4ddad779f8d25d3f520417f6d9dea71e854db SHA512 769f102c46755d11a705ce47ae9e2ef49627ae708f416693bf1293aeeb713934baf4466e45b9c70b04ec1fc8b4a00d5ca7688c8ca03f0a91c9a15252c522a887
-DIST libjxl-0.9.1.tar.gz 1872279 BLAKE2B 723a098c07d61e7d1f4a7fda04d8be60594cf5a21307242e6d06deca64f8a2343078248d280fc8eb3fc9bb2277f7ffc6cc547b57a605a7aa95a0b21095450ccf SHA512 a3169dac40b297617075a49cc5cdfa25e793a34b5dfe95db9c2560bdc967743882f0014d1d0fd508b8d2ea02cb3766d2f295af7a2cf9def8f5370f97b24aa16f
DIST libjxl-0.9.2.tar.gz 1873156 BLAKE2B 558d82dfaa2e5e4fdb07542b2daf4b80f661dec46986d412bdc2b1af0ac4b501f9e533eefd73e923b94a54f82695c4aed5cc531abc9e818ab4faf0aab0267b94 SHA512 97bc0ccd249fe0fa6d0f52c470a0d0bd181e3f00cd9820dda5ca437dff260e6c9e2c95dceec4bd9354c3adc4fc6724228cb027c537af6df7d3f90ab8ee61653f
DIST libjxl-testdata-d6168ffb9e1cc24007e64b65dd84d822ad1fc759.tar.gz 67553075 BLAKE2B 779fee87386e617edd93bca7a523fa1ab223ae88114c3cc5484987a7c92cca2d0bb3d668fa3c8064b2a0255c17a06447c009f4fbf9ef379692ddfa37dee1be97 SHA512 a48d74a1ccff404eb7675225b59965e056dc3fc09930572785d83bae03fa1c38e105336dbf5ecfc3f0995e8b8bfb1097b451ae661f2933590b2b152192c8aa2f
DIST libjxl-testdata-ff8d743aaba05b3014f17e5475e576242fa979fc.tar.gz 69105882 BLAKE2B a80fce437b810e7b99b4c7bd106ec7eba01a1eeddc90e1b82cb8d75f3ca194c357ef8e7b7e1e9da65aa39dc2cd11d32cb6de8558188c5258c7446d58787603ff SHA512 0d237e706fd8d001a9cb245b685e8e39085416daedec019c348ccc64cf15a34cecdb0c245f94f57507f5934e487ee5157f51f59bb6a000f5899862c582336384
EBUILD libjxl-0.10.2.ebuild 2758 BLAKE2B 66335ca59cc71eacd27bf5e029b741820cd443966ffbcd94043be5a973f3076e7153b8778416ea4e27544ba2a12e67322bc515e93b2c10ba989259beaf36641b SHA512 bcaab793183d517ace2c6b720b87bfcc950765883994ed3b71582d773b7972785a83628998e0285cfe866000e2c8fa23f4cce2ba3bdee989217f70164c1bb987
EBUILD libjxl-0.8.2-r1.ebuild 2370 BLAKE2B d5f0f655767280985420ed7e338748ddbc55589003c9427aa086295d12a91c9fb907c982ed88849471a76991879f0352c1fef2b682a1b64a3b03e43e9d93a018 SHA512 97750abe5bde3c0ad3a785f65250930f3312458c0b0b23bf00163c2ffed7cbdb148d43bbd8a768d283380fdf1794eece03a2b1adab97d4d9fb53e31b65dec614
-EBUILD libjxl-0.9.1-r1.ebuild 2834 BLAKE2B 2eaf1c131904ea251f68bde0975a8c98e84f5569790dca26a781b8bd2b785c018095c520cff15477d2a2c1863e18b50c3be2c48ab62a26ff089335b9d371851c SHA512 63782f2f5cd39ac6f7dc13c58eecef74044fe16589ca60179196f49964eb3f46beff29e53719db597a54444aa4e4e9c88ecb87ef2864d011875f77b57304a28e
EBUILD libjxl-0.9.2.ebuild 2815 BLAKE2B def834ea227c984fbd6268dab52f945530c1fe172f631074954075e1d7b270047d2ea980b7dcb6d5b4f4e7a2385a893c16c788b7fd9e579aed3a31d5e6cd4190 SHA512 510301e17eea19786a5a490efe98b706c452a9729172d5713e9f540ad3fc2e82b2fca84f3d2656990470f617438a7491f97c3911b6ebad5221facb32df3d02f7
EBUILD libjxl-9999.ebuild 2443 BLAKE2B 97af04661d52c6c2a1f4cddde89a90ef8c673efeb18c906bdf32fc66900c7c201a0119bf13a2ce65e663985108e6fc41526bcbbd723a2091cbdc6f512a072edc SHA512 60a0324c66c794e06c51b6a7bfe2095681ab5c1caea6de0c4f2a1de15e9781d608151038337874624b219419d3568fcd1f768a9e11d9d5650935f0a02d3e4223
MISC metadata.xml 864 BLAKE2B 04139ce686fbc36068182d03fc23f0a0d49262f8c6b21a690705411330c3b5ec4f969d0ed27fc712fc184736bb20e9bfa3a6fe2fe6d5db98527334151dc0a8d6 SHA512 73e89d636908712608a41f8c4b7f29fc9d551030cebcd83e8db722869aaff0bc96c1ad6c05c5dbe3a2b2b29b8c639c95d02a8d4ed7094a9200af7f008c9b20de
diff --git a/media-libs/libjxl/libjxl-0.9.1-r1.ebuild b/media-libs/libjxl/libjxl-0.9.1-r1.ebuild
deleted file mode 100644
index 5bcd6ac6d8fa..000000000000
--- a/media-libs/libjxl/libjxl-0.9.1-r1.ebuild
+++ /dev/null
@@ -1,110 +0,0 @@
-# Copyright 2021-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake-multilib flag-o-matic gnome2-utils
-
-# This changes frequently. Please check the testdata submodule when bumping.
-TESTDATA_COMMIT="ff8d743aaba05b3014f17e5475e576242fa979fc"
-DESCRIPTION="JPEG XL image format reference implementation"
-HOMEPAGE="https://github.com/libjxl/libjxl"
-SRC_URI="
- https://github.com/libjxl/libjxl/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
- test? (
- https://github.com/libjxl/testdata/archive/${TESTDATA_COMMIT}.tar.gz
- -> ${PN}-testdata-${TESTDATA_COMMIT}.tar.gz
- )
-"
-
-LICENSE="BSD"
-SLOT="0/$(ver_cut 1-2)"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~ppc ppc64 ~riscv ~sparc x86"
-IUSE="gdk-pixbuf openexr test"
-RESTRICT="!test? ( test )"
-
-DEPEND="
- app-arch/brotli:=[${MULTILIB_USEDEP}]
- >=dev-cpp/highway-1.0.7[${MULTILIB_USEDEP}]
- media-libs/giflib:=[${MULTILIB_USEDEP}]
- >=media-libs/lcms-2.13:2[${MULTILIB_USEDEP}]
- media-libs/libjpeg-turbo:=[${MULTILIB_USEDEP}]
- media-libs/libpng:=[${MULTILIB_USEDEP}]
- >=x11-misc/shared-mime-info-2.2
- gdk-pixbuf? (
- dev-libs/glib:2
- x11-libs/gdk-pixbuf:2
- )
- openexr? ( media-libs/openexr:= )
- test? ( dev-cpp/gtest[${MULTILIB_USEDEP}] )
-"
-RDEPEND="${DEPEND}"
-PATCHES=(
- "${FILESDIR}/${PN}-0.9.1-backport-pr3138.patch"
- "${FILESDIR}/${PN}-0.9.1-backport-pr3143.patch"
-)
-
-multilib_src_configure() {
- filter-lto
-
- local mycmakeargs=(
- -DJPEGXL_ENABLE_BENCHMARK=OFF
- -DJPEGXL_ENABLE_COVERAGE=OFF
- -DJPEGXL_ENABLE_FUZZERS=OFF
- -DJPEGXL_ENABLE_SJPEG=OFF
- -DJPEGXL_WARNINGS_AS_ERRORS=OFF
-
- -DJPEGXL_ENABLE_SKCMS=OFF
- -DJPEGXL_ENABLE_VIEWERS=OFF
- -DJPEGXL_FORCE_SYSTEM_BROTLI=ON
- -DJPEGXL_FORCE_SYSTEM_GTEST=ON
- -DJPEGXL_FORCE_SYSTEM_HWY=ON
- -DJPEGXL_FORCE_SYSTEM_LCMS2=ON
- -DJPEGXL_ENABLE_DOXYGEN=OFF
- -DJPEGXL_ENABLE_MANPAGES=OFF
- -DJPEGXL_ENABLE_JNI=OFF
- -DJPEGXL_ENABLE_JPEGLI=OFF
- -DJPEGXL_ENABLE_JPEGLI_LIBJPEG=OFF
- -DJPEGXL_ENABLE_TCMALLOC=OFF
- -DJPEGXL_ENABLE_EXAMPLES=OFF
- -DBUILD_TESTING=$(usex test ON OFF)
- )
-
- use test &&
- mycmakeargs+=(
- -DJPEGXL_TEST_DATA_PATH="${WORKDIR}/testdata-${TESTDATA_COMMIT}"
- )
-
- if multilib_is_native_abi; then
- mycmakeargs+=(
- -DJPEGXL_ENABLE_TOOLS=ON
- -DJPEGXL_ENABLE_OPENEXR=$(usex openexr)
- -DJPEGXL_ENABLE_PLUGINS=ON
- -DJPEGXL_ENABLE_PLUGIN_GDKPIXBUF=$(usex gdk-pixbuf)
- -DJPEGXL_ENABLE_PLUGIN_GIMP210=OFF
- -DJPEGXL_ENABLE_PLUGIN_MIME=OFF
- )
- else
- mycmakeargs+=(
- -DJPEGXL_ENABLE_TOOLS=OFF
- -DJPEGXL_ENABLE_OPENEXR=OFF
- -DJPEGXL_ENABLE_PLUGINS=OFF
- )
- fi
-
- cmake_src_configure
-}
-
-multilib_src_install() {
- cmake_src_install
-
- find "${ED}" -name '*.a' -delete || die
-}
-
-pkg_postinst() {
- use gdk-pixbuf && multilib_foreach_abi gnome2_gdk_pixbuf_update
-}
-
-pkg_postrm() {
- use gdk-pixbuf && multilib_foreach_abi gnome2_gdk_pixbuf_update
-}