2015-07-13 14:26:40 +02:00
|
|
|
# Created by: Ed Schouten <ed@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= cloudabi-utils
|
2015-08-09 13:42:05 +02:00
|
|
|
PORTVERSION= 0.4
|
2015-07-13 14:26:40 +02:00
|
|
|
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
|
|
|
|
|
2015-07-13 14:41:44 +02:00
|
|
|
USES= compiler:c11 tar:xz
|
2015-07-13 14:26:40 +02:00
|
|
|
|
|
|
|
PLIST_FILES= bin/cloudabi-run \
|
|
|
|
libexec/cloudabi-reexec \
|
|
|
|
man/man1/cloudabi-run.1.gz
|
|
|
|
|
2015-07-21 11:00:00 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
|
|
|
2015-07-13 14:26:40 +02:00
|
|
|
do-build:
|
|
|
|
@cd ${WRKSRC} && \
|
2015-07-21 11:00:00 +02:00
|
|
|
${SETENV} ${MAKE_ENV} \
|
2015-07-22 14:54:48 +02:00
|
|
|
PREFIX=${PREFIX} \
|
2015-07-13 14:26:40 +02:00
|
|
|
CLOUDABI_CC=${LOCALBASE}/bin/x86_64-unknown-cloudabi-cc \
|
|
|
|
${SH} build
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@cd ${WRKSRC} && \
|
2015-07-22 14:54:48 +02:00
|
|
|
DESTDIR=${STAGEDIR} \
|
|
|
|
PREFIX=${PREFIX} \
|
2015-07-13 14:26:40 +02:00
|
|
|
${SH} install
|
|
|
|
|
2015-07-21 11:00:00 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 1000100
|
|
|
|
IGNORE= CloudABI will never support this version of FreeBSD
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|