[Bug 295172] devel/raylib: update to 6.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 10 May 2026 23:10:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295172

--- Comment #1 from Vladimir Druzenko <vvd@FreeBSD.org> ---
Switch to SDL3.

Upstream preferred SDL3 over SDL2 (cmake/LibraryConfigurations.cmake):
                # First try SDL3
                find_package(SDL3 QUIET)
                if(SDL3_FOUND)
                        message(STATUS "Found SDL3 via find_package()")
                        set(LIBS_PUBLIC SDL3::SDL3)
                        set(RAYLIB_DEPENDENCIES
"${RAYLIB_DEPENDENCIES}\nfind_dependency(SDL3 REQUIRED)")
                        set(PLATFORM_CPP "PLATFORM_DESKTOP_SDL")
                        add_compile_definitions(USING_SDL3_PACKAGE)
                else()
                        # Fallback to SDL2
                        find_package(SDL2 REQUIRED)
                        message(STATUS "Found SDL2 via find_package()")
                        set(PLATFORM_CPP "PLATFORM_DESKTOP_SDL")
                        set(LIBS_PUBLIC SDL2::SDL2)
                        set(RAYLIB_DEPENDENCIES
"${RAYLIB_DEPENDENCIES}\nfind_dependency(SDL2 REQUIRED)")
                        add_compile_definitions(USING_SDL2_PACKAGE)
                endif()

Patch:
-USE_SDL=        sdl2
+USE_SDL=        sdl3

-- 
You are receiving this mail because:
You are the assignee for the bug.