Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jul 2021 02:03:49 GMT
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6281532dad65 - main - math/colpack: fix build on powerpc
Message-ID:  <202107240203.16O23n8W023559@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by pkubaj:

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

commit 6281532dad65ce42ad6341ed46ca481278d70a50
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-07-24 02:03:41 +0000
Commit:     Piotr Kubaj <pkubaj@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107240203.16O23n8W023559>