1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

graphics/opennurbs: Fix build with llvm16

Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Muhammad Moinur Rahman 2023-06-26 00:06:41 +02:00
parent 85b9ede53b
commit 73a30b05a7

View File

@ -36,6 +36,12 @@ IGNORE= needs SRC_BASE to compile. Install base system sources and try again
MAKE_ARGS+= ON_GNU_OPTIMIZER_FLAGS="-g -fPIC"
.endif
post-patch:
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
@${REINPLACE_CMD} -e 's|D_GNU_SOURCE -I|D_GNU_SOURCE -Dregister= -I|g' \
${WRKSRC}/makefile
.endif
pre-build:
@${RM} -r ${WRKSRC}/zlib
${CP} -R ${LIBZ} ${WRKSRC}/zlib