Message ID | 20250421103231.314647-1-f_l_k@t-online.de |
---|---|
State | Under Review |
Headers | show |
Series | [meta-oe] libsdl2-compat: fix to work as drop-in replacement for libsdl2 | expand |
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"
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 <f_l_k@t-online.de> --- meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb | 6 ++++++ 1 file changed, 6 insertions(+)