git: 3c887a65b8a5 - main - math/igraph: Fix build on FreeBSD-13.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Jan 2022 07:58:21 UTC
The branch main has been updated by wen:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3c887a65b8a5ba4f7d825fe0a19ac73de90c86b2
commit 3c887a65b8a5ba4f7d825fe0a19ac73de90c86b2
Author: Wen Heping <wen@FreeBSD.org>
AuthorDate: 2022-01-04 07:57:49 +0000
Commit: Wen Heping <wen@FreeBSD.org>
CommitDate: 2022-01-04 07:57:49 +0000
math/igraph: Fix build on FreeBSD-13.0
---
math/igraph/Makefile | 7 ++++++-
math/igraph/files/extra-patch-etc_cmake_compilers.cmake | 10 ++++++++++
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/math/igraph/Makefile b/math/igraph/Makefile
index 49082e255801..991293edf933 100644
--- a/math/igraph/Makefile
+++ b/math/igraph/Makefile
@@ -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>
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:
+ $<$<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
+ >