git: 100696aa37c3 - main - emulators/snes9x-gtk: Update to 1.62.3

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Wed, 03 May 2023 23:59:47 UTC
The branch main has been updated by jhale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=100696aa37c35279a41047d050f290859c33a9b3

commit 100696aa37c35279a41047d050f290859c33a9b3
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2023-05-03 20:52:51 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2023-05-03 23:59:42 +0000

    emulators/snes9x-gtk: Update to 1.62.3
    
    Build system has been switched upstream from Meson to CMake.
    
    Drop DEBUGGER option since it has no effect. Even with the definitions
    added to build the debugger, the build fails with multiple errors.
    
    https://github.com/snes9xgit/snes9x/releases/tag/1.62
    https://github.com/snes9xgit/snes9x/releases/tag/1.62.2
    https://github.com/snes9xgit/snes9x/releases/tag/1.62.3
---
 emulators/snes9x-gtk/Makefile  | 35 +++++++++++++++++++----------------
 emulators/snes9x-gtk/distinfo  | 16 +++++++++-------
 emulators/snes9x-gtk/pkg-plist |  1 +
 3 files changed, 29 insertions(+), 23 deletions(-)

diff --git a/emulators/snes9x-gtk/Makefile b/emulators/snes9x-gtk/Makefile
index 82d5c05a3365..ffc395b61d47 100644
--- a/emulators/snes9x-gtk/Makefile
+++ b/emulators/snes9x-gtk/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	snes9x
-DISTVERSION=	1.61
-PORTREVISION=	1
+DISTVERSION=	1.62.3
 CATEGORIES=	emulators
 PKGNAMESUFFIX=	-gtk
 
@@ -16,45 +15,49 @@ LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
 
 LIB_DEPENDS=	libminizip.so:archivers/minizip \
 		libepoxy.so:graphics/libepoxy \
-		libpng.so:graphics/png
+		libpng.so:graphics/png \
+		libharfbuzz.so:print/harfbuzz
 
-USES=		compiler:c++17-lang desktop-file-utils gettext \
-		gnome localbase:ldflags meson pkgconfig sdl xorg
+USES=		cmake compiler:c++17-lang desktop-file-utils gettext \
+		gnome localbase:ldflags pkgconfig sdl xorg
 USE_GITHUB=	yes
 GH_ACCOUNT=	snes9xgit
-GH_TUPLE=	KhronosGroup:glslang:bcf6a24:glslang/../shaders/glslang \
-		KhronosGroup:SPIRV-Cross:1458bae:spirv/../shaders/SPIRV-Cross
+GH_TUPLE=	KhronosGroup:SPIRV-Cross:4e2fdb2:spirv/../external/SPIRV-Cross \
+		KhronosGroup:Vulkan-Headers:a3dd265:vulkan/../external/vulkan-headers \
+		KhronosGroup:glslang:6d41bb9:glslang/../external/glslang
+
 USE_GNOME=	gdkpixbuf2 gtkmm30
 USE_SDL=	sdl2
 USE_XORG=	x11 xrandr xext
 
+CMAKE_ARGS=	-DCMAKE_INSTALL_LOCALEDIR:STRING="share/locale"
+CMAKE_OFF=	DANGEROUS_HACKS DEBUGGER
+
 PATCH_WRKSRC=	${WRKSRC}/..
 WRKSRC_SUBDIR=	gtk
 
 OPTIONS_MULTI=		SOUND
 OPTIONS_MULTI_SOUND=	ALSA OSS PORTAUDIO PULSEAUDIO
-OPTIONS_DEFINE=		DEBUGGER NLS WAYLAND XVIDEO
+OPTIONS_DEFINE=		NLS WAYLAND XVIDEO
 OPTIONS_DEFAULT=	OSS WAYLAND XVIDEO
 OPTIONS_SUB=		yes
 
 ALSA_LIB_DEPENDS=	libasound.so:audio/alsa-lib
-ALSA_MESON_TRUE=	alsa
-
-DEBUGGER_DESC=		Snes9X debugger
-DEBUGGER_MESON_TRUE=	debugger
+ALSA_CMAKE_BOOL=	USE_ALSA
 
-OSS_MESON_TRUE=		oss
+OSS_CMAKE_BOOL=		USE_OSS
 
 PORTAUDIO_LIB_DEPENDS=	libportaudio.so:audio/portaudio
