Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jul 2023 17:43:05 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: 07fa2c220efa - main - games/xbubble: Fix build with llvm16
Message-ID:  <202307201743.36KHh5Bc036352@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=07fa2c220efac446729e26ffb69f117bd648d1c4

commit 07fa2c220efac446729e26ffb69f117bd648d1c4
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-20 12:09:50 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-20 17:42:32 +0000

    games/xbubble: Fix build with llvm16
    
    - Utilize USES=localbase
    - Pet portclippy
    
    Sponsored by:   The FreeBSD Foundation
---
 games/xbubble/Makefile | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/games/xbubble/Makefile b/games/xbubble/Makefile
index 9fb1c5644d80..00e3542d40ee 100644
--- a/games/xbubble/Makefile
+++ b/games/xbubble/Makefile
@@ -13,17 +13,22 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libpng.so:graphics/png
 
-USES=		gmake xorg
+USES=		gmake localbase:ldflags xorg
 USE_XORG=	x11 xmu
-GNU_CONFIGURE=	yes
 
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
+GNU_CONFIGURE=	yes
 
 OPTIONS_DEFINE=	NLS
 OPTIONS_SUB=	yes
+
 NLS_USES=	gettext
 NLS_CONFIGURE_ENABLE=	nls
 NLS_LIBS=	-lintl
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 .include <bsd.port.mk>



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