1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-01 01:17:02 +00:00

math/igraph: Fix build on FreeBSD-13.0

This commit is contained in:
Wen Heping 2022-01-04 15:57:49 +08:00
parent f86ca1c8db
commit 3c887a65b8
2 changed files with 16 additions and 1 deletions

View File

@ -27,4 +27,9 @@ BINARY_ALIAS= git=false
pre-configure:
@${ECHO} ${PORTVERSION} > ${WRKSRC}/IGRAPH_VERSION
.include <bsd.port.mk>
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 1300000 && ${OSVERSION} < 1300523
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-etc_cmake_compilers.cmake
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,10 @@
--- etc/cmake/compilers.cmake.orig 2022-01-04 06:55:25 UTC
+++ etc/cmake/compilers.cmake
@@ -31,7 +31,6 @@ macro(use_all_warnings TARGET_NAME)
target_compile_options(${TARGET_NAME} PRIVATE
# GCC-style compilers:
$<$<C_COMPILER_ID:GCC,Clang,AppleClang,Intel>:
- $<$<BOOL:${IGRAPH_WARNINGS_AS_ERRORS}>:-Werror>
-Wall -Wextra -pedantic
-Wno-unused-function -Wno-unused-parameter -Wno-sign-compare
>