git: 4d77cd2d4d94 - main - games/prboom-plus: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Jul 2023 17:43:19 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=4d77cd2d4d941888c1bfcfd4846b35533eaa09d6 commit 4d77cd2d4d941888c1bfcfd4846b35533eaa09d6 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-07-20 14:17:43 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-07-20 17:42:35 +0000 games/prboom-plus: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- games/prboom-plus/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/games/prboom-plus/Makefile b/games/prboom-plus/Makefile index 62db9b0106ab..0b0c62e51e15 100644 --- a/games/prboom-plus/Makefile +++ b/games/prboom-plus/Makefile @@ -33,6 +33,12 @@ OPENGL_USES= gl OPENGL_USE= GL=glu OPENGL_CONFIGURE_ENABLE= gl +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091 +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + post-patch: @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} \ -e '/^gamesdir/s|/games|/bin|' \