sdl2: Update to version 2.26.0

Message ID
State Accepted
Commit 47c2e4c0aab69ff7f629e03d40e8e59f845ce3d3
Series sdl2: Update to version 2.26.0 |

Commit Message

Adolf Belka Nov. 28, 2022, 5:24 p.m. UTC
  - Update from version 2.0.22 to 2.26.0
- Update of rootfile
- Changelog
		* Updated OpenGL headers to the latest API from The Khronos Group Inc.
		* Added SDL_GetWindowSizeInPixels() to get the window size in pixels, which may differ from the window coordinate size for windows with high-DPI support
		* Added simulated vsync synchronization for the software renderer
		* Added the mouse position to SDL_MouseWheelEvent
		* Added SDL_ResetHints() to reset all hints to their default values
		* Added SDL_GetJoystickGUIDInfo() to get device information encoded in a joystick GUID
		* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360 to control whether the HIDAPI driver for XBox 360 controllers should be used
		* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED to control whether the player LEDs should be lit to indicate which player is associated with an Xbox 360 controller
		* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_WIRELESS to control whether the HIDAPI driver for XBox 360 wireless controllers should be used
		* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE to control whether the HIDAPI driver for XBox One controllers should be used
		* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED to control the brightness of the XBox One guide button LED
		* Added support for PS3 controllers to the HIDAPI driver, enabled by default on macOS, controlled by the SDL_HINT_JOYSTICK_HIDAPI_PS3 hint
		* Added support for Nintendo Wii controllers to the HIDAPI driver, not enabled by default, controlled by the SDL_HINT_JOYSTICK_HIDAPI_WII hint
		* Added the hint SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED to control whether the player LED should be lit on the Nintendo Wii controllers
		* Added the hint SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS to control whether Nintendo Switch Joy-Con controllers will be in vertical mode when using the HIDAPI driver
		* Added access to the individual left and right gyro sensors of the combined Joy-Cons controller
		* Added a microsecond timestamp to SDL_SensorEvent and SDL_ControllerSensorEvent, when the hardware provides that information
		* Added SDL_SensorGetDataWithTimestamp() and SDL_GameControllerGetSensorDataWithTimestamp() to retrieve the last sensor data with the associated microsecond timestamp
		* Added the hint SDL_HINT_HIDAPI_IGNORE_DEVICES to have the SDL HID API ignore specific devices
		* SDL_GetRevision() now includes more information about the SDL build, including the git commit hash if available
		* Added the hint SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE to control whether the system mouse acceleration curve is used for relative mouse motion
		* Implemented vsync synchronization on macOS 12
		* Added SDL_SetPrimarySelectionText(), SDL_GetPrimarySelectionText(), and SDL_HasPrimarySelectionText() to interact with the X11 primary selection clipboard
		* Added the hint SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP to control whether mouse pointer warp emulation is enabled under Wayland
		* Enabled IME soft keyboard input
		* Added version checking to make sure the SDL Java and C code are compatible
		* New version numbering scheme, similar to GLib and Flatpak.
		    * An even number in the minor version (second component) indicates a production-ready stable release such as 2.24.0, which would have been 2.0.24 under the old system.
		      * The patchlevel (micro version, third component) indicates a bugfix-only update: for example, 2.24.1 would be a bugfix-only release to fix bugs in 2.24.0, without adding new features.
		    * An odd number in the minor version indicates a prerelease such as 2.23.0. Stable distributions should not use these prereleases.
		      * The patchlevel indicates successive prereleases, for example 2.23.1 and 2.23.2 would be prereleases during development of the SDL 2.24.0 stable release.
		* Added SDL_GetPointDisplayIndex() and SDL_GetRectDisplayIndex() to get the display associated with a point and rectangle in screen space
		* Added SDL_bsearch(), SDL_crc16(), and  SDL_utf8strnlen() to the stdlib routines
		* Added SDL_CPUPauseInstruction() as a macro in SDL_atomic.h
		* Added SDL_size_mul_overflow() and SDL_size_add_overflow() for better size overflow protection
		* Added SDL_ResetHint() to reset a hint to the default value
		* Added SDL_ResetKeyboard() to reset SDL's internal keyboard state, generating key up events for all currently pressed keys
		* Added the hint SDL_HINT_MOUSE_RELATIVE_WARP_MOTION to control whether mouse warping generates motion events in relative mode. This hint defaults off.
		* Added the hint SDL_HINT_TRACKPAD_IS_TOUCH_ONLY to control whether trackpads are treated as touch devices or mice. By default touchpads are treated as mouse input.
		* The hint SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS now defaults on
		* Added support for mini-gamepad mode for Nintendo Joy-Con controllers using the HIDAPI driver
		* Added the hint SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS to control whether Joy-Con controllers are automatically merged into a unified gamepad when using the HIDAPI driver. This hint defaults on.
		* The hint SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED can be set to a floating point value to set the brightness of the Home LED on Nintendo Switch controllers
		* Added the hint SDL_HINT_JOYSTICK_HIDAPI_JOYCON_HOME_LED to set the Home LED brightness for the Nintendo Joy-Con controllers. By default the Home LED is not modified.
		* Added the hint SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED to control whether the player LED should be lit on the Nintendo Joy-Con controllers
		* Added support for Nintendo Online classic controllers using the HIDAPI driver
		* Added the hint SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC to control whether the HIDAPI driver for Nintendo Online classic controllers should be used
		* Added support for the NVIDIA Shield Controller to the HIDAPI driver, supporting rumble and battery status
		* Added support for NVIDIA SHIELD controller to the HIDAPI driver, and a hint SDL_HINT_JOYSTICK_HIDAPI_SHIELD to control whether this is used
		* Added functions to get the platform dependent name for a joystick or game controller:
		    * SDL_JoystickPathForIndex()
		    * SDL_JoystickPath()
		    * SDL_GameControllerPathForIndex()
		    * SDL_GameControllerPath()
		* Added SDL_GameControllerGetFirmwareVersion() and SDL_JoystickGetFirmwareVersion(), currently implemented for DualSense(tm) Wireless Controllers using HIDAPI
		* Added SDL_JoystickAttachVirtualEx() for extended virtual controller support
		* Added joystick event SDL_JOYBATTERYUPDATED for when battery status changes
		* Added SDL_GUIDToString() and SDL_GUIDFromString() to convert between SDL GUID and string
		* Added SDL_HasLSX() and SDL_HasLASX() to detect LoongArch SIMD support
		* Added SDL_GetOriginalMemoryFunctions()
		* Added SDL_GetDefaultAudioInfo() to get the name and format of the default audio device, currently implemented for PipeWire, PulseAudio, WASAPI, and DirectSound
		* Added HIDAPI driver for the NVIDIA SHIELD controller (2017 model) to enable support for battery status and rumble
		* Added support for opening audio devices with 3 or 5 channels (2.1, 4.1). All channel counts from Mono to 7.1 are now supported.
		* Rewrote audio channel converters used by SDL_AudioCVT, based on the channel matrix coefficients used as the default for FAudio voices
		* SDL log messages are no longer limited to 4K and can be any length
		* Fixed a long-standing calling convention issue with dynapi affecting OpenWatcom or OS/2 builds
		* Added initial support for building for Windows and Xbox with Microsoft's Game Development Kit (GDK), see docs/ for details
		* Added a D3D12 renderer implementation and SDL_RenderGetD3D12Device() to retrieve the D3D12 device associated with it
		* Added the hint SDL_HINT_WINDOWS_DPI_AWARENESS to set whether the application is DPI-aware. This hint must be set before initializing the video subsystem
		* Added the hint SDL_HINT_WINDOWS_DPI_SCALING to control whether the SDL coordinates are in DPI-scaled points or pixels
		* Added the hint SDL_HINT_DIRECTINPUT_ENABLED to control whether the DirectInput driver should be used
		* Added support for SDL_GetAudioDeviceSpec to the DirectSound backend
		* Support for XVidMode has been removed, mode changes are only supported using the XRandR extension
		* Added the hint SDL_HINT_VIDEO_WAYLAND_MODE_EMULATION to control whether to expose a set of emulated modes in addition to the native resolution modes available on Wayland
		* Added the hint SDL_HINT_KMSDRM_DEVICE_INDEX to specify which KMSDRM device to use if the default is not desired
		* Added the hint SDL_HINT_LINUX_DIGITAL_HATS to control whether to treat hats as digital rather than checking to see if they may be analog
		* Added the hint SDL_HINT_LINUX_HAT_DEADZONES to control whether to use deadzones on analog hats
		* Bumped minimum OS deployment version to macOS 10.9
		* Added SDL_GL_FLOATBUFFERS to allow Cocoa GL contexts to use EDR
		* Added the hint SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH to control whether dispatching OpenGL context updates should block the dispatching thread until the main thread finishes processing. This hint defaults to blocking, which is the safer option on modern macOS.

