Index: Makefile =================================================================== --- Makefile +++ Makefile @@ -252,6 +252,7 @@ SUBDIR += cloudabi-libc++ SUBDIR += cloudabi-libc++abi SUBDIR += cloudabi-libunwind + SUBDIR += cloudabi-toolchain SUBDIR += cmake SUBDIR += cmake-fedora SUBDIR += cmake-gui Index: cloudabi-toolchain/Makefile =================================================================== --- cloudabi-toolchain/Makefile +++ cloudabi-toolchain/Makefile @@ -0,0 +1,28 @@ +# Created by: Ed Schouten +# $FreeBSD$ + +PORTNAME= cloudabi-toolchain +PORTVERSION= 1.0 +CATEGORIES= devel + +MAINTAINER= ed@FreeBSD.org +COMMENT= C and C++ toolchain for CloudABI + +USES= metaport + +LIBDIR= ${LOCALBASE}/x86_64-unknown-cloudabi/lib + +# C and C++ compiler to be run on the development system. +RUN_DEPENDS+= x86_64-unknown-cloudabi-ar:${PORTSDIR}/devel/cloudabi-binutils \ + x86_64-unknown-cloudabi-cc:${PORTSDIR}/lang/cloudabi-clang + +# Libraries for C language support. +RUN_DEPENDS+= ${LIBDIR}/libc.a:${PORTSDIR}/devel/cloudabi-cloudlibc \ + ${LIBDIR}/libcompiler_rt.a:${PORTSDIR}/devel/cloudabi-compiler-rt + +# Libraries for C++ language support. +RUN_DEPENDS+= ${LIBDIR}/libc++.a:${PORTSDIR}/devel/cloudabi-libc++ \ + ${LIBDIR}/libc++abi.a:${PORTSDIR}/devel/cloudabi-libc++abi \ + ${LIBDIR}/libunwind.a:${PORTSDIR}/devel/cloudabi-libunwind + +.include Index: cloudabi-toolchain/pkg-descr =================================================================== --- cloudabi-toolchain/pkg-descr +++ cloudabi-toolchain/pkg-descr @@ -0,0 +1,10 @@ +Nuxi CloudABI is an application binary interface for UNIX-like operating +systems built around the concept of capability-based security. In a +nutshell, it means that you can run processes directly on top of a UNIX +kernel while keeping complete control over the actions the process is +allowed to perform. + +This port installs a full toolchain that can be used to compile C and +C++ software against CloudABI. + +WWW: https://github.com/NuxiNL/cloudlibc