aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authoravilla <avilla@FreeBSD.org>2014-01-08 01:55:13 +0800
committeravilla <avilla@FreeBSD.org>2014-01-08 01:55:13 +0800
commit00ca687317a92e603eb577f48e648cee67e7f272 (patch)
treea4143fe7fe91be1ad6dc8fb2c15c6d8150673cfe /Mk
parent825b4ec98ee664677eb8959e2da0535ffa41ef63 (diff)
downloadfreebsd-ports-gnome-00ca687317a92e603eb577f48e648cee67e7f272.tar.gz
freebsd-ports-gnome-00ca687317a92e603eb577f48e648cee67e7f272.tar.zst
freebsd-ports-gnome-00ca687317a92e603eb577f48e648cee67e7f272.zip
- Convert USES=ninja:verbose into NINJA_VERBOSE make.conf(5) switch.
Approved by: portmgr (bapt)
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/ninja.mk18
1 files changed, 11 insertions, 7 deletions
diff --git a/Mk/Uses/ninja.mk b/Mk/Uses/ninja.mk
index ed16e58a9942..e3b9a8e9d1fe 100644
--- a/Mk/Uses/ninja.mk
+++ b/Mk/Uses/ninja.mk
@@ -1,21 +1,25 @@
# $FreeBSD$
#
-# Provide support to use ninja
+# Provide support to use Ninja
#
# MAINTAINER: portmgr@FreeBSD.org
#
-# Feature: ninja
-# Usage: USES=ninja[:verbose]
+# Feature: ninja
+# Usage: USES=ninja
+#
+# User defined variables:
+# NINJA_VERBOSE - Enable verbose output.
+#
.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'
+IGNORE= Incorrect 'USES+= ninja:${ninja_ARGS}' ninja takes no arguments
.endif
+
+.if defined(NINJA_VERBOSE)
+MAKE_ARGS+= -v
.endif
BUILD_DEPENDS= ninja:${PORTSDIR}/devel/ninja