git: aeb075624622 - main - games/xtrojka: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Jul 2023 19:58:06 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=aeb0756246224ffe7dd3e391a1f78e50d7a1dc36
commit aeb0756246224ffe7dd3e391a1f78e50d7a1dc36
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-21 19:30:18 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-21 19:57:53 +0000
games/xtrojka: Fix build with llvm16
- Pet portclippy
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
games/xtrojka/Makefile | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/games/xtrojka/Makefile b/games/xtrojka/Makefile
index cdf36f346d59..5ad5f0dfd1cc 100644
--- a/games/xtrojka/Makefile
+++ b/games/xtrojka/Makefile
@@ -10,10 +10,20 @@ COMMENT= Game of skill similar to T*tris
USES= xorg
USE_XORG= x11 xt xorgproto xaw xmu xext
+
MAKE_JOBS_UNSAFE= yes
-WRKSRC= ${WRKDIR}/${DISTNAME}
INSTALL_TARGET= install PREFIX=${STAGEDIR}${PREFIX}
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+.include <bsd.port.options.mk>
+
+post-patch:
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+ @${REINPLACE_CMD} -e 's|CFLAGS=|CFLAGS=-Wno-error=incompatible-function-pointer-types |g' \
+ ${WRKSRC}/Makefile
+.endif
+
pre-install:
${MKDIR} ${STAGEDIR}${PREFIX}/share/xtrojka