summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Volk <f_l_k@t-online.de>2025-04-21 12:32:31 +0200
committerKhem Raj <raj.khem@gmail.com>2025-04-22 09:10:58 -0700
commit30a032aa66fdffeda8698b8f49fa3855296f8ebe (patch)
tree8cff819771f9b7d4e0ede198bccc0553905ec3e1
parent4613cf385460f973d1fe3c75336ce44e141ae9f4 (diff)
downloadmeta-openembedded-30a032aa66fdffeda8698b8f49fa3855296f8ebe.tar.gz
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 <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb6
1 files changed, 6 insertions, 0 deletions
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
22 22
23REQUIRED_DISTRO_FEATURES = "opengl x11" 23REQUIRED_DISTRO_FEATURES = "opengl x11"
24 24
25do_install:append() {
26 mv ${D}${libdir}/pkgconfig/sdl2_compat.pc ${D}${libdir}/pkgconfig/sdl2.pc
27}
28
25FILES:${PN} += "${datadir}/licenses" 29FILES:${PN} += "${datadir}/licenses"
26 30
27RCONFLICTS:${PN} = "libsdl2" 31RCONFLICTS:${PN} = "libsdl2"
28RPROVIDES:${PN} = "libsdl2" 32RPROVIDES:${PN} = "libsdl2"
33
34BBCLASSEXTEND = "nativesdk native"