From 30a032aa66fdffeda8698b8f49fa3855296f8ebe Mon Sep 17 00:00:00 2001 From: Markus Volk Date: Mon, 21 Apr 2025 12:32:31 +0200 Subject: libsdl2-compat: fix to work as drop-in replacement for libsdl2 Since libsdl2 and libsdl2-compat are now mutually exclusive we can afford to rename the .pc file from sdl2-compat.pc to sdl2.pc This helps other projects which use pkgconfig to find libsdl2 Allow to build libsdl2-compat for native and nativesdk. This is required to build qemu Signed-off-by: Markus Volk Signed-off-by: Khem Raj --- meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb b/meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb index 80334e9ad8..cf580e49f8 100644 --- a/meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb +++ b/meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb @@ -22,7 +22,13 @@ inherit cmake pkgconfig upstream-version-is-even features_check REQUIRED_DISTRO_FEATURES = "opengl x11" +do_install:append() { + mv ${D}${libdir}/pkgconfig/sdl2_compat.pc ${D}${libdir}/pkgconfig/sdl2.pc +} + FILES:${PN} += "${datadir}/licenses" RCONFLICTS:${PN} = "libsdl2" RPROVIDES:${PN} = "libsdl2" + +BBCLASSEXTEND = "nativesdk native" -- cgit v1.2.3-54-g00ecf