diff options
author | bapt <bapt@FreeBSD.org> | 2014-01-07 16:18:58 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-01-07 16:18:58 +0800 |
commit | a36e74799064c2731b93de3fd340faa416abb96d (patch) | |
tree | f4b0b9127deb781254e498e419b9c3c0456c0b93 /Mk | |
parent | 258907a3cacf15bca8dee9fb19e787672d745a38 (diff) | |
download | freebsd-ports-graphics-a36e74799064c2731b93de3fd340faa416abb96d.tar.gz freebsd-ports-graphics-a36e74799064c2731b93de3fd340faa416abb96d.tar.zst freebsd-ports-graphics-a36e74799064c2731b93de3fd340faa416abb96d.zip |
Add new uses ninja[:verbose]
This allows to use the ninja build system.
USES= cmake ninja
Will make cmake generate ninja files and use ninja.
Diffstat (limited to 'Mk')
-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 00000000000..ed16e58a994 --- /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 |