From 99e6986a58807e3fee767ee8db4107cfd7fea3cc Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 7 Nov 2021 22:54:25 +0000 Subject: media-libs/libavif: define subslot ((very) unstable ABI) Closes: https://bugs.gentoo.org/822336 Signed-off-by: Sam James --- media-libs/libavif/libavif-0.8.4-r1.ebuild | 76 ++++++++++++++++++++ media-libs/libavif/libavif-0.8.4.ebuild | 75 -------------------- media-libs/libavif/libavif-0.9.0-r2.ebuild | 108 ---------------------------- media-libs/libavif/libavif-0.9.0-r3.ebuild | 109 +++++++++++++++++++++++++++++ media-libs/libavif/libavif-0.9.1-r1.ebuild | 105 +++++++++++++++++++++++++++ media-libs/libavif/libavif-0.9.1.ebuild | 104 --------------------------- media-libs/libavif/libavif-0.9.2-r1.ebuild | 105 +++++++++++++++++++++++++++ media-libs/libavif/libavif-0.9.2.ebuild | 104 --------------------------- media-libs/libavif/libavif-0.9.3-r1.ebuild | 105 +++++++++++++++++++++++++++ media-libs/libavif/libavif-0.9.3.ebuild | 104 --------------------------- media-libs/libavif/libavif-9999.ebuild | 3 +- 11 files changed, 502 insertions(+), 496 deletions(-) create mode 100644 media-libs/libavif/libavif-0.8.4-r1.ebuild delete mode 100644 media-libs/libavif/libavif-0.8.4.ebuild delete mode 100644 media-libs/libavif/libavif-0.9.0-r2.ebuild create mode 100644 media-libs/libavif/libavif-0.9.0-r3.ebuild create mode 100644 media-libs/libavif/libavif-0.9.1-r1.ebuild delete mode 100644 media-libs/libavif/libavif-0.9.1.ebuild create mode 100644 media-libs/libavif/libavif-0.9.2-r1.ebuild delete mode 100644 media-libs/libavif/libavif-0.9.2.ebuild create mode 100644 media-libs/libavif/libavif-0.9.3-r1.ebuild delete mode 100644 media-libs/libavif/libavif-0.9.3.ebuild (limited to 'media-libs') diff --git a/media-libs/libavif/libavif-0.8.4-r1.ebuild b/media-libs/libavif/libavif-0.8.4-r1.ebuild new file mode 100644 index 000000000000..a1703c043d39 --- /dev/null +++ b/media-libs/libavif/libavif-0.8.4-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 2020-2021 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" +# See bug #822336 re subslot +SLOT="0/${PV}" +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 +} diff --git a/media-libs/libavif/libavif-0.8.4.ebuild b/media-libs/libavif/libavif-0.8.4.ebuild deleted file mode 100644 index 156e8afb6ac4..000000000000 --- a/media-libs/libavif/libavif-0.8.4.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 2020-2021 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 -} diff --git a/media-libs/libavif/libavif-0.9.0-r2.ebuild b/media-libs/libavif/libavif-0.9.0-r2.ebuild deleted file mode 100644 index 349018377345..000000000000 --- a/media-libs/libavif/libavif-0.9.0-r2.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 2020-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -CMAKE_ECLASS=cmake -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" -SLOT="0" -KEYWORDS="amd64 arm arm64 ppc64 x86" -IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1" - -DEPEND="media-libs/libpng[${MULTILIB_USEDEP}] - sys-libs/zlib[${MULTILIB_USEDEP}] - virtual/jpeg[${MULTILIB_USEDEP}] - aom? ( >=media-libs/libaom-2.0.0[${MULTILIB_USEDEP}] ) - dav1d? ( media-libs/dav1d[${MULTILIB_USEDEP}] ) - gdk-pixbuf? ( x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] ) - rav1e? ( media-video/rav1e[capi] ) - svt-av1? ( >=media-libs/svt-av1-0.8.6 )" -RDEPEND="${DEPEND}" -BDEPEND="virtual/pkgconfig" - -REQUIRED_USE="|| ( aom dav1d )" - -PATCHES=( - "${FILESDIR}/${P}-pkg-config.patch" -) - -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) - ) - else - mycmakeargs+=( - -DAVIF_CODEC_RAV1E=OFF - -DAVIF_CODEC_SVT=OFF - - -DAVIF_BUILD_EXAMPLES=OFF - -DAVIF_BUILD_APPS=OFF - -DAVIF_BUILD_TESTS=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/libavif-0.9.0-r3.ebuild b/media-libs/libavif/libavif-0.9.0-r3.ebuild new file mode 100644 index 000000000000..b4846ff1d5cf --- /dev/null +++ b/media-libs/libavif/libavif-0.9.0-r3.ebuild @@ -0,0 +1,109 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_ECLASS=cmake +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 ppc64 x86" +IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1" + +DEPEND="media-libs/libpng[${MULTILIB_USEDEP}] + sys-libs/zlib[${MULTILIB_USEDEP}] + virtual/jpeg[${MULTILIB_USEDEP}] + aom? ( >=media-libs/libaom-2.0.0[${MULTILIB_USEDEP}] ) + dav1d? ( media-libs/dav1d[${MULTILIB_USEDEP}] ) + gdk-pixbuf? ( x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] ) + rav1e? ( media-video/rav1e[capi] ) + svt-av1? ( >=media-libs/svt-av1-0.8.6 )" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +REQUIRED_USE="|| ( aom dav1d )" + +PATCHES=( + "${FILESDIR}/${P}-pkg-config.patch" +) + +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) + ) + else + mycmakeargs+=( + -DAVIF_CODEC_RAV1E=OFF + -DAVIF_CODEC_SVT=OFF + + -DAVIF_BUILD_EXAMPLES=OFF + -DAVIF_BUILD_APPS=OFF + -DAVIF_BUILD_TESTS=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/libavif-0.9.1-r1.ebuild b/media-libs/libavif/libavif-0.9.1-r1.ebuild new file mode 100644 index 000000000000..d06dd645a546 --- /dev/null +++ b/media-libs/libavif/libavif-0.9.1-r1.ebuild @@ -0,0 +1,105 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_ECLASS=cmake +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 ~ppc64 ~x86" +IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1" + +REQUIRED_USE="|| ( aom dav1d )" + +DEPEND="media-libs/libpng[${MULTILIB_USEDEP}] + sys-libs/zlib[${MULTILIB_USEDEP}] + virtual/jpeg[${MULTILIB_USEDEP}] + aom? ( >=media-libs/libaom-2.0.0[${MULTILIB_USEDEP}] ) + dav1d? ( media-libs/dav1d[${MULTILIB_USEDEP}] ) + gdk-pixbuf? ( x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] ) + rav1e? ( media-video/rav1e[capi] ) + svt-av1? ( >=media-libs/svt-av1-0.8.6 )" +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) + ) + else + mycmakeargs+=( + -DAVIF_CODEC_RAV1E=OFF + -DAVIF_CODEC_SVT=OFF + + -DAVIF_BUILD_EXAMPLES=OFF + -DAVIF_BUILD_APPS=OFF + -DAVIF_BUILD_TESTS=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/libavif-0.9.1.ebuild b/media-libs/libavif/libavif-0.9.1.ebuild deleted file mode 100644 index 5deb78827836..000000000000 --- a/media-libs/libavif/libavif-0.9.1.ebuild +++ /dev/null @@ -1,104 +0,0 @@ -# Copyright 2020-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -CMAKE_ECLASS=cmake -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" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" -IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1" - -REQUIRED_USE="|| ( aom dav1d )" - -DEPEND="media-libs/libpng[${MULTILIB_USEDEP}] - sys-libs/zlib[${MULTILIB_USEDEP}] - virtual/jpeg[${MULTILIB_USEDEP}] - aom? ( >=media-libs/libaom-2.0.0[${MULTILIB_USEDEP}] ) - dav1d? ( media-libs/dav1d[${MULTILIB_USEDEP}] ) - gdk-pixbuf? ( x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] ) - rav1e? ( media-video/rav1e[capi] ) - svt-av1? ( >=media-libs/svt-av1-0.8.6 )" -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) - ) - else - mycmakeargs+=( - -DAVIF_CODEC_RAV1E=OFF - -DAVIF_CODEC_SVT=OFF - - -DAVIF_BUILD_EXAMPLES=OFF - -DAVIF_BUILD_APPS=OFF - -DAVIF_BUILD_TESTS=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/libavif-0.9.2-r1.ebuild b/media-libs/libavif/libavif-0.9.2-r1.ebuild new file mode 100644 index 000000000000..bf857c5b2800 --- /dev/null +++ b/media-libs/libavif/libavif-0.9.2-r1.ebuild @@ -0,0 +1,105 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_ECLASS=cmake +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 ~ppc64 ~riscv ~x86" +IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1" + +REQUIRED_USE="|| ( aom dav1d )" + +DEPEND="media-libs/libpng[${MULTILIB_USEDEP}] + sys-libs/zlib[${MULTILIB_USEDEP}] + virtual/jpeg[${MULTILIB_USEDEP}] + aom? ( >=media-libs/libaom-2.0.0:=[${MULTILIB_USEDEP}] ) + dav1d? ( media-libs/dav1d[${MULTILIB_USEDEP}] ) + gdk-pixbuf? ( x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] ) + rav1e? ( media-video/rav1e[capi] ) + svt-av1? ( >=media-libs/svt-av1-0.8.6 )" +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) + ) + else + mycmakeargs+=( + -DAVIF_CODEC_RAV1E=OFF + -DAVIF_CODEC_SVT=OFF + + -DAVIF_BUILD_EXAMPLES=OFF + -DAVIF_BUILD_APPS=OFF + -DAVIF_BUILD_TESTS=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/libavif-0.9.2.ebuild b/media-libs/libavif/libavif-0.9.2.ebuild deleted file mode 100644 index 4a9f25f041f9..000000000000 --- a/media-libs/libavif/libavif-0.9.2.ebuild +++ /dev/null @@ -1,104 +0,0 @@ -# Copyright 2020-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -CMAKE_ECLASS=cmake -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" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" -IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1" - -REQUIRED_USE="|| ( aom dav1d )" - -DEPEND="media-libs/libpng[${MULTILIB_USEDEP}] - sys-libs/zlib[${MULTILIB_USEDEP}] - virtual/jpeg[${MULTILIB_USEDEP}] - aom? ( >=media-libs/libaom-2.0.0:=[${MULTILIB_USEDEP}] ) - dav1d? ( media-libs/dav1d[${MULTILIB_USEDEP}] ) - gdk-pixbuf? ( x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] ) - rav1e? ( media-video/rav1e[capi] ) - svt-av1? ( >=media-libs/svt-av1-0.8.6 )" -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) - ) - else - mycmakeargs+=( - -DAVIF_CODEC_RAV1E=OFF - -DAVIF_CODEC_SVT=OFF - - -DAVIF_BUILD_EXAMPLES=OFF - -DAVIF_BUILD_APPS=OFF - -DAVIF_BUILD_TESTS=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/libavif-0.9.3-r1.ebuild b/media-libs/libavif/libavif-0.9.3-r1.ebuild new file mode 100644 index 000000000000..ee304de7b302 --- /dev/null +++ b/media-libs/libavif/libavif-0.9.3-r1.ebuild @@ -0,0 +1,105 @@ +# Copyright 2020-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_ECLASS=cmake +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 ~ppc64 ~riscv ~x86" +IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1" + +REQUIRED_USE="|| ( aom dav1d )" + +DEPEND="media-libs/libpng[${MULTILIB_USEDEP}] + sys-libs/zlib[${MULTILIB_USEDEP}] + virtual/jpeg[${MULTILIB_USEDEP}] + aom? ( >=media-libs/libaom-3.1.2:=[${MULTILIB_USEDEP}] ) + dav1d? ( media-libs/dav1d[${MULTILIB_USEDEP}] ) + gdk-pixbuf? ( x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] ) + rav1e? ( media-video/rav1e[capi] ) + svt-av1? ( >=media-libs/svt-av1-0.8.6 )" +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) + ) + else + mycmakeargs+=( + -DAVIF_CODEC_RAV1E=OFF + -DAVIF_CODEC_SVT=OFF + + -DAVIF_BUILD_EXAMPLES=OFF + -DAVIF_BUILD_APPS=OFF + -DAVIF_BUILD_TESTS=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/libavif-0.9.3.ebuild b/media-libs/libavif/libavif-0.9.3.ebuild deleted file mode 100644 index fa6ad1dca623..000000000000 --- a/media-libs/libavif/libavif-0.9.3.ebuild +++ /dev/null @@ -1,104 +0,0 @@ -# Copyright 2020-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -CMAKE_ECLASS=cmake -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" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" -IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1" - -REQUIRED_USE="|| ( aom dav1d )" - -DEPEND="media-libs/libpng[${MULTILIB_USEDEP}] - sys-libs/zlib[${MULTILIB_USEDEP}] - virtual/jpeg[${MULTILIB_USEDEP}] - aom? ( >=media-libs/libaom-3.1.2:=[${MULTILIB_USEDEP}] ) - dav1d? ( media-libs/dav1d[${MULTILIB_USEDEP}] ) - gdk-pixbuf? ( x11-libs/gdk-pixbuf:2[${MULTILIB_USEDEP}] ) - rav1e? ( media-video/rav1e[capi] ) - svt-av1? ( >=media-libs/svt-av1-0.8.6 )" -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) - ) - else - mycmakeargs+=( - -DAVIF_CODEC_RAV1E=OFF - -DAVIF_CODEC_SVT=OFF - - -DAVIF_BUILD_EXAMPLES=OFF - -DAVIF_BUILD_APPS=OFF - -DAVIF_BUILD_TESTS=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/libavif-9999.ebuild b/media-libs/libavif/libavif-9999.ebuild index 1be688c4b5e7..3b89a6e53244 100644 --- a/media-libs/libavif/libavif-9999.ebuild +++ b/media-libs/libavif/libavif-9999.ebuild @@ -11,7 +11,8 @@ HOMEPAGE="https://github.com/AOMediaCodec/libavif" EGIT_REPO_URI="https://github.com/AOMediaCodec/libavif.git" LICENSE="BSD-2" -SLOT="0" +# See bug #822336 re subslot +SLOT="0/${PV}" KEYWORDS="" IUSE="+aom dav1d examples extras gdk-pixbuf rav1e svt-av1" -- cgit v1.2.3-65-gdbad