git: cbd6385084ab - main - games/xfireworks: Fix build with llvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 03 Jun 2023 19:59:40 UTC
The branch main has been updated by bofh:

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

commit cbd6385084abcc520eb320fb691586ab0ac98cc4
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-03 19:58:54 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-03 19:59:25 +0000

    games/xfireworks: Fix build with llvm15
    
    - Adpot port
---
 games/xfireworks/Makefile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/games/xfireworks/Makefile b/games/xfireworks/Makefile
index aa0deb1b24f1..e461cfa1fb3a 100644
--- a/games/xfireworks/Makefile
+++ b/games/xfireworks/Makefile
@@ -4,7 +4,7 @@ PORTREVISION=	2
 CATEGORIES=	games
 MASTER_SITES=	http://kozos.jp/myfreesoft/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	Fireworks on X
 WWW=		https://kozos.jp/myfreesoft/
 
@@ -14,9 +14,15 @@ LICENSE_COMB=	dual
 USES=		xorg
 USE_XORG=	x11
 
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/xfireworks ${STAGEDIR}${PREFIX}/bin/xfireworks
 	${INSTALL_MAN} ${WRKSRC}/xfireworks.1 ${STAGEDIR}${MANPREFIX}/man/man1
 	${INSTALL_DATA} ${WRKSRC}/xfireworks.conf ${STAGEDIR}${PREFIX}/etc/xfireworks.conf.sample
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>