svn commit: r392614 - head/sysutils/cloudabi-utils
Ed Schouten
ed at FreeBSD.org
Tue Jul 21 09:00:01 UTC 2015
Author: ed (src committer)
Date: Tue Jul 21 09:00:00 2015
New Revision: 392614
URL: https://svnweb.freebsd.org/changeset/ports/392614
Log:
Make this port build properly.
Summary:
It looks like we forgot to add '${SETENV} ${MAKE_ENV}' to the build
script. Right now it ignores the compiler entirely.
Furthermore, regardless of whether a C11 compiler is being used, the
build will fail, for the reason that some C11 headers such as
<stdnoreturn.h> are being used in the code. Instead of trying to fix
that, simply disable this port on FreeBSD <10.1. I have no intent on
ever getting CloudABI to work on FreeBSD 9.
Reviewers: bapt
Reviewed By: bapt
Differential Revision: https://reviews.freebsd.org/D3077
Modified:
head/sysutils/cloudabi-utils/Makefile
Modified: head/sysutils/cloudabi-utils/Makefile
==============================================================================
--- head/sysutils/cloudabi-utils/Makefile Tue Jul 21 07:39:35 2015 (r392613)
+++ head/sysutils/cloudabi-utils/Makefile Tue Jul 21 09:00:00 2015 (r392614)
@@ -23,8 +23,12 @@ 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
@@ -34,4 +38,10 @@ do-install:
PREFIX=${STAGEDIR}${PREFIX} \
${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>
More information about the svn-ports-head
mailing list