svn commit: r338983 - head/Mk/Uses

Baptiste Daroussin bapt at FreeBSD.org
Tue Jan 7 08:18:59 UTC 2014


Author: bapt
Date: Tue Jan  7 08:18:58 2014
New Revision: 338983
URL: http://svnweb.freebsd.org/changeset/ports/338983

Log:
  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:
  head/Mk/Uses/ninja.mk   (contents, props changed)

Added: head/Mk/Uses/ninja.mk
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/Mk/Uses/ninja.mk	Tue Jan  7 08:18:58 2014	(r338983)
@@ -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-all mailing list