git: 1f28e9b4832e - main - Revert "math/colpack: allow to build without GCC"

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sat, 12 Aug 2023 10:36:15 UTC
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>