Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Aug 2023 10:36:15 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: 1f28e9b4832e - main - Revert "math/colpack: allow to build without GCC"
Message-ID:  <202308121036.37CAaFcd041243@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=1f28e9b4832e42b8f0cbfb1b203777cedae02773

commit 1f28e9b4832e42b8f0cbfb1b203777cedae02773
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-08-12 10:34:43 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-08-12 10:36:07 +0000

    Revert "math/colpack: allow to build without GCC"
    
    A mistake during testing happened.
    
    This reverts commit 7659964cabf4a21fa73e7d41948dc5001e4c7944.
    
    Reported by:    Max Brazhnikov <makc@freebsd.org>
---
 math/colpack/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/math/colpack/Makefile b/math/colpack/Makefile
index ed689e88671b..cfdde5749d16 100644
--- a/math/colpack/Makefile
+++ b/math/colpack/Makefile
@@ -12,7 +12,7 @@ WWW=		https://github.com/CSCsw/ColPack
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		cmake compiler:gcc-c++11-lib
+USES=		cmake
 USE_LDCONFIG=	yes
 
 USE_GITHUB=	yes
@@ -21,4 +21,10 @@ GH_PROJECT=	ColPack
 
 CMAKE_SOURCE_PATH=	${WRKSRC}/build/cmake
 
+.if !exists(/usr/include/omp.h)
+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?202308121036.37CAaFcd041243>