Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Jan 2014 08:18:58 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r338983 - head/Mk/Uses
Message-ID:  <201401070818.s078Iwww001363@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401070818.s078Iwww001363>