Skip to content

Commit

Permalink
graphics/opennurbs: Fix build with llvm16
Browse files Browse the repository at this point in the history
Approved by:	portmgr (blanket)
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
5u623l20 committed Jun 26, 2023
1 parent 85b9ede commit 73a30b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions graphics/opennurbs/Makefile
Expand Up @@ -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
Expand Down

0 comments on commit 73a30b0

Please sign in to comment.