diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-09 19:03:28 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-09 19:03:28 +0000 |
commit | f03f06fb7152586e3084ebabe54d93f28da8bf6d (patch) | |
tree | f476e8d7696af448ddbe831c85e80189b64bc411 /media-libs/libavif | |
parent | c6985b401141ea8b5ec4b95c4ad3a5a21ef32571 (diff) |
gentoo auto-resync : 09:01:2024 - 19:03:28
Diffstat (limited to 'media-libs/libavif')
-rw-r--r-- | media-libs/libavif/Manifest | 2 | ||||
-rw-r--r-- | media-libs/libavif/libavif-1.0.3.ebuild | 108 |
2 files changed, 110 insertions, 0 deletions
diff --git a/media-libs/libavif/Manifest b/media-libs/libavif/Manifest index d2a12a8d0835..90d2da60ba6c 100644 --- a/media-libs/libavif/Manifest +++ b/media-libs/libavif/Manifest @@ -1,8 +1,10 @@ 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 +DIST libavif-1.0.3.tar.gz 10573846 BLAKE2B 220f5ebfcae82e521cb13231dca478f480987b8eb80451edb9f9769ac1561ee18ebaaaa7f552fe9cb9094d141815ac6cdba1f544ebfbcc932f60b8f1233d58c6 SHA512 b713f35fd3e54e105e16f46012becdada86f522b4ed8ab7097a93fd437524b4f2c997c42d6f06828f93b53253b1d90302417afdb0bd8e09d176f64f19c7a0faa EBUILD libavif-0.10.1.ebuild 2721 BLAKE2B 25a3e3e1f51f322a4c2caa239869a1edbe9096c3ef24fd3df36c3bff0758e0b4daa91606f2f71af3aa85c03a12b91fe8fefc42630c765faaeedd36357b13fd7b SHA512 abf588f95ff289955357179bc2b6bc03f4294a6294fd476011af95fe2668d86b543c5aefcf3dd6a9f91bfb18dfa5f236ddc731e3deb0e45263fffa33ceaffff3 EBUILD libavif-0.11.1.ebuild 2837 BLAKE2B 311aa3ce056dc38f630e615a2f1b018ade67bfd6e1ccf504a02cfa63ac31102edb0119db0ae315ef4e2856c9e23cd61a2950478a530cb802ba7718a3259e8966 SHA512 b27f79b8c6faa999f2be8b63d2069e67780249f261a345655f6a4e65f4cd9027ce7bfce3a40bff5f8591f4d015551e9bb709c92acbc553b543f0408f4f0c4bd4 EBUILD libavif-1.0.1.ebuild 2917 BLAKE2B bf66c0e40371b1be708e6dad72a099ad073d768556481a4be516d5334c01cae7a2ce7813c370045d301f3d2dcc0223be0c1684924783795619ad49f48cc65fcc SHA512 79624181146d61f4659930cafd1160c883cab1078c3702e84c8e5fd2b4cad91c748a3cf2c4266d6dc295b2e2ab3bc63bbf2c337d9608e83ea3cf73b0f96c8674 +EBUILD libavif-1.0.3.ebuild 2917 BLAKE2B 7638a26a6bb9fb639b350aba2175a84176faee676501cd37ada9f3ef552806aab438c657c9d971003004af59538f1ecb7a54954721a3652d3ed7b61eb4794b5e SHA512 7fec6c3c27869d79ab9faf83859eacdd8f13dbd8ebf3b65bf3502d7b249f20c3cd12b54345270c5715a87c10da3306888d6a1c07df086c7aa5d2242109ec0439 EBUILD libavif-9999.ebuild 2830 BLAKE2B 60fe09e5dc5b5b753dfb58c6d3b390473b668e7a3dbc34623258e090a36dffce1b834f995447b1c08767075fc900cdc1fe09b9ab4744989874ae525aec49e9bc SHA512 c69d30d365f2b8e90e868ad222cac8e6273fd9152f1e71bb643dcca06092a2e185918a6171f82e0b607066e3b7c4dfe82e2e89665d7bb6a8e1471feadbccfad7 MISC metadata.xml 963 BLAKE2B 4951865af2ec64924c0abc18c82f8df0da437545867a78e097f055a803a1017759ee165e9a49234fd683ad674f044cfdade33e7e6e72a3d2fdfb71cfff4cee28 SHA512 dbcc0d05970073d286d9e389d9e8797023d728a0067886ec25c61f5c65324e85ed8015111b45e43387e3b75fe7ad5ef5ca1cbd93ce56994b02589f1520e78116 diff --git a/media-libs/libavif/libavif-1.0.3.ebuild b/media-libs/libavif/libavif-1.0.3.ebuild new file mode 100644 index 000000000000..615d283cb6dc --- /dev/null +++ b/media-libs/libavif/libavif-1.0.3.ebuild @@ -0,0 +1,108 @@ +# 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}] + sys-libs/zlib[${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}] ) + 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_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 +} |