mirror of
https://git.yoctoproject.org/poky
synced 2026-07-17 04:07:06 +00:00
0658aed579
2.26.4 This is a stable bugfix release, with the following changes: Fixed relative mouse motion over remote desktop on Windows Fixed using older game controller mappings on Linux 2.26.5 This is a stable bugfix release, with the following changes: The minimum deployment target on macOS is now 10.11, due to changes in the latest Xcode update Fixed incorrect modifier keys handling on macOS Fixed occasional duplicate controller visible on macOS Fixed handling of third party PS4 controller input reports Added support for the trigger buttons on the Victrix Pro FS for PS5 Added mapping for Flydigi Vader 2 with the latest firmware (6.0.4.9) Added mapping for DualSense Edge Wireless Controller on Linux Added mapping for Hori Pokken Tournament DX Pro Pad Improved the speed and quality of audio resampling Fixed crash on Linux if dbus can't be initialized (From OE-Core rev: c55f56ea3081f3b53c06e84fccffc289bac1f19e) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit 106cdae227775f8e3b32462ed68b99231595f075) Signed-off-by: Steve Sakoman <steve@sakoman.com>
86 lines
3.9 KiB
BlitzBasic
86 lines
3.9 KiB
BlitzBasic
SUMMARY = "Simple DirectMedia Layer"
|
|
DESCRIPTION = "Simple DirectMedia Layer is a cross-platform multimedia \
|
|
library designed to provide low level access to audio, keyboard, mouse, \
|
|
joystick, 3D hardware via OpenGL, and 2D video framebuffer."
|
|
HOMEPAGE = "http://www.libsdl.org"
|
|
BUGTRACKER = "http://bugzilla.libsdl.org/"
|
|
|
|
SECTION = "libs"
|
|
|
|
LICENSE = "Zlib & BSD-2-Clause"
|
|
LIC_FILES_CHKSUM = "\
|
|
file://LICENSE.txt;md5=31f575634fd56b27fc6b6cbe8dc9bd38 \
|
|
file://src/hidapi/LICENSE.txt;md5=7c3949a631240cb6c31c50f3eb696077 \
|
|
file://src/hidapi/LICENSE-bsd.txt;md5=b5fa085ce0926bb50d0621620a82361f \
|
|
file://src/video/yuv2rgb/LICENSE;md5=79f8f3418d91531e05f0fc94ca67e071 \
|
|
"
|
|
|
|
# arm-neon adds MIT license
|
|
LICENSE:append = " ${@bb.utils.contains('PACKAGECONFIG', 'arm-neon', '& MIT', '', d)}"
|
|
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)}"
|
|
|
|
PROVIDES = "virtual/libsdl2"
|
|
|
|
SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz"
|
|
|
|
S = "${WORKDIR}/SDL2-${PV}"
|
|
|
|
SRC_URI[sha256sum] = "ad8fea3da1be64c83c45b1d363a6b4ba8fd60f5bde3b23ec73855709ec5eabf7"
|
|
|
|
inherit cmake lib_package binconfig-disabled pkgconfig upstream-version-is-even
|
|
|
|
BINCONFIG = "${bindir}/sdl2-config"
|
|
|
|
CVE_PRODUCT = "simple_directmedia_layer sdl"
|
|
|
|
EXTRA_OECMAKE = "-DSDL_OSS=OFF -DSDL_ESD=OFF -DSDL_ARTS=OFF \
|
|
-DSDL_DISKAUDIO=OFF -DSDL_NAS=OFF -DSDL_ESD_SHARED=OFF \
|
|
-DSDL_DUMMYVIDEO=OFF \
|
|
-DSDL_RPI=OFF \
|
|
-DSDL_PTHREADS=ON \
|
|
-DSDL_RPATH=OFF \
|
|
-DSDL_SNDIO=OFF \
|
|
-DSDL_X11_XCURSOR=OFF \
|
|
-DSDL_X11_XDBE=OFF \
|
|
-DSDL_X11_XFIXES=OFF \
|
|
-DSDL_X11_XINPUT=OFF \
|
|
-DSDL_X11_XRANDR=OFF \
|
|
-DSDL_X11_XSCRNSAVER=OFF \
|
|
-DSDL_X11_XSHAPE=OFF \
|
|
"
|
|
|
|
# opengl packageconfig factored out to make it easy for distros
|
|
# and BSP layers to pick either (desktop) opengl, gles2, or no GL
|
|
PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
|
|
|
|
PACKAGECONFIG:class-native = "x11 ${PACKAGECONFIG_GL}"
|
|
PACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} ${PACKAGECONFIG_GL}"
|
|
PACKAGECONFIG ??= " \
|
|
${PACKAGECONFIG_GL} \
|
|
${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio pipewire x11 vulkan', d)} \
|
|
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \
|
|
${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \
|
|
"
|
|
PACKAGECONFIG[alsa] = "-DSDL_ALSA=ON,-DSDL_ALSA=OFF,alsa-lib,"
|
|
PACKAGECONFIG[arm-neon] = "-DSDL_ARMNEON=ON,-DSDL_ARMNEON=OFF"
|
|
PACKAGECONFIG[directfb] = "-DSDL_DIRECTFB=ON,-DSDL_DIRECTFB=OFF,directfb,directfb"
|
|
PACKAGECONFIG[gles2] = "-DSDL_OPENGLES=ON,-DSDL_OPENGLES=OFF,virtual/libgles2"
|
|
PACKAGECONFIG[jack] = "-DSDL_JACK=ON,-DSDL_JACK=OFF,jack"
|
|
PACKAGECONFIG[kmsdrm] = "-DSDL_KMSDRM=ON,-DSDL_KMSDRM=OFF,libdrm virtual/libgbm"
|
|
# The hidraw support doesn't catch Xbox, PS4 and Nintendo controllers,
|
|
# so we'll just use libusb when it's available.
|
|
PACKAGECONFIG[libusb] = ",,libusb1"
|
|
PACKAGECONFIG[libdecor] = "-DSDL_WAYLAND_LIBDECOR=ON,-DSDL_WAYLAND_LIBDECOR=OFF,libdecor,libdecor"
|
|
PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/egl"
|
|
PACKAGECONFIG[pipewire] = "-DSDL_PIPEWIRE_SHARED=ON,-DSDL_PIPEWIRE_SHARED=OFF,pipewire"
|
|
PACKAGECONFIG[pulseaudio] = "-DSDL_PULSEAUDIO=ON,-DSDL_PULSEAUDIO=OFF,pulseaudio"
|
|
PACKAGECONFIG[vulkan] = "-DSDL_VULKAN=ON,-DSDL_VULKAN=OFF"
|
|
PACKAGECONFIG[wayland] = "-DSDL_WAYLAND=ON,-DSDL_WAYLAND=OFF,wayland-native wayland wayland-protocols libxkbcommon"
|
|
PACKAGECONFIG[x11] = "-DSDL_X11=ON,-DSDL_X11=OFF,virtual/libx11 libxext libxrandr libxrender"
|
|
|
|
CFLAGS:append:class-native = " -DNO_SHARED_MEMORY"
|
|
|
|
FILES:${PN} += "${datadir}/licenses/SDL2/LICENSE.txt"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|