git: 73a30b05a74a - main - graphics/opennurbs: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Jun 2023 00:10:00 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=73a30b05a74a0c11d27e564bd81820f2debce9a1
commit 73a30b05a74a0c11d27e564bd81820f2debce9a1
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-25 22:06:41 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-26 00:09:43 +0000
graphics/opennurbs: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
graphics/opennurbs/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/graphics/opennurbs/Makefile b/graphics/opennurbs/Makefile
index deae31cc60d4..58b6fb58d7c3 100644
--- a/graphics/opennurbs/Makefile
+++ b/graphics/opennurbs/Makefile
@@ -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