Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jan 2014 07:56:32 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r340684 - branches/2014Q1/Mk/Uses
Message-ID:  <201401220756.s0M7uWE5022989@svn.freebsd.org>

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