diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-01-07 08:18:58 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2014-01-07 08:18:58 +0000 |
commit | 91e098283315585acf3574ff7c9b0678328a4d70 (patch) | |
tree | f4b0b9127deb781254e498e419b9c3c0456c0b93 | |
parent | f85a8bf4443c4a45b0b8b35857aaf23a0196f938 (diff) |
Notes
-rw-r--r-- | Mk/Uses/ninja.mk | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Mk/Uses/ninja.mk b/Mk/Uses/ninja.mk new file mode 100644 index 000000000000..ed16e58a9942 --- /dev/null +++ b/Mk/Uses/ninja.mk @@ -0,0 +1,30 @@ +# $FreeBSD$ +# +# Provide support to use ninja +# +# MAINTAINER: portmgr@FreeBSD.org +# +# Feature: ninja +# Usage: USES=ninja[:verbose] + +.if !defined(_INCLUDE_USES_NINJA_MK) +_INCLUDE_USES_NINJA_MK= yes + +.if defined(ninja_ARGS) +.if ${ninja_ARGS} == verbose +MAKE_ARGS+= -v +.else +IGNORE= Incorrect aruments for 'USES+= ninja:${ninja_ARGS}' valid argument is 'verbose' +.endif +.endif + +BUILD_DEPENDS= ninja:${PORTSDIR}/devel/ninja + +CMAKE_ARGS+= -GNinja +MAKEFILE= +MAKE_CMD= ninja +MAKE_FLAGS= +MAKE_ENV= ${DESTDIRNAME}=${STAGEDIR} +_DESTDIR_VIA_ENV= yes + +.endif |