Index: head/sysutils/cloudabi-utils/Makefile =================================================================== --- head/sysutils/cloudabi-utils/Makefile (revision 392613) +++ head/sysutils/cloudabi-utils/Makefile (revision 392614) @@ -1,37 +1,47 @@ # Created by: Ed Schouten # $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 +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + do-build: @cd ${WRKSRC} && \ + ${SETENV} ${MAKE_ENV} \ PREFIX=${LOCALBASE} \ CLOUDABI_CC=${LOCALBASE}/bin/x86_64-unknown-cloudabi-cc \ ${SH} build do-install: @cd ${WRKSRC} && \ PREFIX=${STAGEDIR}${PREFIX} \ ${SH} install -.include +.include + +.if ${OSVERSION} < 1000100 +IGNORE= CloudABI will never support this version of FreeBSD +.endif + +.include