git: 8a4ebd2bf65d - main - games/openjazz: Update to 20240919

From: Ganael LAPLANCHE <martymac_at_FreeBSD.org>
Date: Mon, 23 Sep 2024 14:49:09 UTC
The branch main has been updated by martymac:

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

commit 8a4ebd2bf65db3ed668b97bab3bb4dbea8b32c9c
Author:     Ganael LAPLANCHE <martymac@FreeBSD.org>
AuthorDate: 2024-09-23 14:47:11 +0000
Commit:     Ganael LAPLANCHE <martymac@FreeBSD.org>
CommitDate: 2024-09-23 14:48:46 +0000

    games/openjazz: Update to 20240919
    
    Also, switch to using CMake and sdl2.
---
 games/openjazz/Makefile | 15 ++++++---------
 games/openjazz/distinfo |  6 +++---
 2 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/games/openjazz/Makefile b/games/openjazz/Makefile
index ff032928bbd7..60179b5fff16 100644
--- a/games/openjazz/Makefile
+++ b/games/openjazz/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	openjazz
-PORTVERSION=	20231028
+PORTVERSION=	20240919
 CATEGORIES=	games
 
 MAINTAINER=	martymac@FreeBSD.org
@@ -8,25 +8,22 @@ WWW=		http://alister.eu/jazz/oj
 
 LICENSE=	GPLv2
 
-USES=	dos2unix gmake sdl xorg
+USES=	cmake dos2unix sdl xorg
+USE_SDL=	sdl2
 USE_XORG=	x11 xext xrandr xrender xau xdmcp
-USE_SDL=	sdl
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	AlisterT
 
-DOS2UNIX_REGEX=	.*\.(h|cpp)
-ALL_TARGET=	OpenJazz
+CMAKE_ARGS+=	-DDATAPATH:STRING=${DATADIR}
 
-CXXFLAGS+=	-I${LOCALBASE}/include `${SDL_CONFIG} --cflags` \
-		-DDATAPATH=\\\"${DATADIR}/\\\" -DHOMEDIR
-LDFLAGS+=	-lpthread -L${LOCALBASE}/lib `${SDL_CONFIG} --libs`
+DOS2UNIX_REGEX=	.*\.(h|cpp)
 
 SUB_FILES=	pkg-message
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${DATADIR}
 	${TOUCH} ${STAGEDIR}${DATADIR}/.keepme
-	${INSTALL_PROGRAM} ${WRKSRC}/OpenJazz ${STAGEDIR}${PREFIX}/bin/openjazz
+	${INSTALL_PROGRAM} ${CONFIGURE_WRKSRC}/OpenJazz ${STAGEDIR}${PREFIX}/bin/openjazz
 
 .include <bsd.port.mk>
diff --git a/games/openjazz/distinfo b/games/openjazz/distinfo
index 57e0093ced4e..f009bf367feb 100644
--- a/games/openjazz/distinfo
+++ b/games/openjazz/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1698694703
-SHA256 (AlisterT-openjazz-20231028_GH0.tar.gz) = c45ff414dc846563ad7ae4b6c848f938ab695eb4ae6f958856b3fa409da0b8ac
-SIZE (AlisterT-openjazz-20231028_GH0.tar.gz) = 417317
+TIMESTAMP = 1726862171
+SHA256 (AlisterT-openjazz-20240919_GH0.tar.gz) = c50193b630c375840026d729bb9dda6c7210b1523e62d7ae019ce2e37f806627
+SIZE (AlisterT-openjazz-20240919_GH0.tar.gz) = 424018