git: 43c1ea15875d - main - devel/sdl20: fix vulkan support

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Thu, 25 Jul 2024 11:37:26 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=43c1ea15875dbc5dbc386269b6a0747295741457

commit 43c1ea15875dbc5dbc386269b6a0747295741457
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2024-07-25 11:36:40 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2024-07-25 11:37:10 +0000

    devel/sdl20: fix vulkan support
    
    PR:             280278
    Reported by:    a.hasumoto@gmail.com
---
 devel/sdl20/Makefile                   |  1 +
 devel/sdl20/files/patch-CMakeLists.txt | 11 ++++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/devel/sdl20/Makefile b/devel/sdl20/Makefile
index 2fc297e69921..5b06670fdb3a 100644
--- a/devel/sdl20/Makefile
+++ b/devel/sdl20/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	sdl2
 DISTVERSION=	2.30.5
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	https://github.com/libsdl-org/SDL/releases/download/release-${DISTVERSION}/ \
 		https://www.libsdl.org/release/
diff --git a/devel/sdl20/files/patch-CMakeLists.txt b/devel/sdl20/files/patch-CMakeLists.txt
index 10acb6ef7a95..beba94b6dd42 100644
--- a/devel/sdl20/files/patch-CMakeLists.txt
+++ b/devel/sdl20/files/patch-CMakeLists.txt
@@ -1,4 +1,4 @@
---- CMakeLists.txt.orig	2024-05-01 16:16:27 UTC
+--- CMakeLists.txt.orig	2024-07-03 21:23:37 UTC
 +++ CMakeLists.txt
 @@ -404,12 +404,12 @@ set_option(SDL_ASSEMBLY            "Enable assembly ro
  option_string(SDL_ASSERTIONS "Enable internal sanity checks (auto/disabled/release/enabled/paranoid)" "auto")
@@ -15,6 +15,15 @@
  dep_option(SDL_ALTIVEC             "Use Altivec assembly routines" ON "SDL_ASSEMBLY" OFF)
  dep_option(SDL_ARMSIMD             "Use SIMD assembly blitters on ARM" OFF "SDL_ASSEMBLY;SDL_CPU_ARM32" OFF)
  dep_option(SDL_ARMNEON             "Use NEON assembly blitters on ARM" OFF "SDL_ASSEMBLY;SDL_CPU_ARM32" OFF)
+@@ -474,7 +474,7 @@ set_option(SDL_VIVANTE             "Use Vivante EGL vi
+ set_option(SDL_RENDER_D3D          "Enable the Direct3D render driver" ${WINDOWS})
+ set_option(SDL_RENDER_METAL        "Enable the Metal render driver" ${APPLE})
+ set_option(SDL_VIVANTE             "Use Vivante EGL video driver" ${UNIX_SYS})
+-dep_option(SDL_VULKAN              "Enable Vulkan support" ON "ANDROID OR APPLE OR LINUX OR WINDOWS" OFF)
++dep_option(SDL_VULKAN              "Enable Vulkan support" ON "ANDROID OR APPLE OR LINUX OR WINDOWS OR FREEBSD" OFF)
+ set_option(SDL_METAL               "Enable Metal support" ${APPLE})
+ set_option(SDL_KMSDRM              "Use KMS DRM video driver" ${UNIX_SYS})
+ dep_option(SDL_KMSDRM_SHARED       "Dynamically load KMS DRM support" ON "SDL_KMSDRM" OFF)
 @@ -758,7 +758,7 @@ if(SDL_ASSEMBLY)
      # TODO: Those all seem to be quite GCC specific - needs to be
      # reworked for better compiler support