diff --git a/math/igraph/Makefile b/math/igraph/Makefile index 49082e255801..991293edf933 100644 --- a/math/igraph/Makefile +++ b/math/igraph/Makefile @@ -1,30 +1,35 @@ # Created by: Wen Heping PORTNAME= igraph PORTVERSION= 0.9.5 CATEGORIES= math MAINTAINER= wen@FreeBSD.org COMMENT= Package For Manipulating Undirected And Directed Graphs LICENSE= GPLv2 LIB_DEPENDS= libarpack.so:math/arpack-ng \ libcxsparse.so:math/suitesparse-cxsparse \ libglpk.so:math/glpk \ libgmp.so:math/gmp \ libopenblas.so:math/openblas USES= bison cmake cpe gnome libtool pathfix USE_GITHUB= yes USE_GNOME= libxml2 USE_LDCONFIG= yes CMAKE_ON= BUILD_SHARED_LIBS BINARY_ALIAS= git=false pre-configure: @${ECHO} ${PORTVERSION} > ${WRKSRC}/IGRAPH_VERSION -.include +.include +.if ${OSVERSION} >= 1300000 && ${OSVERSION} < 1300523 +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-etc_cmake_compilers.cmake +.endif + +.include diff --git a/math/igraph/files/extra-patch-etc_cmake_compilers.cmake b/math/igraph/files/extra-patch-etc_cmake_compilers.cmake new file mode 100644 index 000000000000..84b1f3c4b264 --- /dev/null +++ b/math/igraph/files/extra-patch-etc_cmake_compilers.cmake @@ -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: + $<$: +- $<$:-Werror> + -Wall -Wextra -pedantic + -Wno-unused-function -Wno-unused-parameter -Wno-sign-compare + >