freebsd-ports/sysutils/cloudabi-utils/Makefile
Ed Schouten 59b570ecaf Add compiler:c11.
cloudabi-run depends on a couple of C11 tricks (e.g., _Generic). Make
sure we have the right compiler for that.

Discussed with: bapt
2015-07-13 12:41:44 +00:00

37 lines
855 B
Makefile

# Created by: Ed Schouten <ed@FreeBSD.org>
# $FreeBSD$
PORTNAME= cloudabi-utils
PORTVERSION= 0.2
CATEGORIES= sysutils
MASTER_SITES= https://nuxi.nl/distfiles/cloudabi-utils/
MAINTAINER= ed@FreeBSD.org
COMMENT= Utilities for running CloudABI programs
LICENSE= BSD2CLAUSE
BUILD_DEPENDS= cloudabi-toolchain>=0:${PORTSDIR}/devel/cloudabi-toolchain
LIB_DEPENDS= libyaml.so:${PORTSDIR}/textproc/libyaml
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= CloudABI has not yet been ported to other architectures
USES= compiler:c11 tar:xz
PLIST_FILES= bin/cloudabi-run \
libexec/cloudabi-reexec \
man/man1/cloudabi-run.1.gz
do-build:
@cd ${WRKSRC} && \
PREFIX=${LOCALBASE} \
CLOUDABI_CC=${LOCALBASE}/bin/x86_64-unknown-cloudabi-cc \
${SH} build
do-install:
@cd ${WRKSRC} && \
PREFIX=${STAGEDIR}${PREFIX} \
${SH} install
.include <bsd.port.mk>