git: d865af588042 - main - games/gemrb: USE_GCC again to fix crash

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Mon, 30 Sep 2024 09:08:58 UTC
The branch main has been updated by pkubaj:

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

commit d865af588042c2ed517b361e3ff99402e4946c48
Author:     Stefan Schlosser <bsdcode@disroot.org>
AuthorDate: 2024-07-25 15:58:16 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-09-30 09:08:37 +0000

    games/gemrb: USE_GCC again to fix crash
    
    - readd USE_GCC=yes (https://github.com/gemrb/gemrb/issues/2074)
    - use compiler:c++14-lang (per gemrb 0.9.3 release notes)
    - update pkg-plist (two files are depending on OPENGL option now)
    - mention USE_TEST and USE_TRACY build options for completeness
---
 games/gemrb/Makefile  | 8 ++++++--
 games/gemrb/pkg-plist | 4 ++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/games/gemrb/Makefile b/games/gemrb/Makefile
index e8adfd507eed..3ab66a665a91 100644
--- a/games/gemrb/Makefile
+++ b/games/gemrb/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=		gemrb
 DISTVERSIONPREFIX=	v
 DISTVERSION=		0.9.3
+PORTREVISION=		1
 CATEGORIES=		games emulators
 
 MAINTAINER=	pkubaj@FreeBSD.org
@@ -10,8 +11,9 @@ WWW=		https://www.gemrb.org/
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		cmake compiler:c++11-lang iconv python sdl shebangfix
+USES=		cmake compiler:c++14-lang iconv python sdl shebangfix
 SHEBANG_FILES=	admin/extend2da.py
+USE_GCC=	yes # https://github.com/gemrb/gemrb/issues/2074
 USE_GITHUB=	yes
 USE_LDCONFIG=	yes
 USE_SDL=	sdl2
@@ -26,7 +28,9 @@ CMAKE_OFF=	DISABLE_WERROR \
 		INSOURCEBUILD \
 		STATIC_LINK \
 		USE_LIBVLC \
-		USE_SDL_CONTROLLER_API
+		USE_SDL_CONTROLLER_API \
+		USE_TESTS \
+		USE_TRACY
 
 SUB_FILES=	pkg-message
 
diff --git a/games/gemrb/pkg-plist b/games/gemrb/pkg-plist
index 272eaf20dbf9..c46d519e60a4 100644
--- a/games/gemrb/pkg-plist
+++ b/games/gemrb/pkg-plist
@@ -326,8 +326,8 @@ share/applications/gemrb.desktop
 %%DATADIR%%/GUIScripts/pst/Start.py
 %%DATADIR%%/GUIScripts/test/Autodetect.py
 %%DATADIR%%/GUIScripts/test/Start.py
-%%DATADIR%%/Shaders/BlitRGBA.glsl
-%%DATADIR%%/Shaders/SDLTextureV.glsl
+%%OPENGL%%%%DATADIR%%/Shaders/BlitRGBA.glsl
+%%OPENGL%%%%DATADIR%%/Shaders/SDLTextureV.glsl
 %%DATADIR%%/demo/README.md
 %%DATADIR%%/demo/TODO
 %%DATADIR%%/demo/chitin.key