Skip to content

Commit

Permalink
science/cgnslib: 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 23, 2023
1 parent a325c1f commit 876c012
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions science/cgnslib/Makefile
Expand Up @@ -52,6 +52,12 @@ TOOLS_CMAKE_BOOL= CGNS_BUILD_CGNSTOOLS
TOOLS_CMAKE_ON= -DTCL_INCLUDE_PATH:STRING="${TCL_INCLUDEDIR}" \
-DTK_INCLUDE_PATH:STRING="${TK_INCLUDEDIR}"

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif

post-install:
${RLN} ${STAGEDIR}${PREFIX}/lib/libcgns.so.${PORTVERSION:R} \
${STAGEDIR}${PREFIX}/lib/libcgns.so.${PORTVERSION:R:R}
Expand Down

0 comments on commit 876c012

Please sign in to comment.