Index: Makefile =================================================================== --- Makefile +++ Makefile @@ -40,6 +40,7 @@ SUBDIR += clang36 SUBDIR += clojure SUBDIR += clojure-mode.el + SUBDIR += cloudabi-clang SUBDIR += cmucl SUBDIR += cmucl-extra SUBDIR += cocor Index: cloudabi-clang/Makefile =================================================================== --- cloudabi-clang/Makefile +++ cloudabi-clang/Makefile @@ -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 Index: cloudabi-clang/pkg-descr =================================================================== --- cloudabi-clang/pkg-descr +++ cloudabi-clang/pkg-descr @@ -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