From owner-svn-ports-head@freebsd.org Sat Nov 30 02:42:11 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 566FA1C6058; Sat, 30 Nov 2019 02:42:11 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47PwdH1hRpz4bJx; Sat, 30 Nov 2019 02:42:11 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1E9711FAAA; Sat, 30 Nov 2019 02:42:11 +0000 (UTC) (envelope-from pkubaj@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xAU2gBNg036832; Sat, 30 Nov 2019 02:42:11 GMT (envelope-from pkubaj@FreeBSD.org) Received: (from pkubaj@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xAU2gAVY036831; Sat, 30 Nov 2019 02:42:10 GMT (envelope-from pkubaj@FreeBSD.org) Message-Id: <201911300242.xAU2gAVY036831@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pkubaj set sender to pkubaj@FreeBSD.org using -f From: Piotr Kubaj Date: Sat, 30 Nov 2019 02:42:10 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r518698 - head/devel/dmlc-core X-SVN-Group: ports-head X-SVN-Commit-Author: pkubaj X-SVN-Commit-Paths: head/devel/dmlc-core X-SVN-Commit-Revision: 518698 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Nov 2019 02:42:11 -0000 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@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 +# 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 + +.if ${LLVM_DEFAULT:S,-devel,990,} >= 90 +LLVM_DEFAULT= 80 .endif -.include +.include