summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-11 17:14:16 +0000
committerSam James <sam@gentoo.org>2021-03-11 17:25:55 +0000
commit02d5c009d3a3abfec856842f9311272a470c41ba (patch)
tree49a006e79cb599824238d96262a3a1708913b153 /media-libs
parentmedia-libs/gd: minor formatting change (diff)
downloadgentoo-02d5c009d3a3abfec856842f9311272a470c41ba.tar.gz
gentoo-02d5c009d3a3abfec856842f9311272a470c41ba.tar.bz2
gentoo-02d5c009d3a3abfec856842f9311272a470c41ba.zip
media-libs/gd: add libavif support
Closes: https://bugs.gentoo.org/774534 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/gd/gd-2.3.2.ebuild5
-rw-r--r--media-libs/gd/metadata.xml1
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 b4f727eeed07..5797a5d83b04 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 2f850ae23640..6c08c2fe834f 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>