On 2026/02/14 21:19, yaydn@protonmail.com wrote:
> Does the SHARED_LIBS need a (major or minor) bump in the Makefile for
> sdl3? I am not sure which if any would be appropriate.
minor bump.
> sdl3-3.4.0(devel/sdl3):
> Missing: Xtst.11 (/usr/local/lib/libSDL3.so.0.0) (system lib)
> Missing: sndio.8 (/usr/local/lib/libSDL3.so.0.0) (system lib)
> Missing: usbhid.7 (/usr/local/lib/libSDL3.so.0.0) (system lib)
> Extra: sndio.9
> WANTLIB += Xtst sndio usbhid
> *** Error 1 in target 'port-lib-depends-check' (ignored)
Xtst and usbhid should be added, but you have something out of sync with
sndio on your machine (probably will be fixed after updating packages)
this looks like the right diff I think?
Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/sdl3/Makefile,v
diff -u -p -r1.3 Makefile
--- Makefile 23 Aug 2025 21:08:28 -0000 1.3
+++ Makefile 18 Feb 2026 14:47:07 -0000
@@ -1,10 +1,10 @@
COMMENT = cross-platform multimedia library
-V = 3.2.20
+V = 3.4.0
DISTNAME = SDL3-${V}
PKGNAME = ${DISTNAME:L}
-SHARED_LIBS += SDL3 0.0 # 3.2.18
+SHARED_LIBS += SDL3 0.1
CATEGORIES = devel
HOMEPAGE = https://libsdl.org/
@@ -13,9 +13,9 @@ MAINTAINER = Thomas Frohwein <thfr@open
# zlib
PERMIT_PACKAGE = Yes
-WANTLIB += EGL X11 Xcursor Xext Xfixes Xi Xrandr Xrender Xss iconv
-WANTLIB += m pthread sndio wayland-client wayland-cursor wayland-egl
-WANTLIB += xkbcommon
+WANTLIB += EGL X11 Xcursor Xext Xfixes Xi Xrandr Xrender Xss Xtst
+WANTLIB += iconv m pthread sndio usbhid wayland-client wayland-cursor
+WANTLIB += wayland-egl xkbcommon
SITES = https://github.com/libsdl-org/SDL/releases/download/release-${V}/
Index: distinfo
===================================================================
RCS file: /cvs/ports/devel/sdl3/distinfo,v
diff -u -p -r1.2 distinfo
--- distinfo 23 Aug 2025 21:08:28 -0000 1.2
+++ distinfo 18 Feb 2026 14:47:07 -0000
@@ -1,2 +1,2 @@
-SHA256 (SDL3-3.2.20.tar.gz) = RnYArgkN0oYW+jc2n69OMUMZj/HaN3KbVSE35H91Gmc=
-SIZE (SDL3-3.2.20.tar.gz) = 15895143
+SHA256 (SDL3-3.4.0.tar.gz) = CCy/X0KeDYCCD2jcK1B6lNTMG05wgXsRm7uOxqaVhLg=
+SIZE (SDL3-3.4.0.tar.gz) = 15567602
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: /cvs/ports/devel/sdl3/patches/patch-CMakeLists_txt,v
diff -u -p -r1.1.1.1 patch-CMakeLists_txt
--- patches/patch-CMakeLists_txt 7 Aug 2025 16:32:50 -0000 1.1.1.1
+++ patches/patch-CMakeLists_txt 18 Feb 2026 14:47:07 -0000
@@ -1,8 +1,16 @@
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
-@@ -376,7 +376,7 @@ dep_option(SDL_RENDER_D3D12 "Enable the Direct3
- dep_option(SDL_RENDER_METAL "Enable the Metal render driver" ON "SDL_RENDER;${APPLE}" OFF)
+@@ -46,6 +46,7 @@ endif()
+
+ include(CheckLibraryExists)
+ include(CheckIncludeFile)
++include(CheckIncludeFiles)
+ include(CheckLanguage)
+ include(CheckSymbolExists)
+ include(CheckCSourceCompiles)
+@@ -367,7 +368,7 @@ dep_option(SDL_RENDER_D3D12 "Enable the Direct3
+ dep_option(SDL_RENDER_METAL "Enable the Metal render driver" ON "SDL_RENDER;APPLE" OFF)
dep_option(SDL_RENDER_GPU "Enable the SDL_GPU render driver" ON "SDL_RENDER;SDL_GPU" OFF)
dep_option(SDL_VIVANTE "Use Vivante EGL video driver" ON "${UNIX_SYS};SDL_CPU_ARM32" OFF)
-dep_option(SDL_VULKAN "Enable Vulkan support" ON "SDL_VIDEO;ANDROID OR APPLE OR LINUX OR FREEBSD OR WINDOWS" OFF)
Index: patches/patch-cmake_sdlchecks_cmake
===================================================================
RCS file: patches/patch-cmake_sdlchecks_cmake
diff -N patches/patch-cmake_sdlchecks_cmake
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-cmake_sdlchecks_cmake 18 Feb 2026 14:47:07 -0000
@@ -0,0 +1,30 @@
+Index: cmake/sdlchecks.cmake
+--- cmake/sdlchecks.cmake.orig
++++ cmake/sdlchecks.cmake
+@@ -1113,22 +1113,22 @@ macro(CheckUSBHID)
+ cmake_push_check_state()
+ check_library_exists(usbhid hid_init "" LIBUSBHID)
+ if(LIBUSBHID)
+- check_include_file(usbhid.h HAVE_USBHID_H)
++ check_include_files("stdint.h;usbhid.h" HAVE_USBHID_H)
+ if(HAVE_USBHID_H)
+ set(USB_CFLAGS "-DHAVE_USBHID_H")
+ endif()
+
+- check_include_file(libusbhid.h HAVE_LIBUSBHID_H)
++ check_include_files("stdint.h;libusbhid.h" HAVE_LIBUSBHID_H)
+ if(HAVE_LIBUSBHID_H)
+ string(APPEND USB_CFLAGS " -DHAVE_LIBUSBHID_H")
+ endif()
+ set(USB_LIBS ${USB_LIBS} usbhid)
+ else()
+- check_include_file(usb.h HAVE_USB_H)
++ check_include_files("stdint.h;usb.h" HAVE_USB_H)
+ if(HAVE_USB_H)
+ set(USB_CFLAGS "-DHAVE_USB_H")
+ endif()
+- check_include_file(libusb.h HAVE_LIBUSB_H)
++ check_include_files("stdint.h;libusb.h" HAVE_LIBUSB_H)
+ if(HAVE_LIBUSB_H)
+ string(APPEND USB_CFLAGS " -DHAVE_LIBUSB_H")
+ endif()
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/devel/sdl3/pkg/PLIST,v
diff -u -p -r1.2 PLIST
--- pkg/PLIST 23 Aug 2025 21:08:28 -0000 1.2
+++ pkg/PLIST 18 Feb 2026 14:47:07 -0000
@@ -13,6 +13,7 @@ include/SDL3/SDL_close_code.h
include/SDL3/SDL_copying.h
include/SDL3/SDL_cpuinfo.h
include/SDL3/SDL_dialog.h
+include/SDL3/SDL_dlopennote.h
include/SDL3/SDL_egl.h
include/SDL3/SDL_endian.h
include/SDL3/SDL_error.h
No comments:
Post a Comment