update to SDL 2.0.20

This is a bugfix release; no dynamic export changes.
Changes: https://discourse.libsdl.org/t/sdl-2-0-20-released/34407
from Brad - thanks!
removed CVS tags while here
tested build and runtime with several consumers
This commit is contained in:
thfr 2022-03-08 11:38:36 +00:00
parent 0078b48c82
commit c31037949f
13 changed files with 3 additions and 54 deletions

View File

@ -1,8 +1,6 @@
# $OpenBSD: Makefile,v 1.38 2021/12/18 05:34:57 thfr Exp $
COMMENT= cross-platform multimedia library
V= 2.0.18
V= 2.0.20
DISTNAME= SDL2-${V}
PKGNAME= sdl2-${V}
CATEGORIES= devel

View File

@ -1,2 +1,2 @@
SHA256 (SDL2-2.0.18.tar.gz) = lNQM1z2/oQu26t+8KPNVmSuy1u9nYa2dQHTv+V7lcRw=
SIZE (SDL2-2.0.18.tar.gz) = 7294032
SHA256 (SDL2-2.0.20.tar.gz) = xWq6HXtbDn6Znkp2mMcLY6M5T/lwS19uHFfgwW8E3QY=
SIZE (SDL2-2.0.20.tar.gz) = 7207221

View File

@ -1,5 +1,3 @@
$OpenBSD: patch-Makefile_in,v 1.11 2021/12/18 05:34:57 thfr Exp $
Index: Makefile.in
--- Makefile.in.orig
+++ Makefile.in

View File

@ -1,5 +1,3 @@
$OpenBSD: patch-sdl2-config_cmake_in,v 1.3 2021/08/20 16:59:32 thfr Exp $
Index: sdl2-config.cmake.in
--- sdl2-config.cmake.in.orig
+++ sdl2-config.cmake.in

View File

@ -1,5 +1,3 @@
$OpenBSD: patch-sdl2-config_in,v 1.2 2020/04/01 20:43:08 naddy Exp $
Index: sdl2-config.in
--- sdl2-config.in.orig
+++ sdl2-config.in

View File

@ -1,5 +1,3 @@
$OpenBSD: patch-sdl2_pc_in,v 1.4 2021/08/20 16:59:32 thfr Exp $
Index: sdl2.pc.in
--- sdl2.pc.in.orig
+++ sdl2.pc.in

View File

@ -1,5 +1,3 @@
$OpenBSD: patch-src_SDL_c,v 1.7 2021/12/18 05:34:57 thfr Exp $
Disable breaking if no haptic feedback support which disallows gamecontroller API
Index: src/SDL.c

View File

@ -1,30 +0,0 @@
$OpenBSD: patch-src_audio_sndio_SDL_sndioaudio_c,v 1.3 2021/12/18 05:34:57 thfr Exp $
fix assertion failure with SDL 2.0.18's new hotplugging support
GH PR https://github.com/libsdl-org/SDL/pull/5094
Index: src/audio/sndio/SDL_sndioaudio.c
--- src/audio/sndio/SDL_sndioaudio.c.orig
+++ src/audio/sndio/SDL_sndioaudio.c
@@ -350,6 +350,13 @@ SNDIO_Deinitialize(void)
UnloadSNDIOLibrary();
}
+static void
+SNDIO_DetectDevices(void)
+{
+ SDL_AddAudioDevice(SDL_FALSE, DEFAULT_OUTPUT_DEVNAME, NULL, (void *) 0x1);
+ SDL_AddAudioDevice(SDL_TRUE, DEFAULT_INPUT_DEVNAME, NULL, (void *) 0x2);
+}
+
static int
SNDIO_Init(SDL_AudioDriverImpl * impl)
{
@@ -366,6 +373,7 @@ SNDIO_Init(SDL_AudioDriverImpl * impl)
impl->CaptureFromDevice = SNDIO_CaptureFromDevice;
impl->FlushCapture = SNDIO_FlushCapture;
impl->Deinitialize = SNDIO_Deinitialize;
+ impl->DetectDevices = SNDIO_DetectDevices;
impl->AllowsArbitraryDeviceNames = 1;
impl->HasCaptureSupport = SDL_TRUE;

View File

@ -1,5 +1,3 @@
$OpenBSD: patch-src_filesystem_unix_SDL_sysfilesystem_c,v 1.3 2021/08/20 16:59:32 thfr Exp $
Disable SDL_GetBasePath implementation, not functional.
Index: src/filesystem/unix/SDL_sysfilesystem.c

View File

@ -1,5 +1,3 @@
$OpenBSD: patch-src_joystick_SDL_gamecontrollerdb_h,v 1.3 2021/12/18 05:34:57 thfr Exp $
enable controller detection by GUID on OpenBSD
use both LINUX and MACOSX guids to match both XInput and DInput devices

View File

@ -1,5 +1,3 @@
$OpenBSD: patch-src_joystick_bsd_SDL_bsdjoystick_c,v 1.4 2021/12/18 05:34:57 thfr Exp $
assign buttons correctly
get GUID using USB_GET_DEVICEINFO
detect newer (XInput-style) gamecontroller if hitem.logical_maximum is

View File

@ -1,4 +1,3 @@
@comment $OpenBSD: PLIST,v 1.11 2021/12/18 05:34:57 thfr Exp $
bin/sdl2-config
include/SDL2/
include/SDL2/SDL.h

View File

@ -1,5 +1,3 @@
$OpenBSD: README,v 1.2 2018/09/04 12:46:11 espie Exp $
+-----------------------------------------------------------------------
| Customizing ${PKGSTEM} gamecontroller layout on OpenBSD
+-----------------------------------------------------------------------