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