From owner-svn-ports-head@FreeBSD.ORG Tue Jun 23 08:38:02 2015 Return-Path: Delivered-To: svn-ports-head@nevdull.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2BF77465; Tue, 23 Jun 2015 08:38:02 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0D4FF1FF; Tue, 23 Jun 2015 08:38:02 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t5N8c1dW087390; Tue, 23 Jun 2015 08:38:01 GMT (envelope-from ed@FreeBSD.org) Received: (from ed@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t5N8c1rx087387; Tue, 23 Jun 2015 08:38:01 GMT (envelope-from ed@FreeBSD.org) Message-Id: <201506230838.t5N8c1rx087387@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: ed set sender to ed@FreeBSD.org using -f From: Ed Schouten Date: Tue, 23 Jun 2015 08:38:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r390358 - in head/lang: . cloudabi-clang X-SVN-Group: ports-head 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.20 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: Tue, 23 Jun 2015 08:38:02 -0000 Author: ed (src committer) Date: Tue Jun 23 08:38:00 2015 New Revision: 390358 URL: https://svnweb.freebsd.org/changeset/ports/390358 Log: Add cloudabi-clang. This port adds the necessary symbolic links to make Clang work as a cross compiler for CloudABI. Clang can automatically derive its target from argv[0]. We don't need to install another copy of Clang. It is sufficient to invoke it the right way. CloudABI support is not yet part of a released version of Clang. This is why we still need to depend on llvm-devel. My intent is to stick to a fixed compiler version at one point in time. PR: 200954 Differential Revision: https://reviews.freebsd.org/D2885 Approved by: bapt Added: head/lang/cloudabi-clang/ head/lang/cloudabi-clang/Makefile (contents, props changed) head/lang/cloudabi-clang/pkg-descr (contents, props changed) Modified: head/lang/Makefile Modified: head/lang/Makefile ============================================================================== --- head/lang/Makefile Tue Jun 23 08:01:35 2015 (r390357) +++ head/lang/Makefile Tue Jun 23 08:38:00 2015 (r390358) @@ -40,6 +40,7 @@ SUBDIR += clang36 SUBDIR += clojure SUBDIR += clojure-mode.el + SUBDIR += cloudabi-clang SUBDIR += cmucl SUBDIR += cmucl-extra SUBDIR += cocor Added: head/lang/cloudabi-clang/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/cloudabi-clang/Makefile Tue Jun 23 08:38:00 2015 (r390358) @@ -0,0 +1,33 @@ +# Created by: Ed Schouten +# $FreeBSD$ + +PORTNAME= cloudabi-clang +PORTVERSION= 1.0 +CATEGORIES= devel +MASTER_SITES= # None +DISTFILES= # None + +MAINTAINER= ed@FreeBSD.org +COMMENT= Clang for CloudABI + +LICENSE= MIT + +RUN_DEPENDS= clang-devel:${PORTSDIR}/lang/clang-devel \ + x86_64-unknown-cloudabi-ld:${PORTSDIR}/devel/cloudabi-binutils + +NO_BUILD= yes + +PLIST_FILES= bin/x86_64-unknown-cloudabi-cc \ + bin/x86_64-unknown-cloudabi-c++ \ + llvm-devel/x86_64-unknown-cloudabi + +do-install: + @${LN} -s ../llvm-devel/bin/clang \ + ${STAGEDIR}${PREFIX}/bin/x86_64-unknown-cloudabi-cc + @${LN} -s ../llvm-devel/bin/clang++ \ + ${STAGEDIR}${PREFIX}/bin/x86_64-unknown-cloudabi-c++ + @${MKDIR} ${STAGEDIR}${PREFIX}/llvm-devel + @${LN} -s ../x86_64-unknown-cloudabi \ + ${STAGEDIR}${PREFIX}/llvm-devel/x86_64-unknown-cloudabi + +.include Added: head/lang/cloudabi-clang/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/cloudabi-clang/pkg-descr Tue Jun 23 08:38:00 2015 (r390358) @@ -0,0 +1,5 @@ +The CloudABI environment uses Clang as its C/C++ compiler. This meta +port installs Clang and sets up symbolic links, so that Clang can be +used as a cross compiler for CloudABI. + +WWW: https://github.com/NuxiNL/cloudlibc