From: Ross Burton Date: Wed, 13 May 2026 13:35:53 +0000 (+0100) Subject: libportal: add explicit PACKAGECONFIG for gtk4 support X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36e69fba4b8d1eba0c6d94cb0b3582199ea085bd;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git libportal: add explicit PACKAGECONFIG for gtk4 support Instead of using the presence of the opengl DISTRO_FEATURE to control whether the GTK 4 integration is built, add a PACKAGECONFIG for it. Signed-off-by: Ross Burton Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-gnome/libportal/libportal_0.9.1.bb b/meta/recipes-gnome/libportal/libportal_0.9.1.bb index 9713f70dbb..f4924355f9 100644 --- a/meta/recipes-gnome/libportal/libportal_0.9.1.bb +++ b/meta/recipes-gnome/libportal/libportal_0.9.1.bb @@ -14,6 +14,9 @@ GIDOCGEN_MESON_OPTION = 'docs' ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" -DEPENDS += "glib-2.0 glib-2.0-native gtk+3 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gtk4', '', d)}" +DEPENDS += "glib-2.0 glib-2.0-native gtk+3" + +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gtk4', '', d)}" +PACKAGECONFIG[gtk4] = "-Dbackend-gtk4=enabled,-Dbackend-gtk4=disabled,gtk4" EXTRA_OEMESON = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)} -Dbackend-qt5=disabled"