Date: Tue, 23 Jun 2015 08:38:01 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r390358 - in head/lang: . cloudabi-clang Message-ID: <201506230838.t5N8c1rx087387@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <ed@FreeBSD.org> +# $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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506230838.t5N8c1rx087387>