git: 6281532dad65 - main - math/colpack: fix build on powerpc

Piotr Kubaj pkubaj at FreeBSD.org
Sat Jul 24 02:03:50 UTC 2021


The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6281532dad65ce42ad6341ed46ca481278d70a50

commit 6281532dad65ce42ad6341ed46ca481278d70a50
Author:     Piotr Kubaj <pkubaj at FreeBSD.org>
AuthorDate: 2021-07-24 02:03:41 +0000
Commit:     Piotr Kubaj <pkubaj at FreeBSD.org>
CommitDate: 2021-07-24 02:03:41 +0000

    math/colpack: fix build on powerpc
    
    CMake Error at /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
      Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
---
 math/colpack/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/math/colpack/Makefile b/math/colpack/Makefile
index 6be895e4c536..6f14e10cf6bc 100644
--- a/math/colpack/Makefile
+++ b/math/colpack/Makefile
@@ -10,7 +10,7 @@ COMMENT=	Graph Coloring Algorithm Package
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		cmake compiler:c++11-lang
+USES=		cmake
 USE_LDCONFIG=	yes
 
 USE_GITHUB=	yes
@@ -19,4 +19,12 @@ GH_PROJECT=	ColPack
 
 CMAKE_SOURCE_PATH=	${WRKSRC}/build/cmake
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc
+USES+=		compiler:gcc-c++11-lib
+.else
+USES+=		compiler:c++11-lang
+.endif
+
 .include <bsd.port.mk>


More information about the dev-commits-ports-main mailing list