commit:     02d5c009d3a3abfec856842f9311272a470c41ba
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 11 17:14:16 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar 11 17:25:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02d5c009

media-libs/gd: add libavif support

Closes: https://bugs.gentoo.org/774534
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/gd/gd-2.3.2.ebuild | 5 +++--
 media-libs/gd/metadata.xml    | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/media-libs/gd/gd-2.3.2.ebuild b/media-libs/gd/gd-2.3.2.ebuild
index b4f727eeed0..5797a5d83b0 100644
--- a/media-libs/gd/gd-2.3.2.ebuild
+++ b/media-libs/gd/gd-2.3.2.ebuild
@@ -13,7 +13,7 @@ S="${WORKDIR}/lib${P}"
 LICENSE="gd IJG HPND BSD"
 SLOT="2/3"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris 
~x64-solaris ~x86-solaris"
-IUSE="cpu_flags_x86_sse fontconfig +jpeg heif +png static-libs test tiff 
truetype webp xpm zlib"
+IUSE="avif cpu_flags_x86_sse fontconfig +jpeg heif +png static-libs test tiff 
truetype webp xpm zlib"
 RESTRICT="!test? ( test )"
 
 # fontconfig has prefixed font paths, details see bug #518970
@@ -24,6 +24,7 @@ REQUIRED_USE="
 
 BDEPEND="virtual/pkgconfig"
 RDEPEND="
+       avif? ( media-libs/libavif[${MULTILIB_USEDEP}] )
        fontconfig? ( >=media-libs/fontconfig-2.10.92[${MULTILIB_USEDEP}] )
        jpeg? ( >=virtual/jpeg-0-r2:0=[${MULTILIB_USEDEP}] )
        heif? ( media-libs/libheif[${MULTILIB_USEDEP}] )
@@ -68,8 +69,8 @@ multilib_src_configure() {
                --disable-werror
                --without-x
                --without-liq
-               --without-avif
                $(use_enable static-libs static)
+               $(use_with avif)
                $(use_with fontconfig)
                $(use_with png)
                $(use_with tiff)

diff --git a/media-libs/gd/metadata.xml b/media-libs/gd/metadata.xml
index 2f850ae2364..6c08c2fe834 100644
--- a/media-libs/gd/metadata.xml
+++ b/media-libs/gd/metadata.xml
@@ -28,6 +28,7 @@ and so forth.
                <bugs-to>https://github.com/libgd/libgd/issues</bugs-to>
        </upstream>
        <use>
+               <flag name="avif">Enable support for the avif format via 
<pkg>media-libs/libavif</pkg></flag>
                <flag name="heif">Enable support for the heif format via 
<pkg>media-libs/libheif</pkg></flag>
                <flag name="webp">Enable support for the webp format</flag>
        </use>

Reply via email to