git: e22da79b9875 - main - games/armagetronad: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 22 Jul 2023 06:11:32 UTC
The branch main has been updated by bofh:

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

commit e22da79b9875981c63cc9d818b505b92d490faff
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-22 05:26:58 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-22 06:11:20 +0000

    games/armagetronad: Fix build with llvm16
    
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 games/armagetronad/Makefile | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/games/armagetronad/Makefile b/games/armagetronad/Makefile
index 2b80cc50eb5b..883df738651d 100644
--- a/games/armagetronad/Makefile
+++ b/games/armagetronad/Makefile
@@ -16,22 +16,23 @@ BUILD_DEPENDS=	bash:shells/bash
 LIB_DEPENDS=	libpng.so:graphics/png
 
 USES=		autoreconf desktop-file-utils gl gmake gnome jpeg sdl
-GNU_CONFIGURE=	yes
 USE_CXXSTD=	c++14
-USE_SDL=	image mixer sdl
 USE_GL=		gl glu
 USE_GNOME=	libxml2
+USE_SDL=	image mixer sdl
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
-
+GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--disable-etc --disable-games --enable-music
+CONFIGURE_ENV=	CXXFLAGS="${CXXFLAGS}"
 
 BINARY_ALIAS=	sdl11-config=sdl-config
 
-OPTIONS_DEFINE=	DOCS
+WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
 
 PORTDOCS=	*
 
+OPTIONS_DEFINE=	DOCS
+
 post-install:
 	@${MV} ${STAGEDIR}${DATADIR}/desktop/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR}/${PORTNAME}.desktop
 .for SZ in 16 32 48