summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/libsdl2/libsdl2_2.30.1.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2024-03-13 15:08:09 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-04-16 08:07:01 +0100
commit30ff5f152f35a6709b1dae5bbc416cd33c458865 (patch)
treea660d16b020441faecefa5297ec251ac61225a06 /meta/recipes-graphics/libsdl2/libsdl2_2.30.1.bb
parent7309a6a0eddb8cfb0d79c79e58e927ca43808eb1 (diff)
downloadpoky-30ff5f152f35a6709b1dae5bbc416cd33c458865.tar.gz
libsdl2: upgrade 2.30.0 -> 2.30.1
Changelog: =========== -Fixed a regression causing SDL_WaitEvent() to return spurious failures -Fixed X11 cursors on the latest release of GNOME -Wayland windows automatically have OpenGL enabled again -Fixed memory corruption when converting signed 16-bit audio to float -Fixed audio artifacts when converting signed 8-bit audio to float -Fixed the clip rectangle not being updated when the viewport changes in the SDL renderer -Convert mouse wheel coordinates to the rendering view in the SDL renderer -Fixed a crash handling controllers on macOS -Fixed a crash setting a window fullscreen with Emscripten -Fixed the keyboard automatically popping up when resuming an application on Android (From OE-Core rev: a17c05585a0da0166087ae0cd3cd4331a1fb2615) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/libsdl2/libsdl2_2.30.1.bb')
-rw-r--r--meta/recipes-graphics/libsdl2/libsdl2_2.30.1.bb85
1 files changed, 85 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.30.1.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.30.1.bb
new file mode 100644
index 0000000000..891e91190a
--- /dev/null
+++ b/meta/recipes-graphics/libsdl2/libsdl2_2.30.1.bb
@@ -0,0 +1,85 @@
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=25231a5b96ccdd8f39eb53c07717be64 \
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
18# arm-neon adds MIT license
19LICENSE:append = " ${@bb.utils.contains('PACKAGECONFIG', 'arm-neon', '& MIT', '', d)}"
20LIC_FILES_CHKSUM:append = " ${@bb.utils.contains('PACKAGECONFIG', 'arm-neon', 'file://src/video/arm/pixman-arm-neon-asm.h;md5=9a9cc1e51abbf1da58f4d9528ec9d49b;beginline=1;endline=24', '', d)}"
21
22PROVIDES = "virtual/libsdl2"
23
24SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz"
25
26S = "${WORKDIR}/SDL2-${PV}"
27
28SRC_URI[sha256sum] = "01215ffbc8cfc4ad165ba7573750f15ddda1f971d5a66e9dcaffd37c587f473a"
29
30inherit cmake lib_package binconfig-disabled pkgconfig upstream-version-is-even
31
32BINCONFIG = "${bindir}/sdl2-config"
33
34CVE_PRODUCT = "simple_directmedia_layer sdl"
35
36EXTRA_OECMAKE = "-DSDL_OSS=OFF -DSDL_ESD=OFF -DSDL_ARTS=OFF \
37 -DSDL_DISKAUDIO=OFF -DSDL_NAS=OFF -DSDL_ESD_SHARED=OFF \
38 -DSDL_DUMMYVIDEO=OFF \
39 -DSDL_RPI=OFF \
40 -DSDL_PTHREADS=ON \
41 -DSDL_RPATH=OFF \
42 -DSDL_SNDIO=OFF \
43 -DSDL_X11_XCURSOR=OFF \
44 -DSDL_X11_XDBE=OFF \
45 -DSDL_X11_XFIXES=OFF \
46 -DSDL_X11_XINPUT=OFF \
47 -DSDL_X11_XRANDR=OFF \
48 -DSDL_X11_XSCRNSAVER=OFF \
49 -DSDL_X11_XSHAPE=OFF \
50"
51
52# opengl packageconfig factored out to make it easy for distros
53# and BSP layers to pick either (desktop) opengl, gles2, or no GL
54PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
55
56PACKAGECONFIG:class-native = "x11 ${PACKAGECONFIG_GL}"
57PACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} ${PACKAGECONFIG_GL}"
58PACKAGECONFIG ??= " \
59 ${PACKAGECONFIG_GL} \
60 ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio pipewire x11 vulkan', d)} \
61 ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \
62 ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \
63"
64PACKAGECONFIG[alsa] = "-DSDL_ALSA=ON,-DSDL_ALSA=OFF,alsa-lib,"
65PACKAGECONFIG[arm-neon] = "-DSDL_ARMNEON=ON,-DSDL_ARMNEON=OFF"
66PACKAGECONFIG[directfb] = "-DSDL_DIRECTFB=ON,-DSDL_DIRECTFB=OFF,directfb,directfb"
67PACKAGECONFIG[gles2] = "-DSDL_OPENGLES=ON,-DSDL_OPENGLES=OFF,virtual/libgles2"
68PACKAGECONFIG[jack] = "-DSDL_JACK=ON,-DSDL_JACK=OFF,jack"
69PACKAGECONFIG[kmsdrm] = "-DSDL_KMSDRM=ON,-DSDL_KMSDRM=OFF,libdrm virtual/libgbm"
70# The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
71# so we'll just use libusb when it's available.
72PACKAGECONFIG[libusb] = ",,libusb1"
73PACKAGECONFIG[libdecor] = "-DSDL_WAYLAND_LIBDECOR=ON,-DSDL_WAYLAND_LIBDECOR=OFF,libdecor,libdecor"
74PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/egl"
75PACKAGECONFIG[pipewire] = "-DSDL_PIPEWIRE_SHARED=ON,-DSDL_PIPEWIRE_SHARED=OFF,pipewire"
76PACKAGECONFIG[pulseaudio] = "-DSDL_PULSEAUDIO=ON,-DSDL_PULSEAUDIO=OFF,pulseaudio"
77PACKAGECONFIG[vulkan] = "-DSDL_VULKAN=ON,-DSDL_VULKAN=OFF"
78PACKAGECONFIG[wayland] = "-DSDL_WAYLAND=ON,-DSDL_WAYLAND=OFF,wayland-native wayland wayland-protocols libxkbcommon"
79PACKAGECONFIG[x11] = "-DSDL_X11=ON,-DSDL_X11=OFF,virtual/libx11 libxext libxrandr libxrender"
80
81CFLAGS:append:class-native = " -DNO_SHARED_MEMORY"
82
83FILES:${PN} += "${datadir}/licenses/SDL2/LICENSE.txt"
84
85BBCLASSEXTEND = "native nativesdk"