diff options
| author | wangmy <wangmy@fujitsu.com> | 2022-01-17 22:30:05 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-01-18 10:53:54 +0000 |
| commit | 3fa9789deed855d251282f2f1dac28dd960f76b9 (patch) | |
| tree | e7dd00d9b2071cbce1721919082f4faacc370782 /meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb | |
| parent | 348dd6d628aad0854056c644b341b5da81f1255b (diff) | |
| download | poky-3fa9789deed855d251282f2f1dac28dd960f76b9.tar.gz | |
libsdl2: upgrade 2.0.18 -> 2.0.20
0001-Fix-build-against-wayland-1.20.patch
removed since it is included in 2.0.20
License-Update: year updated to 2022.
Changelog:
=========
General:
SDL_RenderGeometryRaw() takes a pointer to SDL_Color, not int.
You can cast color data in SDL_PIXELFORMAT_RGBA32 format
(SDL_PIXELFORMAT_ABGR8888 on little endian systems) for this parameter.
Improved accuracy of horizontal and vertical line drawing when using OpenGL
or OpenGLES
Added the hint SDL_HINT_RENDER_LINE_METHOD to control the method of line
drawing used, to select speed, correctness, and compatibility.
Fixed hotplug controller detection, broken in 2.0.18
(From OE-Core rev: 21de64185beb799aee04dc12ae84e3a60cc671a3)
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.0.20.bb')
| -rw-r--r-- | meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb new file mode 100644 index 0000000000..90724ab8b7 --- /dev/null +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb | |||
| @@ -0,0 +1,77 @@ | |||
| 1 | SUMMARY = "Simple DirectMedia Layer" | ||
| 2 | DESCRIPTION = "Simple DirectMedia Layer is a cross-platform multimedia \ | ||
| 3 | library designed to provide low level access to audio, keyboard, mouse, \ | ||
| 4 | joystick, 3D hardware via OpenGL, and 2D video framebuffer." | ||
| 5 | HOMEPAGE = "http://www.libsdl.org" | ||
| 6 | BUGTRACKER = "http://bugzilla.libsdl.org/" | ||
| 7 | |||
| 8 | SECTION = "libs" | ||
| 9 | |||
| 10 | LICENSE = "Zlib" | ||
| 11 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=68a088513da90254b2fbe664f42af315" | ||
| 12 | |||
| 13 | # arm-neon adds MIT license | ||
| 14 | LICENSE:append = " ${@bb.utils.contains('PACKAGECONFIG', 'arm-neon', '& MIT', '', d)}" | ||
| 15 | LIC_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)}" | ||
| 16 | |||
| 17 | PROVIDES = "virtual/libsdl2" | ||
| 18 | |||
| 19 | SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \ | ||
| 20 | file://optional-libunwind-generic.patch \ | ||
| 21 | file://0001-sdlchecks.cmake-pass-cflags-to-the-appropriate-cmake.patch \ | ||
| 22 | " | ||
| 23 | |||
| 24 | S = "${WORKDIR}/SDL2-${PV}" | ||
| 25 | |||
| 26 | SRC_URI[sha256sum] = "c56aba1d7b5b0e7e999e4a7698c70b63a3394ff9704b5f6e1c57e0c16f04dd06" | ||
| 27 | |||
| 28 | inherit cmake lib_package binconfig-disabled pkgconfig | ||
| 29 | |||
| 30 | BINCONFIG = "${bindir}/sdl2-config" | ||
| 31 | |||
| 32 | CVE_PRODUCT = "simple_directmedia_layer sdl" | ||
| 33 | |||
| 34 | EXTRA_OECMAKE = "-DSDL_OSS=OFF -DSDL_ESD=OFF -DSDL_ARTS=OFF \ | ||
| 35 | -DSDL_DISKAUDIO=OFF -DSDL_NAS=OFF -DSDL_ESD_SHARED=OFF \ | ||
| 36 | -DSDL_DUMMYVIDEO=OFF \ | ||
| 37 | -DSDL_RPI=OFF \ | ||
| 38 | -DSDL_PTHREADS=ON \ | ||
| 39 | -DSDL_RPATH=OFF \ | ||
| 40 | -DSDL_SNDIO=OFF \ | ||
| 41 | -DSDL_X11_XVM=OFF \ | ||
| 42 | -DSDL_X11_XCURSOR=OFF \ | ||
| 43 | -DSDL_X11_XINERAMA=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 | ||
| 54 | PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}" | ||
| 55 | |||
| 56 | PACKAGECONFIG:class-native = "x11 ${PACKAGECONFIG_GL}" | ||
| 57 | PACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} ${PACKAGECONFIG_GL}" | ||
| 58 | PACKAGECONFIG ??= " \ | ||
| 59 | ${PACKAGECONFIG_GL} \ | ||
| 60 | ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \ | ||
| 61 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \ | ||
| 62 | ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \ | ||
| 63 | " | ||
| 64 | PACKAGECONFIG[alsa] = "-DSDL_ALSA=ON,-DSDL_ALSA=OFF,alsa-lib," | ||
| 65 | PACKAGECONFIG[arm-neon] = "-DSDL_ARMNEON=ON,-DSDL_ARMNEON=OFF" | ||
| 66 | PACKAGECONFIG[directfb] = "-DSDL_DIRECTFB=ON,-DSDL_DIRECTFB=OFF,directfb,directfb" | ||
| 67 | PACKAGECONFIG[gles2] = "-DSDL_OPENGLES=ON,-DSDL_OPENGLES=OFF,virtual/libgles2" | ||
| 68 | PACKAGECONFIG[jack] = "-DSDL_JACK=ON,-DSDL_JACK=OFF,jack" | ||
| 69 | PACKAGECONFIG[kmsdrm] = "-DSDL_KMSDRM=ON,-DSDL_KMSDRM=OFF,libdrm virtual/libgbm" | ||
| 70 | PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/libgl" | ||
| 71 | PACKAGECONFIG[pulseaudio] = "-DSDL_PULSEAUDIO=ON,-DSDL_PULSEAUDIO=OFF,pulseaudio" | ||
| 72 | PACKAGECONFIG[wayland] = "-DSDL_WAYLAND=ON,-DSDL_WAYLAND=OFF,wayland-native wayland wayland-protocols libxkbcommon" | ||
| 73 | PACKAGECONFIG[x11] = "-DSDL_X11=ON,-DSDL_X11=OFF,virtual/libx11 libxext libxrandr libxrender" | ||
| 74 | |||
| 75 | CFLAGS:append:class-native = " -DNO_SHARED_MEMORY" | ||
| 76 | |||
| 77 | BBCLASSEXTEND = "native nativesdk" | ||
