head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.2 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.1.0.6 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.4 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.2 pkgsrc-2025Q2-base:1.1; locks; strict; comment @# @; 1.2 date 2026.02.24.08.32.43; author adam; state Exp; branches; next 1.1; commitid sLPf7k4Rl2ZpDBvG; 1.1 date 2025.04.10.16.47.53; author nia; state Exp; branches; next ; commitid PeMDimRXZBXOEwQF; desc @@ 1.2 log @SDL3: updated to 3.4.2 3.4.2 This is a stable bugfix release, with the following changes: Enabled Vulkan support on OpenBSD Don't include KHR_portability_enumeration by default on macOS Added support for GPU ARGB1555 (B5G5R5A1_UNORM) textures with Direct3D11 Fixed D3D12 DSV creation for array/cube/cube-array depth textures Added SDL_PROP_GPU_DEVICE_CREATE_METAL_ALLOW_MACFAMILY1_BOOLEAN to allow using the GPU API with older Mac hardware Added SDL_HINT_OPENGL_FORCE_SRGB_FRAMEBUFFER to force specific sRGB behavior for OpenGL and OpenGL ES Fixed long startup time on Windows when some non-compliant input devices are present Fixed a crash at startup when the broken EZFRD64.DLL is present Added support for the Razer Raiju V5 Pro Fixed a divide by zero when using Nintendo Switch 2 controllers Fixed hang sending output reports to the NVIDIA SHIELD Controller on macOS Fixed various controllers showing up twice on macOS Fixed handling GameCube adapters in PC mode on Linux and macOS Added share button mapping to Xbox Series X controller on Android Added support for the third stylus button on Android Fixed high audio latency on Android Fixed only one mouse button being usable at a time on Emscripten Fixed SDL_SetWindowIcon on single-threaded Emscripten builds Fixed SDL_GlobDirectory on iOS and Android Fixed some textures rendering too small on the PSP @ text @$NetBSD: patch-CMakeLists.txt,v 1.1 2025/04/10 16:47:53 nia Exp $ - Disable precompiled headers with GCC, incompatible with -fPIC. - Treat FreeBSD like any other pkgsrc platform. --- CMakeLists.txt.orig 2026-02-20 23:12:29.000000000 +0000 +++ CMakeLists.txt @@@@ -4001,7 +4001,7 @@@@ if(SDL_SHARED) set_property(TARGET SDL3-shared PROPERTY INTERFACE_SDL_VERSION "SDL${SDL3_VERSION_MAJOR}") set_property(TARGET SDL3-shared APPEND PROPERTY EXPORT_PROPERTIES "SDL_FULL_VERSION") set_property(TARGET SDL3-shared PROPERTY SDL_FULL_VERSION "${PROJECT_VERSION}") - if(NOT CMAKE_VERSION VERSION_LESS "3.16") + if(NOT CMAKE_VERSION VERSION_LESS "3.16" AND NOT USE_GCC) target_precompile_headers(SDL3-shared PRIVATE "$<$,$>:${PROJECT_SOURCE_DIR}/src/SDL_internal.h>") endif() endif() @@@@ -4027,7 +4027,7 @@@@ if(SDL_STATIC) set_property(TARGET SDL3-static PROPERTY INTERFACE_SDL_VERSION "SDL${SDL3_VERSION_MAJOR}") set_property(TARGET SDL3-static APPEND PROPERTY EXPORT_PROPERTIES "SDL_FULL_VERSION") set_property(TARGET SDL3-static PROPERTY SDL_FULL_VERSION "${PROJECT_VERSION}") - if(NOT CMAKE_VERSION VERSION_LESS "3.16") + if(NOT CMAKE_VERSION VERSION_LESS "3.16" AND NOT USE_GCC) target_precompile_headers(SDL3-static PRIVATE "$<$,$>:${PROJECT_SOURCE_DIR}/src/SDL_internal.h>") endif() endif() @@@@ -4072,7 +4072,7 @@@@ else() endif() set(SDL_INSTALL_CMAKEDIR_ROOT "${SDL_INSTALL_CMAKEDIR_ROOT_DEFAULT}" CACHE STRING "Root folder where to install SDL3Config.cmake related files (SDL3 subfolder for MSVC projects)") -if(FREEBSD) +if(FALSE) # FreeBSD uses ${PREFIX}/libdata/pkgconfig set(SDL_PKGCONFIG_INSTALLDIR "libdata/pkgconfig") else() @ 1.1 log @SDL3: initial import of SDL3 Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators. drecklypkg ci confirms this builds on: FreeBSD, NetBSD, Linux (modern & retro), macOS, illumos @ text @d1 1 a1 1 $NetBSD$ d6 1 a6 1 --- CMakeLists.txt.orig 2025-03-31 20:12:19.000000000 +0000 d8 1 a8 3 @@@@ -3460,7 +3460,7 @@@@ if(SDL_SHARED) set_property(TARGET SDL3-shared PROPERTY INTERFACE_SDL3_SHARED TRUE) set_property(TARGET SDL3-shared APPEND PROPERTY COMPATIBLE_INTERFACE_STRING "SDL_VERSION") d10 2 d17 1 a17 3 @@@@ -3484,7 +3484,7 @@@@ if(SDL_STATIC) set_property(TARGET SDL3-static PROPERTY INTERFACE_SDL3_SHARED FALSE) set_property(TARGET SDL3-static APPEND PROPERTY COMPATIBLE_INTERFACE_STRING "SDL_VERSION") d19 2 d26 1 a26 1 @@@@ -3529,7 +3529,7 @@@@ else() @