git: cea999c5ffa6 - main - games/xmille: Fix build with llvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 10 Jun 2023 17:14:26 UTC
The branch main has been updated by bofh:

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

commit cea999c5ffa60cc29ef9589e8fb75d699d3af209
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-10 17:13:28 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-10 17:14:08 +0000

    games/xmille: Fix build with llvm15
    
    - Pet portclippy
---
 games/xmille/Makefile | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/games/xmille/Makefile b/games/xmille/Makefile
index b4a820a2e7d5..16ce68a7d218 100644
--- a/games/xmille/Makefile
+++ b/games/xmille/Makefile
@@ -8,14 +8,25 @@ DISTNAME=	${PORTNAME}
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	X window mille bourne game
 
-WRKSRC=		${WRKDIR}/Mille
+LICENSE=	NONE
 
 USES=		imake xorg
 USE_XORG=	x11 xext
-PLIST_FILES=	bin/xmille man/man1/xmille.1.gz
+
 MAKE_JOBS_UNSAFE=	yes
+
 CFLAGS+=	-Wno-error=return-type
 
+WRKSRC=		${WRKDIR}/Mille
+
+PLIST_FILES=	bin/xmille man/man1/xmille.1.gz
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
 post-extract:
 	@${FIND} ${WRKSRC} -name '*.[ao]' -delete