git: 527b8e664757 - main - devel/sdl20: update to 2.0.20

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Wed, 12 Jan 2022 12:50:44 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=527b8e66475743d8957e90a451cf408bb90b2ddb

commit 527b8e66475743d8957e90a451cf408bb90b2ddb
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-01-11 19:51:53 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-01-12 12:44:22 +0000

    devel/sdl20: update to 2.0.20
---
 devel/sdl20/Makefile                 |  2 +-
 devel/sdl20/distinfo                 |  6 +++---
 devel/sdl20/files/patch-noegl        | 12 ------------
 devel/sdl20/files/patch-wayland-1.20 | 35 -----------------------------------
 devel/sdl20/pkg-plist                |  2 +-
 5 files changed, 5 insertions(+), 52 deletions(-)

diff --git a/devel/sdl20/Makefile b/devel/sdl20/Makefile
index 2f114634c430..b12442d86b2e 100644
--- a/devel/sdl20/Makefile
+++ b/devel/sdl20/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	sdl2
-DISTVERSION=	2.0.18
+DISTVERSION=	2.0.20
 CATEGORIES=	devel
 MASTER_SITES=	https://www.libsdl.org/release/
 DISTNAME=	SDL2-${PORTVERSION}
diff --git a/devel/sdl20/distinfo b/devel/sdl20/distinfo
index e961a523f171..136a975e2f22 100644
--- a/devel/sdl20/distinfo
+++ b/devel/sdl20/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1638578013
-SHA256 (SDL2-2.0.18.tar.gz) = 94d40cd73dbfa10bb6eadfbc28f355992bb2d6ef6761ad9d4074eff95ee5711c
-SIZE (SDL2-2.0.18.tar.gz) = 7294032
+TIMESTAMP = 1641920427
+SHA256 (SDL2-2.0.20.tar.gz) = c56aba1d7b5b0e7e999e4a7698c70b63a3394ff9704b5f6e1c57e0c16f04dd06
+SIZE (SDL2-2.0.20.tar.gz) = 7207221
diff --git a/devel/sdl20/files/patch-noegl b/devel/sdl20/files/patch-noegl
deleted file mode 100644
index e7aa6fdee394..000000000000
--- a/devel/sdl20/files/patch-noegl
+++ /dev/null
@@ -1,12 +0,0 @@
---- src/video/kmsdrm/SDL_kmsdrmvideo.c.orig
-+++ src/video/kmsdrm/SDL_kmsdrmvideo.c
-@@ -1407,7 +1407,9 @@ KMSDRM_CreateSurfaces(_THIS, SDL_Window * window)
-     uint32_t surface_flags = GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING;
-     uint32_t width, height;
-
-+#if SDL_VIDEO_OPENGL_EGL
-     EGLContext egl_context;
-+#endif
- 
-    int ret = 0;
-
diff --git a/devel/sdl20/files/patch-wayland-1.20 b/devel/sdl20/files/patch-wayland-1.20
deleted file mode 100644
index 724894a1b714..000000000000
--- a/devel/sdl20/files/patch-wayland-1.20
+++ /dev/null
@@ -1,35 +0,0 @@
-https://github.com/libsdl-org/sdl/commit/e2ade2bfc46d
-
-ld: error: undefined symbol: wl_proxy_marshal_flags
->>> referenced by SDL_waylanddatamanager.c
->>>               build/.libs/SDL_waylanddatamanager.o:(Wayland_data_source_destroy)
->>> referenced by SDL_waylanddatamanager.c
->>>               build/.libs/SDL_waylanddatamanager.o:(Wayland_data_offer_receive)
->>> referenced by SDL_waylanddatamanager.c
->>>               build/.libs/SDL_waylanddatamanager.o:(Wayland_data_offer_destroy)
->>> referenced 109 more times
-
---- src/video/wayland/SDL_waylanddyn.h.orig	2020-03-11 01:36:18 UTC
-+++ src/video/wayland/SDL_waylanddyn.h
-@@ -75,6 +75,8 @@ void SDL_WAYLAND_UnloadSymbols(void);
- #define wl_proxy_create (*WAYLAND_wl_proxy_create)
- #define wl_proxy_destroy (*WAYLAND_wl_proxy_destroy)
- #define wl_proxy_marshal (*WAYLAND_wl_proxy_marshal)
-+#define wl_proxy_marshal_flags (*WAYLAND_wl_proxy_marshal_flags)
-+#define wl_proxy_marshal_array_flags (*WAYLAND_wl_proxy_marshal_array_flags)
- #define wl_proxy_set_user_data (*WAYLAND_wl_proxy_set_user_data)
- #define wl_proxy_get_user_data (*WAYLAND_wl_proxy_get_user_data)
- #define wl_proxy_get_version (*WAYLAND_wl_proxy_get_version)
---- src/video/wayland/SDL_waylandsym.h.orig	2020-03-11 01:36:18 UTC
-+++ src/video/wayland/SDL_waylandsym.h
-@@ -71,6 +71,10 @@ SDL_WAYLAND_SYM(struct wl_proxy *, wl_proxy_marshal_co
- SDL_WAYLAND_MODULE(WAYLAND_CLIENT_1_10)
- SDL_WAYLAND_SYM(struct wl_proxy *, wl_proxy_marshal_constructor_versioned, (struct wl_proxy *proxy, uint32_t opcode, const struct wl_interface *interface, uint32_t version, ...))
- 
-+SDL_WAYLAND_MODULE(WAYLAND_CLIENT_1_20)
-+SDL_WAYLAND_SYM(struct wl_proxy*, wl_proxy_marshal_flags, (struct wl_proxy *proxy, uint32_t opcode, const struct wl_interface *interfac, uint32_t version, uint32_t flags, ...))
-+SDL_WAYLAND_SYM(struct wl_proxy*, wl_proxy_marshal_array_flags, (struct wl_proxy *proxy, uint32_t opcode, const struct wl_interface *interface, uint32_t version,  uint32_t flags, union wl_argument *args))
-+
- SDL_WAYLAND_INTERFACE(wl_seat_interface)
- SDL_WAYLAND_INTERFACE(wl_surface_interface)
- SDL_WAYLAND_INTERFACE(wl_shm_pool_interface)
diff --git a/devel/sdl20/pkg-plist b/devel/sdl20/pkg-plist
index 3c259708c4e0..e8a808000fd1 100644
--- a/devel/sdl20/pkg-plist
+++ b/devel/sdl20/pkg-plist
@@ -79,7 +79,7 @@ include/SDL2/close_code.h
 lib/cmake/SDL2/sdl2-config-version.cmake
 lib/cmake/SDL2/sdl2-config.cmake
 lib/libSDL2-2.0.so.0
-lib/libSDL2-2.0.so.0.18.0
+lib/libSDL2-2.0.so.0.18.2
 lib/libSDL2.a
 lib/libSDL2.so
 lib/libSDL2_test.a