From owner-svn-ports-head@freebsd.org Fri Mar 8 00:40:59 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC5F6152CB80; Fri, 8 Mar 2019 00:40:59 +0000 (UTC) (envelope-from brooks@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 6F63D82838; Fri, 8 Mar 2019 00:40:59 +0000 (UTC) (envelope-from brooks@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 452AF23900; Fri, 8 Mar 2019 00:40:59 +0000 (UTC) (envelope-from brooks@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x280exe3084628; Fri, 8 Mar 2019 00:40:59 GMT (envelope-from brooks@FreeBSD.org) Received: (from brooks@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x280ewF0084625; Fri, 8 Mar 2019 00:40:58 GMT (envelope-from brooks@FreeBSD.org) Message-Id: <201903080040.x280ewF0084625@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: brooks set sender to brooks@FreeBSD.org using -f From: Brooks Davis Date: Fri, 8 Mar 2019 00:40:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r495007 - in head/devel: . llvm X-SVN-Group: ports-head X-SVN-Commit-Author: brooks X-SVN-Commit-Paths: in head/devel: . llvm X-SVN-Commit-Revision: 495007 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 6F63D82838 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.95 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.95)[-0.949,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] 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: Fri, 08 Mar 2019 00:41:00 -0000 Author: brooks Date: Fri Mar 8 00:40:58 2019 New Revision: 495007 URL: https://svnweb.freebsd.org/changeset/ports/495007 Log: Add a meta-port for the default version of LLVM. This is modeled on lang/gcc and simply installs symlinks for the versioned commands. It is intended for use by users and should not be a port build dependency. Added: head/devel/llvm/ - copied from r495005, head/lang/gcc/ Modified: head/devel/Makefile head/devel/llvm/Makefile head/devel/llvm/pkg-descr Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Fri Mar 8 00:25:55 2019 (r495006) +++ head/devel/Makefile Fri Mar 8 00:40:58 2019 (r495007) @@ -1680,6 +1680,7 @@ SUBDIR += liteide SUBDIR += llbuild SUBDIR += llnextgen + SUBDIR += llvm SUBDIR += llvm-cheri SUBDIR += llvm-devel SUBDIR += llvm35 Modified: head/devel/llvm/Makefile ============================================================================== --- head/lang/gcc/Makefile Thu Mar 7 23:52:08 2019 (r495005) +++ head/devel/llvm/Makefile Fri Mar 8 00:40:58 2019 (r495007) @@ -1,28 +1,60 @@ -# Created by: Gerald Pfeifer # $FreeBSD$ -PORTNAME= gcc -PORTVERSION= ${GCC_DEFAULT} -PORTREVISION= 3 -CATEGORIES= lang +PORTNAME= llvm +PORTVERSION= ${LLVM_DEFAULT} +PORTREVISION= 0 +CATEGORIES= devel lang MASTER_SITES= # not applicable DISTFILES= # not applicable -MAINTAINER= gerald@FreeBSD.org -COMMENT= Meta-port for the default version of the GNU Compiler Collection +MAINTAINER= brooks@FreeBSD.org +COMMENT= Meta-port for the default version of the LLVM Toolchain -# Once GCC 4.9 and 4.8 aren't options any longer, we can simply use -# GCC_DEFAULT again below (the expression rewrites 4.9 to 49). -RUN_DEPENDS= gcc${GCC_DEFAULT:S/.//}:lang/gcc${GCC_DEFAULT:S/.//} +# To the extent that anything in this port is copyrightable, it is the +# list of files in the chosen LLVM version which is under the ports +# collection license. +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${.CURDIR}/../../COPYRIGHT +RUN_DEPENDS= bugpoint${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} + +OPTIONS_DEFINE= CLANG EXTRAS LIT LLD LLDB +OPTIONS_DEFAULT= CLANG EXTRAS LIT LLD LLDB + +CLANG_DESC= The clang compiler +EXTRAS_DESC= Extra clang tools +LIT_DESC= The lit and FileCheck test tools +LLD_DESC= The LLVM linker +LLDB_DESC= The LLVM debugger + NO_ARCH= yes NO_BUILD= yes -PLIST_FILES= bin/g++ bin/gcc bin/gfortran +PLIST_FILES= ${COMMANDS:S|^|bin/|} +.include +.include "${.CURDIR}/../llvm${LLVM_DEFAULT}/Makefile.COMMANDS" + +COMMANDS= ${LLVM_COMMANDS} +.if ${PORT_OPTIONS:MCLANG} +COMMANDS+= ${CLANG_COMMANDS} +.endif +.if ${PORT_OPTIONS:MEXTRAS} +COMMANDS+= ${EXTRAS_COMMANDS} +.endif +.if ${PORT_OPTIONS:MLIT} +COMMANDS+= ${LIT_COMMANDS} +.endif +.if ${PORT_OPTIONS:MLLD} +COMMANDS+= ${LLD_COMMANDS} +.endif +.if ${PORT_OPTIONS:MLLDB} +COMMANDS+= ${LLDB_COMMANDS} +.endif + do-install: -.for c in gfortran g++ gcc - ${LN} -s ${c}${GCC_DEFAULT} ${STAGEDIR}${PREFIX}/bin/${c} +.for c in ${COMMANDS} + ${LN} -s ${c}${LLVM_DEFAULT} ${STAGEDIR}${PREFIX}/bin/${c} .endfor .include Modified: head/devel/llvm/pkg-descr ============================================================================== --- head/lang/gcc/pkg-descr Thu Mar 7 23:52:08 2019 (r495005) +++ head/devel/llvm/pkg-descr Fri Mar 8 00:40:58 2019 (r495007) @@ -1,7 +1,8 @@ -GCC, the GNU Compiler Collection, supports a number of languages. This -port pulls in the default version of GCC in the Ports Collection, and -defines symlinks called gcc, g++, and gfortran. +The LLVM Project is a collection of modular and reusable compiler and +toolchain technologies. -WWW: https://gcc.gnu.org +This port includes Clang (a C/C++/Objective-C compiler), LLD (a linker), +LLDB (a debugger), and the LLVM infrastructure these are built on. -Gerald Pfeifer +WWW: http://llvm.org/ +