diff mbox series

[1/2] gd: Support PACKAGECONFIG

Message ID 253216bbc08c9d7eeed715faa5069f8848b2c84e.1776367877.git.joerg.sommer@navimatix.de
State Under Review
Headers show
Series [1/2] gd: Support PACKAGECONFIG | expand

Commit Message

Jörg Sommer April 16, 2026, 7:31 p.m. UTC
From: Jörg Sommer <joerg.sommer@navimatix.de>

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>
---
 meta-oe/recipes-support/gd/gd_2.3.3.bb | 25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)
diff mbox series

Patch

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}"'