similarity index 77%
rename from meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.58.bb
rename to meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.62.bb
@@ -11,7 +11,7 @@ LICENSE = "Zlib"
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=98241180d857fe975e4b60d44d6c01a5"
SRC_URI = "http://www.libsdl.org/release/sdl2-compat-${PV}.tar.gz"
-SRC_URI[sha256sum] = "ae85222c007f7e2acb927c7a47c12726f56478c6f3f35ee0da1ac929f8beb53e"
+SRC_URI[sha256sum] = "23019a3b0825e2fd3411901df3e1ae24c595cd57e20a345509f77472bd9000e0"
S = "${UNPACKDIR}/sdl2-compat-${PV}"
DEPENDS += "libsdl3"
@@ -20,7 +20,10 @@ PROVIDES = "virtual/libsdl2"
inherit cmake pkgconfig upstream-version-is-even features_check
-REQUIRED_DISTRO_FEATURES = "opengl x11"
+REQUIRED_DISTRO_FEATURES = "opengl"
+
+PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
+PACKAGECONFIG[x11] = "-DSDL2COMPAT_X11=ON,-DSDL2COMPAT_X11=OFF,virtual/libx11"
do_install:append() {
mv ${D}${libdir}/pkgconfig/sdl2-compat.pc ${D}${libdir}/pkgconfig/sdl2.pc
- Starting with [https://github.com/libsdl-org/sdl2-compat/pull/536], it is possible to compile without x11. Remove x11 from REQUIRED_DISTRO_FEATURES Changelog: 2.32.62: This is a stable bugfix release, with the following changes: Improved support for GNU/Hurd Fixed crash if hidapi strings are not available 2.32.60: This is a stable bugfix release, with the following changes: Fixed crash at startup in Dwarf Fortress Fixed crash at startup in Stellaris Fixed mouse stuttering in Amiberry Fixed the viewport not being reset when the window is resized Signed-off-by: Markus Volk <f_l_k@t-online.de> --- ...libsdl2-compat_2.32.58.bb => libsdl2-compat_2.32.62.bb} | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) rename meta-oe/recipes-graphics/libsdl3/{libsdl2-compat_2.32.58.bb => libsdl2-compat_2.32.62.bb} (77%)