gd: Support PACKAGECONFIG

Some recipes (like fswebcam) need gd with support of fontconfig to really
work. Otherwise font selection is not that easy.

Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Jörg Sommer
2026-04-16 21:31:18 +02:00
committed by Khem Raj
parent 2df018ea4b
commit be9f029b6c
+17 -8
View File
@@ -23,14 +23,23 @@ SRCREV = "b5319a41286107b53daa0e08e402aa1819764bdc"
inherit autotools binconfig gettext pkgconfig
EXTRA_OECONF += " --disable-rpath \
--with-jpeg=${STAGING_LIBDIR}/.. \
--with-freetype=yes \
--without-fontconfig \
--without-webp \
--without-xpm \
--without-x \
"
PACKAGECONFIG ?= "jpeg freetype"
PACKAGECONFIG[avif] = "--with-avif,--without-avif"
PACKAGECONFIG[fontconfig] = "--with-fontconfig,--without-fontconfig"
PACKAGECONFIG[freetype] = "--with-freetype,--without-freetype"
PACKAGECONFIG[heif] = "--with-heif,--without-heif"
PACKAGECONFIG[jpeg] = "--with-jpeg,--without-jpeg"
PACKAGECONFIG[liq] = "--with-liq,--without-liq"
PACKAGECONFIG[png] = "--with-png,--without-png"
PACKAGECONFIG[raqm] = "--with-raqm,--without-raqm,libraqm"
PACKAGECONFIG[tiff] = "--with-tiff,--without-tiff"
PACKAGECONFIG[webp] = "--with-webp,--without-webp"
PACKAGECONFIG[x] = "--with-x,--without-x"
PACKAGECONFIG[xpm] = "--with-xpm,--without-xpm"
PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib"
EXTRA_OECONF += "--disable-rpath"
EXTRA_OEMAKE = 'LDFLAGS="${LDFLAGS}"'