git: ea1f1a378283 - main - devel/dmlc-core: use clang on architectures without openmp and disable openmp

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Wed, 27 Apr 2022 13:40:14 UTC
The branch main has been updated by pkubaj:

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

commit ea1f1a378283c4107450456000ad15b2fb38f7bc
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2022-04-27 13:21:44 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2022-04-27 13:21:44 +0000

    devel/dmlc-core: use clang on architectures without openmp and disable openmp
---
 devel/dmlc-core/Makefile | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/devel/dmlc-core/Makefile b/devel/dmlc-core/Makefile
index dee6e22f06c6..053d2fac69e8 100644
--- a/devel/dmlc-core/Makefile
+++ b/devel/dmlc-core/Makefile
@@ -9,19 +9,15 @@ COMMENT=	Common library for scalable and portable distributed machine learning
 
 LICENSE=	APACHE20
 
-USES=		cmake
+USES=		cmake compiler:c++11-lang
 USE_GITHUB=	yes
 GH_ACCOUNT=	dmlc
 USE_LDCONFIG=	yes
 
 CMAKE_ON=	BUILD_SHARED_LIBS
 
-.include <bsd.port.options.mk>
-
-.if ${ARCH} == powerpc
-USES+=		compiler:gcc-c++11-lib
-.else
-USES+=		compiler:c++11-lang
+.if !exists(/usr/include/omp.h)
+CMAKE_ARGS+=	-DUSE_OPENMP:BOOL=OFF
 .endif
 
 .include <bsd.port.mk>