freebsd-ports/sysutils/cloudabi-utils/Makefile

49 lines
1.1 KiB
Makefile
Raw Normal View History

# Created by: Ed Schouten <ed@FreeBSD.org>
# $FreeBSD$
PORTNAME= cloudabi-utils
PORTVERSION= 0.4
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
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
do-build:
@cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} \
PREFIX=${PREFIX} \
CLOUDABI_CC=${LOCALBASE}/bin/x86_64-unknown-cloudabi-cc \
${SH} build
do-install:
@cd ${WRKSRC} && \
DESTDIR=${STAGEDIR} \
PREFIX=${PREFIX} \
${SH} install
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 1000100
IGNORE= CloudABI will never support this version of FreeBSD
.endif
.include <bsd.port.post.mk>