git: 4b54cd2d7237 - main - devel/sdl3: update 3.4.10 → 3.4.12

Dmitry Marakasov <[email protected]> Sun, 02 Aug 2026 23:44:46 +0000
Newsgroups gmane.os.freebsd.devel.cvs.ports
Message-ID <[email protected]>
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4b54cd2d7237ceb84100122e3354bb914a92f4ea

commit 4b54cd2d7237ceb84100122e3354bb914a92f4ea
Author:     Dmitry Marakasov <[email protected]>
AuthorDate: 2026-07-20 21:54:08 +0000
Commit:     Dmitry Marakasov <[email protected]>
CommitDate: 2026-08-02 19:15:47 +0000

    devel/sdl3: update 3.4.10 → 3.4.12
---
 devel/sdl3/Makefile                           |  2 +-
 devel/sdl3/distinfo                           |  6 +++---
 devel/sdl3/files/patch-src_misc_SDL__libusb.c | 11 +++++++++++
 devel/sdl3/files/patch-src_misc_SDL__libusb.h | 11 +++++++++++
 4 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/devel/sdl3/Makefile b/devel/sdl3/Makefile
index b882888792ad..326973fdd146 100644
--- a/devel/sdl3/Makefile
+++ b/devel/sdl3/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	sdl3
 DISTVERSIONPREFIX=	release-
-DISTVERSION=	3.4.10
+DISTVERSION=	3.4.12
 CATEGORIES=	devel
 
 MAINTAINER=	[email protected]
diff --git a/devel/sdl3/distinfo b/devel/sdl3/distinfo
index 1e5fad863a32..59658fbaadb5 100644
--- a/devel/sdl3/distinfo
+++ b/devel/sdl3/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1780318841
-SHA256 (libsdl-org-SDL-release-3.4.10_GH0.tar.gz) = 0dc11d980ba17250200718fa4e28011da293f27ed92f92203afffe396811f307
-SIZE (libsdl-org-SDL-release-3.4.10_GH0.tar.gz) = 15824058
+TIMESTAMP = 1782926602
+SHA256 (libsdl-org-SDL-release-3.4.12_GH0.tar.gz) = b68381f06a7580e63400b3b6eb547ec57d8c3ebde70f9f40e0aba530ba05da27
+SIZE (libsdl-org-SDL-release-3.4.12_GH0.tar.gz) = 15846095
diff --git a/devel/sdl3/files/patch-src_misc_SDL__libusb.c b/devel/sdl3/files/patch-src_misc_SDL__libusb.c
new file mode 100644
index 000000000000..020e552ae4a0
--- /dev/null
+++ b/devel/sdl3/files/patch-src_misc_SDL__libusb.c
@@ -0,0 +1,11 @@
+--- src/misc/SDL_libusb.c.orig	2026-07-01 16:20:42 UTC
++++ src/misc/SDL_libusb.c
+@@ -92,7 +92,7 @@ bool SDL_InitLibUSB(SDL_LibUSBContext **ctx)
+             LOAD_LIBUSB_SYMBOL(int (LIBUSB_CALL *)(libusb_context *, int *), handle_events_completed)
+             LOAD_LIBUSB_SYMBOL(void (LIBUSB_CALL *)(libusb_context *ctx), interrupt_event_handler)
+             LOAD_LIBUSB_SYMBOL(int (LIBUSB_CALL *)(uint32_t), has_capability)
+-            LOAD_LIBUSB_SYMBOL(int (LIBUSB_CALL *)(libusb_context *, int, int, int, int, int, libusb_hotplug_callback_fn, void *, libusb_hotplug_callback_handle *), hotplug_register_callback)
++            LOAD_LIBUSB_SYMBOL(int (LIBUSB_CALL *)(libusb_context *, libusb_hotplug_event, libusb_hotplug_flag, int, int, int, libusb_hotplug_callback_fn, void *, libusb_hotplug_callback_handle *), hotplug_register_callback)
+             LOAD_LIBUSB_SYMBOL(void (LIBUSB_CALL *)(libusb_context *, libusb_hotplug_callback_handle), hotplug_deregister_callback)
+             LOAD_LIBUSB_SYMBOL(const char * (LIBUSB_CALL *)(int), error_name)
+ #undef LOAD_LIBUSB_SYMBOL
diff --git a/devel/sdl3/files/patch-src_misc_SDL__libusb.h b/devel/sdl3/files/patch-src_misc_SDL__libusb.h
new file mode 100644
index 000000000000..bb00c05ff8d1
--- /dev/null
+++ b/devel/sdl3/files/patch-src_misc_SDL__libusb.h
@@ -0,0 +1,11 @@
+--- src/misc/SDL_libusb.h.orig	2026-07-01 16:20:42 UTC
++++ src/misc/SDL_libusb.h
+@@ -93,7 +93,7 @@ typedef struct SDL_LibUSBContext
+     int (LIBUSB_CALL *handle_events_completed)(libusb_context *ctx, int *completed);
+     void (LIBUSB_CALL *interrupt_event_handler)(libusb_context *ctx);
+     int (LIBUSB_CALL *has_capability)(uint32_t capability);
+-    int (LIBUSB_CALL *hotplug_register_callback)(libusb_context *ctx, int events, int flags, int vendor_id, int product_id, int dev_class, libusb_hotplug_callback_fn cb_fn, void *user_data, libusb_hotplug_callback_handle *callback_handle);
++    int (LIBUSB_CALL *hotplug_register_callback)(libusb_context *ctx, libusb_hotplug_event events, libusb_hotplug_flag flags, int vendor_id, int product_id, int dev_class, libusb_hotplug_callback_fn cb_fn, void *user_data, libusb_hotplug_callback_handle *callback_handle);
+     void (LIBUSB_CALL *hotplug_deregister_callback)(libusb_context *ctx, libusb_hotplug_callback_handle callback_handle);
+     const char * (LIBUSB_CALL *error_name)(int errcode);
+ /* *INDENT-ON* */ // clang-format on