Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Mar 2019 00:40:58 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r495007 - in head/devel: . llvm
Message-ID:  <201903080040.x280ewF0084625@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <gerald@FreeBSD.org>
 # $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 <bsd.port.options.mk>
+.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 <bsd.port.mk>

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 <gerald@FreeBSD.org>
+WWW: http://llvm.org/
+



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