-PORTAUDIO_MESON_TRUE=	portaudio
+PORTAUDIO_CMAKE_BOOL=	USE_PORTAUDIO
 
 PULSEAUDIO_LIB_DEPENDS=	libpulse.so:audio/pulseaudio
-PULSEAUDIO_MESON_TRUE=	pulseaudio
+PULSEAUDIO_CMAKE_BOOL=	USE_PULSEAUDIO
 
 WAYLAND_CATEGORIES=	wayland
 WAYLAND_LIB_DEPENDS=	libwayland-client.so:graphics/wayland
-WAYLAND_MESON_TRUE=	wayland
+WAYLAND_CMAKE_BOOL=	USE_WAYLAND
 
 XVIDEO_USE=		XORG=xv
+XVIDEO_CMAKE_BOOL=	USE_XV
 
 .include <bsd.port.mk>
diff --git a/emulators/snes9x-gtk/distinfo b/emulators/snes9x-gtk/distinfo
index dbc73d9a5a1e..99702f3561e1 100644
--- a/emulators/snes9x-gtk/distinfo
+++ b/emulators/snes9x-gtk/distinfo
@@ -1,7 +1,9 @@
-TIMESTAMP = 1663634942
-SHA256 (snes9xgit-snes9x-1.61_GH0.tar.gz) = ce7aad69c3041ba4c33690e9e7d21ceb1b9283d85759b1bf683dfb8c473511bb
-SIZE (snes9xgit-snes9x-1.61_GH0.tar.gz) = 3016890
-SHA256 (KhronosGroup-glslang-bcf6a24_GH0.tar.gz) = 89e768efce6c406bb4d0c00c14559106dba83542e3f5385648b5338a80db945c
-SIZE (KhronosGroup-glslang-bcf6a24_GH0.tar.gz) = 3183142
-SHA256 (KhronosGroup-SPIRV-Cross-1458bae_GH0.tar.gz) = f3eef2c0f46f8483bc61d687564c45ff6e9f4a38a7be5e6e4e5f59dd787a3785
-SIZE (KhronosGroup-SPIRV-Cross-1458bae_GH0.tar.gz) = 677457
+TIMESTAMP = 1683137147
+SHA256 (snes9xgit-snes9x-1.62.3_GH0.tar.gz) = 6912c69290ae854ea22b1b2c917d885b1c4a1a95acbe73cd4243ccb2071600fe
+SIZE (snes9xgit-snes9x-1.62.3_GH0.tar.gz) = 3423799
+SHA256 (KhronosGroup-SPIRV-Cross-4e2fdb2_GH0.tar.gz) = b4aa8d130ad20632830fede15cd2de7e30863d6965b981b35e3ea985729544d3
+SIZE (KhronosGroup-SPIRV-Cross-4e2fdb2_GH0.tar.gz) = 1717730
+SHA256 (KhronosGroup-Vulkan-Headers-a3dd265_GH0.tar.gz) = d6b371456cc3be8a06041064ff330556c36ff274291770d9230a681323d6cd2c
+SIZE (KhronosGroup-Vulkan-Headers-a3dd265_GH0.tar.gz) = 1831756
+SHA256 (KhronosGroup-glslang-6d41bb9_GH0.tar.gz) = 5ebd5be63e761f713934b43eec3b127f885c794f057977bde6fc94b86d2cf4dd
+SIZE (KhronosGroup-glslang-6d41bb9_GH0.tar.gz) = 3686862
diff --git a/emulators/snes9x-gtk/pkg-plist b/emulators/snes9x-gtk/pkg-plist
index bed7c959c5b8..09a7266e0c48 100644
--- a/emulators/snes9x-gtk/pkg-plist
+++ b/emulators/snes9x-gtk/pkg-plist
@@ -6,6 +6,7 @@ share/icons/hicolor/24x24/apps/snes9x.png
 share/icons/hicolor/256x256/apps/snes9x.png
 share/icons/hicolor/32x32/apps/snes9x.png
 share/icons/hicolor/64x64/apps/snes9x.png
+share/icons/hicolor/scalable/apps/snes9x.svg
 %%NLS%%share/locale/es/LC_MESSAGES/snes9x-gtk.mo
 %%NLS%%share/locale/fr_FR/LC_MESSAGES/snes9x-gtk.mo
 %%NLS%%share/locale/ja/LC_MESSAGES/snes9x-gtk.mo