From owner-svn-ports-all@FreeBSD.ORG Tue Jan 7 08:18:58 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EECA0C0; Tue, 7 Jan 2014 08:18:58 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id DB3F91D65; Tue, 7 Jan 2014 08:18:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id s078Iw1V001364; Tue, 7 Jan 2014 08:18:58 GMT (envelope-from bapt@svn.freebsd.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id s078Iwww001363; Tue, 7 Jan 2014 08:18:58 GMT (envelope-from bapt@svn.freebsd.org) Message-Id: <201401070818.s078Iwww001363@svn.freebsd.org> From: Baptiste Daroussin Date: Tue, 7 Jan 2014 08:18:58 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r338983 - head/Mk/Uses X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jan 2014 08:18:59 -0000 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