summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/libsdl3
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-graphics/libsdl3')
-rw-r--r--meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.56.bb34
-rw-r--r--meta-oe/recipes-graphics/libsdl3/libsdl3-image_3.2.4.bb15
-rw-r--r--meta-oe/recipes-graphics/libsdl3/libsdl3-ttf_3.2.2.bb15
-rw-r--r--meta-oe/recipes-graphics/libsdl3/libsdl3_3.2.16.bb78
4 files changed, 142 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.56.bb b/meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.56.bb
new file mode 100644
index 0000000000..3b17f350df
--- /dev/null
+++ b/meta-oe/recipes-graphics/libsdl3/libsdl2-compat_2.32.56.bb
@@ -0,0 +1,34 @@
1SUMMARY = "Simple DirectMedia Layer (SDL) sdl2-compat"
2DESCRIPTION = "This code is a compatibility layer; it provides a binary and source compatible \
3API for programs written against SDL2, but it uses SDL3 behind the scenes. If you are \
4writing new code, please target SDL3 directly and do not use this layer."
5HOMEPAGE = "http://www.libsdl.org"
6BUGTRACKER = "http://bugzilla.libsdl.org/"
7
8SECTION = "libs"
9
10LICENSE = "Zlib"
11LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=98241180d857fe975e4b60d44d6c01a5"
12
13SRC_URI = "http://www.libsdl.org/release/sdl2-compat-${PV}.tar.gz"
14SRC_URI[sha256sum] = "27e845b1b7dc0a91a85f1a1f18892ed205adb38caf767741eb258008d8264de0"
15S = "${UNPACKDIR}/sdl2-compat-${PV}"
16
17DEPENDS += "libsdl3"
18
19PROVIDES = "virtual/libsdl2"
20
21inherit cmake pkgconfig upstream-version-is-even features_check
22
23REQUIRED_DISTRO_FEATURES = "opengl x11"
24
25do_install:append() {
26 mv ${D}${libdir}/pkgconfig/sdl2-compat.pc ${D}${libdir}/pkgconfig/sdl2.pc
27}
28
29FILES:${PN} += "${datadir}/licenses"
30
31RCONFLICTS:${PN} = "libsdl2"
32RPROVIDES:${PN} = "libsdl2"
33
34BBCLASSEXTEND = "nativesdk native"
diff --git a/meta-oe/recipes-graphics/libsdl3/libsdl3-image_3.2.4.bb b/meta-oe/recipes-graphics/libsdl3/libsdl3-image_3.2.4.bb
new file mode 100644
index 0000000000..ac425f6ad2
--- /dev/null
+++ b/meta-oe/recipes-graphics/libsdl3/libsdl3-image_3.2.4.bb
@@ -0,0 +1,15 @@
1SUMMARY = "Simple DirectMedia Layer image library v2"
2SECTION = "libs"
3
4LICENSE = "Zlib"
5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fbb0010b2f7cf6e8a13bcac1ef4d2455"
6
7DEPENDS = "tiff zlib libpng jpeg libsdl3 libwebp"
8
9SRC_URI = "git://github.com/libsdl-org/SDL_image.git;protocol=https;branch=release-3.2.x"
10SRCREV = "11154afb7855293159588b245b446a4ef09e574f"
11
12
13inherit cmake pkgconfig
14
15FILES:${PN} += "${datadir}/licenses"
diff --git a/meta-oe/recipes-graphics/libsdl3/libsdl3-ttf_3.2.2.bb b/meta-oe/recipes-graphics/libsdl3/libsdl3-ttf_3.2.2.bb
new file mode 100644
index 0000000000..1f82f95d65
--- /dev/null
+++ b/meta-oe/recipes-graphics/libsdl3/libsdl3-ttf_3.2.2.bb
@@ -0,0 +1,15 @@
1SUMMARY = "Simple DirectMedia Layer truetype font library"
2SECTION = "libs"
3DEPENDS = "libsdl3 freetype"
4LICENSE = "Zlib"
5LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=fbb0010b2f7cf6e8a13bcac1ef4d2455"
6
7SRC_URI = "http://www.libsdl.org/projects/SDL_ttf/release/SDL3_ttf-${PV}.tar.gz \
8"
9SRC_URI[sha256sum] = "63547d58d0185c833213885b635a2c0548201cc8f301e6587c0be1a67e1e045d"
10
11S = "${UNPACKDIR}/SDL3_ttf-${PV}"
12
13inherit cmake pkgconfig
14
15FILES:${PN} += "${datadir}/licenses"
diff --git a/meta-oe/recipes-graphics/libsdl3/libsdl3_3.2.16.bb b/meta-oe/recipes-graphics/libsdl3/libsdl3_3.2.16.bb
new file mode 100644
index 0000000000..9579cb73a1
--- /dev/null
+++ b/meta-oe/recipes-graphics/libsdl3/libsdl3_3.2.16.bb
@@ -0,0 +1,78 @@
1SUMMARY = "Simple DirectMedia Layer"
2DESCRIPTION = "Simple DirectMedia Layer is a cross-platform multimedia \
3library designed to provide low level access to audio, keyboard, mouse, \
4joystick, 3D hardware via OpenGL, and 2D video framebuffer."
5HOMEPAGE = "http://www.libsdl.org"
6BUGTRACKER = "http://bugzilla.libsdl.org/"
7
8SECTION = "libs"
9
10LICENSE = "Zlib & BSD-2-Clause"
11LIC_FILES_CHKSUM = "\
12 file://LICENSE.txt;md5=cbf0e3161523f9a9315b6b915c5c4457 \
13 file://src/hidapi/LICENSE.txt;md5=7c3949a631240cb6c31c50f3eb696077 \
14 file://src/hidapi/LICENSE-bsd.txt;md5=b5fa085ce0926bb50d0621620a82361f \
15 file://src/video/yuv2rgb/LICENSE;md5=79f8f3418d91531e05f0fc94ca67e071 \
16"
17
18SRC_URI = "http://www.libsdl.org/release/SDL3-${PV}.tar.gz"
19
20S = "${UNPACKDIR}/SDL3-${PV}"
21
22SRC_URI[sha256sum] = "6340e58879b2d15830c8460d2f589a385c444d1faa2a4828a9626c7322562be8"
23
24inherit cmake lib_package binconfig-disabled pkgconfig upstream-version-is-even
25
26CVE_PRODUCT = "simple_directmedia_layer sdl"
27
28EXTRA_OECMAKE = " \
29 -DSDL_OSS_DEFAULT=OFF \
30 -DSDL_DISKAUDIO=OFF \
31 -DSDL_DUMMYVIDEO=OFF \
32 -DSDL_RPI=OFF \
33 -DSDL_PTHREADS=ON \
34 -DSDL_RPATH=OFF \
35 -DSDL_SNDIO=OFF \
36 -DSDL_X11_XCURSOR=OFF \
37 -DSDL_X11_XDBE=OFF \
38 -DSDL_X11_XFIXES=OFF \
39 -DSDL_X11_XINPUT=OFF \
40 -DSDL_X11_XSCRNSAVER=OFF \
41 -DSDL_X11_XSHAPE=OFF \
42"
43
44# opengl packageconfig factored out to make it easy for distros
45# and BSP layers to pick either (desktop) opengl, gles2, or no GL
46PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
47
48PACKAGECONFIG:class-native = "x11 ${PACKAGECONFIG_GL}"
49PACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} ${PACKAGECONFIG_GL}"
50PACKAGECONFIG ??= " \
51 ${PACKAGECONFIG_GL} \
52 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa pulseaudio pipewire x11 vulkan', d)} \
53 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \
54 ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \
55 ${@bb.utils.contains_any("DISTRO_FEATURES", "x11 wayland","","console-build",d)} \
56"
57PACKAGECONFIG[alsa] = "-DSDL_ALSA=ON,-DSDL_ALSA=OFF,alsa-lib,"
58PACKAGECONFIG[arm-neon] = "-DSDL_ARMNEON=ON,-DSDL_ARMNEON=OFF"
59PACKAGECONFIG[console-build] = "-DSDL_UNIX_CONSOLE_BUILD=ON"
60PACKAGECONFIG[gles2] = "-DSDL_OPENGLES=ON,-DSDL_OPENGLES=OFF,virtual/libgles2"
61PACKAGECONFIG[jack] = "-DSDL_JACK=ON,-DSDL_JACK=OFF,jack"
62PACKAGECONFIG[kmsdrm] = "-DSDL_KMSDRM=ON,-DSDL_KMSDRM=OFF,libdrm virtual/libgbm"
63# The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
64# so we'll just use libusb when it's available.
65PACKAGECONFIG[libusb] = "-DSDL_HIDAPI_LIBUSB=ON,-DSDL_HIDAPI_LIBUSB=OFF,libusb1"
66PACKAGECONFIG[libdecor] = "-DSDL_WAYLAND_LIBDECOR=ON,-DSDL_WAYLAND_LIBDECOR=OFF,libdecor,libdecor"
67PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/egl"
68PACKAGECONFIG[pipewire] = "-DSDL_PIPEWIRE_SHARED=ON,-DSDL_PIPEWIRE_SHARED=OFF,pipewire"
69PACKAGECONFIG[pulseaudio] = "-DSDL_PULSEAUDIO=ON,-DSDL_PULSEAUDIO=OFF,pulseaudio"
70PACKAGECONFIG[vulkan] = "-DSDL_VULKAN=ON -DSDL_RENDER_VULKAN=ON,-DSDL_VULKAN=OFF -DSDL_RENDER_VULKAN=OFF"
71PACKAGECONFIG[wayland] = "-DSDL_WAYLAND=ON,-DSDL_WAYLAND=OFF,wayland-native wayland wayland-protocols libxkbcommon"
72PACKAGECONFIG[x11] = "-DSDL_X11=ON,-DSDL_X11=OFF,virtual/libx11 libxext libxrandr libxrender"
73
74CFLAGS:append:class-native = " -DNO_SHARED_MEMORY"
75
76FILES:${PN} += "${datadir}/licenses/SDL3/LICENSE.txt"
77
78BBCLASSEXTEND = "native nativesdk"