diff mbox series

[meta-oe] libsdl2-compat: add recipe

Message ID 20250313123844.419122-1-f_l_k@t-online.de
State Accepted
Headers show
Series [meta-oe] libsdl2-compat: add recipe | expand

Commit Message

Markus Volk March 13, 2025, 12:38 p.m. UTC
This is a drop in replacement for libsdl2 that uses libsdl3 behind the scenes

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 .../libsdl3/libsdl2-compat_2.32.52.bb         | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb
diff mbox series

Patch

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
new file mode 100644
index 0000000000..5052c85b3d
--- /dev/null
+++ b/meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.52.bb
@@ -0,0 +1,21 @@ 
+SUMMARY = "Simple DirectMedia Layer (SDL) sdl2-compat"
+DESCRIPTION = "This code is a compatibility layer; it provides a binary and source compatible \
+API for programs written against SDL2, but it uses SDL3 behind the scenes. If you are \
+writing new code, please target SDL3 directly and do not use this layer."
+HOMEPAGE = "http://www.libsdl.org"
+BUGTRACKER = "http://bugzilla.libsdl.org/"
+
+SECTION = "libs"
+
+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] = "eb02c4c47d90e7a2585a65c712cf4a08ff4c37c0a1efc17af49d8ebde3292c23"
+S = "${WORKDIR}/sdl2-compat-${PV}"
+
+DEPENDS += "libsdl3"
+
+inherit cmake pkgconfig upstream-version-is-even
+
+FILES:${PN} += "${datadir}/licenses"