svn commit: r518710 - head/devel/dmlc-core
Jan Beich
jbeich at FreeBSD.org
Sat Nov 30 08:02:41 UTC 2019
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 at 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>
More information about the svn-ports-head
mailing list