Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2019 08:02:41 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r518710 - head/devel/dmlc-core
Message-ID:  <201911300802.xAU82fIH026860@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sat Nov 30 08:02:41 2019
New Revision: 518710
URL: https://svnweb.freebsd.org/changeset/ports/518710

Log:
  devel/dmlc-core: drop devel/llvm80 dependency
  
  find_package(OpenMP) was fixed in r497948, so use devel/openmp but
  only on FreeBSD 12.0 as later versions have /usr/lib/libomp.so.

Modified:
  head/devel/dmlc-core/Makefile   (contents, props changed)

Modified: head/devel/dmlc-core/Makefile
==============================================================================
--- head/devel/dmlc-core/Makefile	Sat Nov 30 08:00:48 2019	(r518709)
+++ head/devel/dmlc-core/Makefile	Sat Nov 30 08:02:41 2019	(r518710)
@@ -4,7 +4,7 @@ PORTNAME=	dmlc-core
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.3-105
 DISTVERSIONSUFFIX=	-g32d9fe7
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	devel
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -12,18 +12,18 @@ COMMENT=	Common library for scalable and portable dist
 
 LICENSE=	APACHE20
 
-BUILD_DEPENDS=	llvm80>0:devel/llvm80
-
-USES=		cmake
+USES=		cmake compiler:c++11-lang
 USE_GITHUB=	yes
 GH_ACCOUNT=	dmlc
 USE_LDCONFIG=	yes
 
 CMAKE_ON=	BUILD_SHARED_LIBS
 
-# use clang from ports because otherwise OpenMP isn't detected on some systems (ex. 12.0-RELEASE-p9)
-CPP=		clang-cpp80
-CC=		clang80
-CXX=		clang++80
+.include <bsd.port.pre.mk>
 
-.include <bsd.port.mk>
+# XXX Drop after FreeBSD 12.0 EOL
+.if ${CHOSEN_COMPILER_TYPE} == clang && !exists(/usr/include/omp.h)
+LIB_DEPENDS+=	libomp.so:devel/openmp
+.endif
+
+.include <bsd.port.post.mk>



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