Changeset View
Changeset View
Standalone View
Standalone View
head/sysutils/cloudabi-utils/Makefile
# Created by: Ed Schouten <ed@FreeBSD.org> | # Created by: Ed Schouten <ed@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= cloudabi-utils | PORTNAME= cloudabi-utils | ||||
PORTVERSION= 0.5 | PORTVERSION= 0.6 | ||||
CATEGORIES= sysutils | CATEGORIES= sysutils | ||||
MASTER_SITES= https://nuxi.nl/distfiles/cloudabi-utils/ | MASTER_SITES= https://nuxi.nl/distfiles/cloudabi-utils/ | ||||
MAINTAINER= ed@FreeBSD.org | MAINTAINER= ed@FreeBSD.org | ||||
COMMENT= Utilities for running CloudABI programs | COMMENT= Utilities for running CloudABI programs | ||||
LICENSE= BSD2CLAUSE | LICENSE= BSD2CLAUSE | ||||
LIB_DEPENDS= libyaml.so:${PORTSDIR}/textproc/libyaml | LIB_DEPENDS= libyaml.so:${PORTSDIR}/textproc/libyaml | ||||
ONLY_FOR_ARCHS= amd64 | ONLY_FOR_ARCHS= aarch64 amd64 | ||||
ONLY_FOR_ARCHS_REASON= CloudABI has not yet been ported to other architectures | ONLY_FOR_ARCHS_REASON= CloudABI has not yet been ported to other architectures | ||||
USES= compiler:c11 tar:xz | USES= compiler:c11 tar:xz | ||||
PLIST_FILES= bin/cloudabi-run \ | PLIST_FILES= bin/cloudabi-run \ | ||||
libexec/cloudabi-reexec \ | libexec/cloudabi-reexec \ | ||||
man/man1/cloudabi-run.1.gz | man/man1/cloudabi-run.1.gz | ||||
CFLAGS+= -I${LOCALBASE}/include | CFLAGS+= -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
do-build: | do-build: | ||||
@cd ${WRKSRC} && \ | @cd ${WRKSRC} && \ | ||||
${SETENV} ${MAKE_ENV} \ | ${SETENV} ${MAKE_ENV} \ | ||||
PREBUILT_ARCH=x86_64 \ | |||||
PREFIX=${PREFIX} \ | PREFIX=${PREFIX} \ | ||||
${SH} build | ${SH} build | ||||
do-install: | do-install: | ||||
@cd ${WRKSRC} && \ | @cd ${WRKSRC} && \ | ||||
ARCH=${ARCH:S/amd64/x86_64/} \ | |||||
DESTDIR=${STAGEDIR} \ | DESTDIR=${STAGEDIR} \ | ||||
PREFIX=${PREFIX} \ | PREFIX=${PREFIX} \ | ||||
${SH} install | ${SH} install | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${OSVERSION} < 1000100 | .if ${OSVERSION} < 1000100 | ||||
IGNORE= CloudABI will never support this version of FreeBSD | IGNORE= CloudABI will never support this version of FreeBSD | ||||
.endif | .endif | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |