svn commit: r340684 - branches/2014Q1/Mk/Uses
Baptiste Daroussin
bapt at FreeBSD.org
Wed Jan 22 07:56:33 UTC 2014
Author: bapt
Date: Wed Jan 22 07:56:32 2014
New Revision: 340684
URL: http://svnweb.freebsd.org/changeset/ports/340684
QAT: https://qat.redports.org/buildarchive/r340684/
Log:
MFH: r338983
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.
Added:
branches/2014Q1/Mk/Uses/ninja.mk
- copied unchanged from r338983, head/Mk/Uses/ninja.mk
Modified:
Directory Properties:
branches/2014Q1/ (props changed)
Copied: branches/2014Q1/Mk/Uses/ninja.mk (from r338983, head/Mk/Uses/ninja.mk)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ branches/2014Q1/Mk/Uses/ninja.mk Wed Jan 22 07:56:32 2014 (r340684, copy of r338983, head/Mk/Uses/ninja.mk)
@@ -0,0 +1,30 @@
+# $FreeBSD$
+#
+# Provide support to use ninja
+#
+# MAINTAINER: portmgr at 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
More information about the svn-ports-branches
mailing list