wxwidgets: add back the possibility to add packageconfig opengl for native

Previous commit (ce604d453c) removed packageconfig
opengl for -native. The removal was done in a way that it is not possible
to append or add opengl from a .bbappend wxwidgets recipe [1].

This commit adds back the possibility to add opengl to packageconfig when native,
using a weak assignment.

1: https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-metadata.html#removal-override-style-syntax
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
João Henrique Ferreira de Freitas
2025-09-14 20:40:53 -03:00
committed by Khem Raj
parent f5246b7df4
commit 9ed5916ac8
@@ -52,7 +52,7 @@ PACKAGECONFIG ?= "${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'gt
"
PACKAGECONFIG:append:class-target = " mediactrl ${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'webkit', '', d)}"
PACKAGECONFIG:remove:class-native = "opengl"
PACKAGECONFIG:class-native ?= "${@bb.utils.contains_any('DISTRO_FEATURES', 'x11 wayland', 'gtk', 'no_gui', d)}"
# Note on toolkit-PACKAGECONFIGs: select exactly one of 'no_gui' / 'gtk' / 'qt'
PACKAGECONFIG[no_gui] = "-DwxUSE_GUI=OFF,,,,,qt gtk opengl"