From: Thomas Frohwein Subject: Re: Update: devel/sdl3 to 3.4.0 To: ports@openbsd.org Date: Sun, 18 Jan 2026 15:45:48 -0800 On Thu, 15 Jan 2026 16:46:05 -0600 Matthew wrote: > Hi, > > It seems check_include_file in SDL3's build system doesn't work for > usbhid.h. This patch updates to 3.4.0 and gets gamepads working. Replying off-list for now; I haven't reviewed this yet. If you are interested in working on emulators +/- games, you may be interested in joining us on IRC: channel #openbsd-gaming on irc.libera.chat. Sometimes easier to get reviews, comments, momentum there > > Best, > Matthew > > commit - 04f87ba1101d5bc5a2ab0fc67685e47ab9c11919 > blob - 5d9db2c0aef27ff2d8f6e3c16c0a589f3c8ad4e6 > file + devel/sdl3/Makefile > --- devel/sdl3/Makefile > +++ devel/sdl3/Makefile > @@ -1,6 +1,6 @@ > COMMENT = cross-platform multimedia library > > -V = 3.2.20 > +V = 3.4.0 > DISTNAME = SDL3-${V} > PKGNAME = ${DISTNAME:L} > > commit - 04f87ba1101d5bc5a2ab0fc67685e47ab9c11919 > blob - 9986baa65140aea444d514694a2031fbf3cdea11 > file + devel/sdl3/distinfo > --- devel/sdl3/distinfo > +++ devel/sdl3/distinfo > @@ -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 commit - > 04f87ba1101d5bc5a2ab0fc67685e47ab9c11919 blob - > 5aa73a15732669fcfc8cdfa35db4b8d7a8e794bd file + > devel/sdl3/patches/patch-CMakeLists_txt --- > devel/sdl3/patches/patch-CMakeLists_txt +++ > devel/sdl3/patches/patch-CMakeLists_txt @@ -1,8 +1,8 @@ > 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) +@@ -359,7 +359,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) commit - > 04f87ba1101d5bc5a2ab0fc67685e47ab9c11919 blob - /dev/null file + > devel/sdl3/patches/patch-cmake_sdlchecks_cmake (mode 644) --- > /dev/null +++ devel/sdl3/patches/patch-cmake_sdlchecks_cmake @@ -0,0 > +1,12 @@ +Index: cmake/sdlchecks.cmake > +--- cmake/sdlchecks.cmake.orig > ++++ cmake/sdlchecks.cmake > +@@ -946,7 +946,7 @@ macro(CheckUSBHID) > + cmake_push_check_state() > + check_library_exists(usbhid hid_init "" LIBUSBHID) > + if(LIBUSBHID) > +- check_include_file(usbhid.h HAVE_USBHID_H) > ++ set(HAVE_USBHID_H TRUE) > + if(HAVE_USBHID_H) > + set(USB_CFLAGS "-DHAVE_USBHID_H") > + endif() >