Changeset View
Changeset View
Standalone View
Standalone View
head/sysutils/cloudabi-utils/Makefile
Show All 17 Lines | |||||
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 | |||||
LDFLAGS+= -L${LOCALBASE}/lib | |||||
do-build: | do-build: | ||||
@cd ${WRKSRC} && \ | @cd ${WRKSRC} && \ | ||||
${SETENV} ${MAKE_ENV} \ | |||||
PREFIX=${LOCALBASE} \ | PREFIX=${LOCALBASE} \ | ||||
CLOUDABI_CC=${LOCALBASE}/bin/x86_64-unknown-cloudabi-cc \ | CLOUDABI_CC=${LOCALBASE}/bin/x86_64-unknown-cloudabi-cc \ | ||||
${SH} build | ${SH} build | ||||
do-install: | do-install: | ||||
@cd ${WRKSRC} && \ | @cd ${WRKSRC} && \ | ||||
PREFIX=${STAGEDIR}${PREFIX} \ | PREFIX=${STAGEDIR}${PREFIX} \ | ||||
${SH} install | ${SH} install | ||||
.include <bsd.port.mk> | .include <bsd.port.pre.mk> | ||||
.if ${OSVERSION} < 1000100 | |||||
IGNORE= CloudABI will never support this version of FreeBSD | |||||
.endif | |||||
.include <bsd.port.post.mk> |