1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00

games/prboom-plus: Fix build with llvm16

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-07-20 16:17:43 +02:00
parent 42e5fc480c
commit 4d77cd2d4d

View File

@ -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|' \