diff options
author | Markus Volk <f_l_k@t-online.de> | 2025-04-21 12:32:31 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-04-22 09:10:58 -0700 |
commit | 30a032aa66fdffeda8698b8f49fa3855296f8ebe (patch) | |
tree | 8cff819771f9b7d4e0ede198bccc0553905ec3e1 | |
parent | 4613cf385460f973d1fe3c75336ce44e141ae9f4 (diff) | |
download | meta-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.bb | 6 |
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 | ||
23 | REQUIRED_DISTRO_FEATURES = "opengl x11" | 23 | REQUIRED_DISTRO_FEATURES = "opengl x11" |
24 | 24 | ||
25 | do_install:append() { | ||
26 | mv ${D}${libdir}/pkgconfig/sdl2_compat.pc ${D}${libdir}/pkgconfig/sdl2.pc | ||
27 | } | ||
28 | |||
25 | FILES:${PN} += "${datadir}/licenses" | 29 | FILES:${PN} += "${datadir}/licenses" |
26 | 30 | ||
27 | RCONFLICTS:${PN} = "libsdl2" | 31 | RCONFLICTS:${PN} = "libsdl2" |
28 | RPROVIDES:${PN} = "libsdl2" | 32 | RPROVIDES:${PN} = "libsdl2" |
33 | |||
34 | BBCLASSEXTEND = "nativesdk native" | ||