summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2022-08-22 10:51:11 +0000
committerwiz <wiz@pkgsrc.org>2022-08-22 10:51:11 +0000
commit2757e9144702f832efc2e1893be034ace4c72d7a (patch)
tree7aa577b80230afc4b3bd31a8bcd0797b991b7fb0
parent99a0a8cf0a0eb9b436ceaaaf25311086443dc8e1 (diff)
downloadpkgsrc-2757e9144702f832efc2e1893be034ace4c72d7a.tar.gz
SDL2: update to 2.24.0.
--------------------------------------------------------------------------- 2.24.0: --------------------------------------------------------------------------- General: * 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 Windows: * Added initial support for building for Windows and Xbox with Microsoft's Game Development Kit (GDK), see docs/README-gdk.md 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 Linux: * 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 macOS: * 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.
-rw-r--r--devel/SDL2/Makefile9
-rw-r--r--devel/SDL2/PLIST3
-rw-r--r--devel/SDL2/distinfo9
-rw-r--r--devel/SDL2/options.mk4
-rw-r--r--devel/SDL2/patches/patch-src_video_wayland_SDL__waylandmessagebox.c34
5 files changed, 13 insertions, 46 deletions
diff --git a/devel/SDL2/Makefile b/devel/SDL2/Makefile
index ce585560223..3399dddb787 100644
--- a/devel/SDL2/Makefile
+++ b/devel/SDL2/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.65 2022/08/11 05:08:07 gutteridge Exp $
+# $NetBSD: Makefile,v 1.66 2022/08/22 10:51:11 wiz Exp $
-DISTNAME= SDL2-2.0.22
-PKGREVISION= 2
+DISTNAME= SDL2-2.24.0
CATEGORIES= devel
-MASTER_SITES= https://www.libsdl.org/release/
+MASTER_SITES= ${MASTER_SITE_GITHUB:=libsdl-org/}
+GITHUB_PROJECT= SDL
+GITHUB_RELEASE= release-${PKGVERSION_NOREV}
MAINTAINER= nia@NetBSD.org
HOMEPAGE= https://www.libsdl.org/
diff --git a/devel/SDL2/PLIST b/devel/SDL2/PLIST
index ba3dc6af935..1d03fd111bb 100644
--- a/devel/SDL2/PLIST
+++ b/devel/SDL2/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2021/12/07 20:31:27 wiz Exp $
+@comment $NetBSD: PLIST,v 1.13 2022/08/22 10:51:11 wiz Exp $
bin/sdl2-config
include/SDL2/SDL.h
include/SDL2/SDL_assert.h
@@ -16,6 +16,7 @@ include/SDL2/SDL_events.h
include/SDL2/SDL_filesystem.h
include/SDL2/SDL_gamecontroller.h
include/SDL2/SDL_gesture.h
+include/SDL2/SDL_guid.h
include/SDL2/SDL_haptic.h
include/SDL2/SDL_hidapi.h
include/SDL2/SDL_hints.h
diff --git a/devel/SDL2/distinfo b/devel/SDL2/distinfo
index 7d7334056f6..401ca4cb680 100644
--- a/devel/SDL2/distinfo
+++ b/devel/SDL2/distinfo
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.51 2022/05/03 17:15:05 nia Exp $
+$NetBSD: distinfo,v 1.52 2022/08/22 10:51:11 wiz Exp $
-BLAKE2s (SDL2-2.0.22.tar.gz) = 681e8623d65d0a49ce216f56edae5c5eb719a6abb744c4226a88b35181ed4591
-SHA512 (SDL2-2.0.22.tar.gz) = ca4b690433cd4d9d73b797da98666317128e7e817ab60e874a49d94791ea41e8a6b4fc43649593120daa0702190c0f8a6ed326c908d87375c8da9f369d994f6a
-Size (SDL2-2.0.22.tar.gz) = 7250633 bytes
-SHA1 (patch-src_video_wayland_SDL__waylandmessagebox.c) = 676972b1b489d8c6138866ace28867a77efb7e56
+BLAKE2s (SDL2-2.24.0.tar.gz) = 87aa504e5485612a5c5adedd1115ced216710258ec62122cd5f3c7539f50724d
+SHA512 (SDL2-2.24.0.tar.gz) = 5735bfc7b22f1780f80cc89f62a14ca809fe1280298d172f92dde74400db1f5378f8d3eae8834e886d3ca4f5ae6f1074d66c5c956613cf9e0cce961738514212
+Size (SDL2-2.24.0.tar.gz) = 7520541 bytes
diff --git a/devel/SDL2/options.mk b/devel/SDL2/options.mk
index 80caa49409f..20cf3fe236f 100644
--- a/devel/SDL2/options.mk
+++ b/devel/SDL2/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.18 2020/06/09 19:36:52 nia Exp $
+# $NetBSD: options.mk,v 1.19 2022/08/22 10:51:11 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.SDL2
PKG_OPTIONS_REQUIRED_GROUPS= gl
@@ -9,7 +9,7 @@ PKG_SUGGESTED_OPTIONS+= opengl
.include "../../mk/bsd.fast.prefs.mk"
-.if ${OPSYS} == "NetBSD" && !empty(MACHINE_ARCH:Mearm*)
+.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH:Mearm*}
PKG_OPTIONS_GROUP.gl+= rpi
.endif
diff --git a/devel/SDL2/patches/patch-src_video_wayland_SDL__waylandmessagebox.c b/devel/SDL2/patches/patch-src_video_wayland_SDL__waylandmessagebox.c
deleted file mode 100644
index a200fa6d257..00000000000
--- a/devel/SDL2/patches/patch-src_video_wayland_SDL__waylandmessagebox.c
+++ /dev/null
@@ -1,34 +0,0 @@
-$NetBSD: patch-src_video_wayland_SDL__waylandmessagebox.c,v 1.1 2021/08/11 20:12:25 nia Exp $
-
-Avoid conflict if stdout is a macro.
-
---- src/video/wayland/SDL_waylandmessagebox.c.orig 2021-07-27 14:52:29.000000000 +0000
-+++ src/video/wayland/SDL_waylandmessagebox.c
-@@ -116,7 +116,7 @@ Wayland_ShowMessageBox(const SDL_Message
- size_t output_len = 1;
- char* output = NULL;
- char* tmp = NULL;
-- FILE* stdout = NULL;
-+ FILE* stdout_ = NULL;
-
- close(fd_pipe[1]); /* no writing to pipe */
- /* At this point, if no button ID is needed, we can just bail as soon as the
-@@ -144,14 +144,14 @@ Wayland_ShowMessageBox(const SDL_Message
- }
- output[0] = '\0';
-
-- stdout = fdopen(fd_pipe[0], "r");
-- if (!stdout) {
-+ stdout_ = fdopen(fd_pipe[0], "r");
-+ if (!stdout_) {
- SDL_free(output);
- close(fd_pipe[0]);
- return SDL_SetError("Couldn't open pipe for reading: %s", strerror(errno));
- }
-- tmp = fgets(output, output_len + 1, stdout);
-- fclose(stdout);
-+ tmp = fgets(output, output_len + 1, stdout_);
-+ fclose(stdout_);
-
- if ((tmp == NULL) || (*tmp == '\0') || (*tmp == '\n')) {
- SDL_free(output);