From be9f029b6c104b0813b36b3dcfa623ad5626d76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Sommer?= Date: Thu, 16 Apr 2026 21:31:18 +0200 Subject: [PATCH] gd: Support PACKAGECONFIG MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Khem Raj --- meta-oe/recipes-support/gd/gd_2.3.3.bb | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/meta-oe/recipes-support/gd/gd_2.3.3.bb b/meta-oe/recipes-support/gd/gd_2.3.3.bb index 0d7a6d34f9..062c4b4a8f 100644 --- a/meta-oe/recipes-support/gd/gd_2.3.3.bb +++ b/meta-oe/recipes-support/gd/gd_2.3.3.bb @@ -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}"'