svn commit: r518698 - head/devel/dmlc-core
Piotr Kubaj
pkubaj at FreeBSD.org
Sat Nov 30 02:42:11 UTC 2019
Author: pkubaj
Date: Sat Nov 30 02:42:10 2019
New Revision: 518698
URL: https://svnweb.freebsd.org/changeset/ports/518698
Log:
devel/dmlc-core: use LLVM on LLVM architectures
Use LLVM on LLVM architectures to avoid mixing C++ libraries. Add USES=compiler:c++11-lang to force new GCC on GCC architectures (the port requires C++11 anyway). Also add ? to toolchain setup to allow switching to GCC binaries.
Reported by: jbeich
Approved by: mentors (implicit approval)
Modified:
head/devel/dmlc-core/Makefile
Modified: head/devel/dmlc-core/Makefile
==============================================================================
--- head/devel/dmlc-core/Makefile Sat Nov 30 02:37:58 2019 (r518697)
+++ head/devel/dmlc-core/Makefile Sat Nov 30 02:42:10 2019 (r518698)
@@ -4,7 +4,7 @@ PORTNAME= dmlc-core
DISTVERSIONPREFIX= v
DISTVERSION= 0.3-105
DISTVERSIONSUFFIX= -g32d9fe7
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MAINTAINER= yuri at FreeBSD.org
@@ -12,17 +12,24 @@ COMMENT= Common library for scalable and portable dist
LICENSE= APACHE20
-USES= compiler:openmp cmake
+BUILD_DEPENDS= llvm${LLVM_DEFAULT}>0:devel/llvm${LLVM_DEFAULT}
+
+USES= cmake compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= dmlc
USE_LDCONFIG= yes
CMAKE_ON= BUILD_SHARED_LIBS
-.include <bsd.port.pre.mk>
+# use clang from ports because otherwise OpenMP isn't detected on some systems (ex. 12.0-RELEASE-p9)
+CPP?= clang-cpp${LLVM_DEFAULT}
+CC?= clang${LLVM_DEFAULT}
+CXX?= clang++${LLVM_DEFAULT}
-.if ${CHOSEN_COMPILER_TYPE} == gcc
-USE_GCC= yes
+.include <bsd.port.options.mk>
+
+.if ${LLVM_DEFAULT:S,-devel,990,} >= 90
+LLVM_DEFAULT= 80
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-all
mailing list