Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2023 12:27:44 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 270b10e23e2d - main - emulators/aranym: Fix build with llvm16
Message-ID:  <202308021227.372CRiZR039071@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

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

commit 270b10e23e2dca9b8dee067f179984dcf97fcdb9
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-02 12:06:58 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-02 12:27:29 +0000

    emulators/aranym: Fix build with llvm16
    
    Previous fix by the MAINTAINER actually do not work and it still fails
    to build.
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 emulators/aranym/Makefile | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/emulators/aranym/Makefile b/emulators/aranym/Makefile
index b8f26cb84adb..fa036f5eb2dd 100644
--- a/emulators/aranym/Makefile
+++ b/emulators/aranym/Makefile
@@ -20,7 +20,6 @@ USES=		gmake jpeg perl5 pkgconfig gl localbase:ldflags sdl shebangfix xorg
 USE_GL=		gl
 USE_SDL=	sdl2 image2
 USE_XORG=	x11
-USE_CXXSTD=	c++14 # work around error: ISO C++17 does not allow 'register' storage class specifier, see https://github.com/aranym/aranym/issues/106
 
 SHEBANG_FILES=	tools/arabridge
 
@@ -29,4 +28,10 @@ CONFIGURE_ARGS=	-disable-nat-debug --disable-nat-debug --enable-nfjpeg
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CPPFLAGS+=  -Dregister=
+.endif
+
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308021227.372CRiZR039071>