git: 812ce11abdb1 - main - games/scourge: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 21 Jul 2023 14:45:44 UTC
The branch main has been updated by bofh:

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

commit 812ce11abdb11b0e99837911e2cc0c41b3228557
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-21 14:24:38 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-21 14:45:29 +0000

    games/scourge: Fix build with llvm16
    
    - Add LICENSE GPLv2
    - Pet portclippy
    
    Sponsored by:   The FreeBSD Foundation
---
 games/scourge/Makefile | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/games/scourge/Makefile b/games/scourge/Makefile
index b5aa965b69e3..ce63d88fd6de 100644
--- a/games/scourge/Makefile
+++ b/games/scourge/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	scourge
 PORTVERSION=	0.21.1
-PORTREVISION=	14
+PORTREVISION=	15
 CATEGORIES=	games
 MASTER_SITES=	SF
 DISTNAME=	${PORTNAME}-${PORTVERSION:S/$/.src/}
@@ -10,27 +10,33 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Rogue-like game
 WWW=		http://scourge.sourceforge.net/
 
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 LIB_DEPENDS=	libfreetype.so:print/freetype2
 RUN_DEPENDS=	${LOCALBASE}/${DATADIR_REL}/config/scourge.cfg:games/scourge-data
 
 USES=		autoreconf compiler gettext gl gmake localbase pkgconfig sdl
-GNU_CONFIGURE=	yes
+USE_CXXSTD=	c++14
 USE_GL=		gl
 USE_SDL=	sdl image mixer net ttf
 
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--with-data-dir=${DATADIR}
+
 CXXFLAGS+=	${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
 CXXFLAGS_clang=	-Wno-c++11-narrowing
 
-CONFIGURE_ARGS=	--with-data-dir=${DATADIR}
-
+BINARY_ALIAS=	freetype-config=true
 SUB_FILES=	pkg-message
-PLIST_FILES=	bin/${PORTNAME}
+
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
+PLIST_FILES=	bin/${PORTNAME}
+
 OPTIONS_DEFINE=	DEBUG
-DEBUG_CONFIGURE_ENABLE=	debug
 
-BINARY_ALIAS=	freetype-config=true
+DEBUG_CONFIGURE_ENABLE=	debug
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|GLvoid|void|g' ${WRKSRC}/src/sdlhandler.cpp ${WRKSRC}/src/sdlhandler.h