Hi,
Please find attached diffs for updating sdl2, sdl2-mixer, and sdl2-ttf
to their latest versions. API changes are minor. I've built and ran a
few consumers without issues. Here the release notes:
sdl2-2.30.0
---
In addition to lots of bug fixes, here are the major changes in this
release:
General:
* Added support for 2 bits-per-pixel indexed surface formats
* Added the function SDL_GameControllerGetSteamHandle() to get the Steam
API handle for a controller, if available
* Added the event SDL_CONTROLLERSTEAMHANDLEUPDATED which is sent when
the Steam API handle for a controller changes. This could also change
the name, VID, and PID of the controller.
* Added the environment variable SDL_LOGGING to control default log output
[rest is for macOS and Xbox, so omitted]
sdl2-mixer 2.8.0
In addition to lots of bug fixes, here are the major changes in this
release:
* Added support for loading wavpack sound files (https://www.wavpack.com/)
* Added support for loading classic console sound files using
Game_Music_Emu (https://github.com/libgme/game-music-emu)
* Use minimp3 instead of dr_mp3 as the default backend for MP3 music
* Use libxmp instead of modplug as the default backend for MOD music
* To use libmodplug instead, configure using --enable-music-mod-modplug
--disable-music-mod-xmp
* Added support for FLAC audio in Ogg containers
* Added Mix_PauseAudio() to pause and resume all audio playback
* Added Mix_GetNumTracks() and Mix_StartTrack() for managing tracks in
GME files
sdl2-ttf 2.22.0
---
In addition to bug fixes, here are the major changes in this release:
* Updated to FreeType version 2.13.2 and HarfBuzz version 8.1.1
ok? (planning to commit these updates soon if I don't hear anything...)
Index: Makefile
===
RCS file: /cvs/ports/devel/sdl2/Makefile,v
retrieving revision 1.54
diff -u -p -r1.54 Makefile
--- Makefile5 Nov 2023 13:56:52 - 1.54
+++ Makefile18 Feb 2024 04:05:49 -
@@ -1,12 +1,12 @@
COMMENT= cross-platform multimedia library
-V= 2.28.5
+V= 2.30.0
DISTNAME= SDL2-${V}
PKGNAME= sdl2-${V}
CATEGORIES=devel
SITES= https://www.libsdl.org/release/
-SHARED_LIBS= SDL20.14# 2.28.1
+SHARED_LIBS= SDL20.15# 2.30.0
HOMEPAGE= https://www.libsdl.org/
@@ -17,12 +17,13 @@ DEBUG_PACKAGES= ${BUILD_PACKAGES}
# zlib
PERMIT_PACKAGE=Yes
-WANTLIB+= X11 Xcursor Xext Xfixes Xi Xrandr Xrender Xss m pthread
samplerate
-WANTLIB+= sndio usbhid xcb
+WANTLIB+= X11 Xcursor Xext Xfixes Xi Xrandr Xrender Xss iconv m pthread
+WANTLIB+= samplerate sndio usbhid xcb
# GL library is dlopen'd
WANTLIB+= GL
-LIB_DEPENDS= audio/libsamplerate
+LIB_DEPENDS= audio/libsamplerate \
+ converters/libiconv
USE_GMAKE= Yes
SEPARATE_BUILD=Yes
Index: distinfo
===
RCS file: /cvs/ports/devel/sdl2/distinfo,v
retrieving revision 1.22
diff -u -p -r1.22 distinfo
--- distinfo5 Nov 2023 13:56:52 - 1.22
+++ distinfo18 Feb 2024 04:05:49 -
@@ -1,2 +1,2 @@
-SHA256 (SDL2-2.28.5.tar.gz) = MyyzfQviDLlUFznGH3m65aR3Qn15roXjUgia/a9mZuQ=
-SIZE (SDL2-2.28.5.tar.gz) = 7345355
+SHA256 (SDL2-2.30.0.tar.gz) = NuLkFVfg+koVGTFcD1lYqHzLJ+JcUXdr628SOVJkR7A=
+SIZE (SDL2-2.30.0.tar.gz) = 7428037
Index: patches/patch-configure
===
RCS file: /cvs/ports/devel/sdl2/patches/patch-configure,v
retrieving revision 1.1
diff -u -p -r1.1 patch-configure
--- patches/patch-configure 2 Nov 2023 15:41:21 - 1.1
+++ patches/patch-configure 18 Feb 2024 04:05:49 -
@@ -2,7 +2,7 @@ prevent from using linux/input.h if pres
Index: configure
--- configure.orig
+++ configure
-@@ -26427,7 +26427,7 @@ main (void)
+@@ -26476,7 +26476,7 @@ main (void)
_ACEOF
if ac_fn_c_try_compile "$LINENO"
then :
Index: patches/patch-src_SDL_c
===
RCS file: /cvs/ports/devel/sdl2/patches/patch-src_SDL_c,v
retrieving revision 1.13
diff -u -p -r1.13 patch-src_SDL_c
--- patches/patch-src_SDL_c 19 Jul 2023 02:37:46 - 1.13
+++ patches/patch-src_SDL_c 18 Feb 2024 04:05:49 -
@@ -1,9 +1,9 @@
-- Allow custom SDL GetPlatform name with env var SDL_PLATFORM
+allow custom SDL GetPlatform name with env var SDL_PLATFORM
Index: src/SDL.c
--- src/SDL.c.orig
+++ src/SDL.c
-@@ -544,6 +544,10 @@ int SDL_GetRevisionNumber(void)
+@@ -566,6 +566,10 @@ int SDL_GetRevisionNumber(void)
/* Get the name of the platform */
const char *SDL_GetPlatform(void)
{
@@ -11,6 +11,6 @@ Index: src/SDL.c
+if (platform = SDL_getenv("SDL_PLATFORM")) {
+return platform;
+}
- #if __AIX__
+ #if defined(__AIX__)
return "AIX";
-