Signed-off-by: Adolf Belka <>
 config/rootfiles/packages/sdl2 | 3 ++-
 lfs/sdl2                       | 8 ++++----
 2 files changed, 6 insertions(+), 5 deletions(-)


diff --git a/config/rootfiles/packages/sdl2 b/config/rootfiles/packages/sdl2
index a95500017..4b80d40a8 100644
--- a/config/rootfiles/packages/sdl2
+++ b/config/rootfiles/packages/sdl2
@@ -16,6 +16,7 @@ 
@@ -81,7 +82,7 @@ 
diff --git a/lfs/sdl2 b/lfs/sdl2
index 0e1d70950..00e463156 100644
--- a/lfs/sdl2
+++ b/lfs/sdl2
@@ -1,7 +1,7 @@ 
 #                                                                             #
 # - A linux based firewall                                         #
-# Copyright (C) 2007-2018  IPFire Team  <>                     #
+# Copyright (C) 2007-2022  IPFire Team  <>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -24,7 +24,7 @@ 
 include Config
-VER        = 2.0.22
+VER        = 2.26.0
 SUMMARY    = Simple DirectMedia Layer Library
@@ -33,7 +33,7 @@  DL_FROM    = $(URL_IPFIRE)
 PROG       = sdl2
-PAK_VER    = 7
+PAK_VER    = 8
 DEPS       = alsa
@@ -47,7 +47,7 @@  objects = $(DL_FILE)
-$(DL_FILE)_BLAKE2 = 7f8b3efa709a0514f6a76df4ffc8b756d287d1e372ed107d0525a22cb5e6a168709136d375b6708b2073a76dd30d1bf06203d2c5c3eb2990e80519c7d1558df5
+$(DL_FILE)_BLAKE2 = 4971cef0d34706dd02eff5277fd58b35523ee3b1d860999b37ddf4dbc463f493859a43325c4faa9bd048c519d49788adb3dd7f38e6b29eb635c0e0e405c944e9
 install : $(TARGET)