freebsd-ports/Mk/Uses/ninja.mk
Antoine Brodin 35da4891c2 - Make it possible to override _MAKE_JOBS when MAKE_JOBS_NUMBER=1
- Override it for USES=ninja
With this commit and r383571, ports using ninja and waf now respect
MAKE_JOBS_NUMBER when it's equal to 1

PR:		197910
With hat:	portmgr
2015-04-10 05:45:15 +00:00

34 lines
607 B
Makefile

# $FreeBSD$
#
# Provide support to use Ninja
#
# Feature: ninja
# Usage: USES=ninja
#
# User defined variables:
# NINJA_VERBOSE - Enable verbose output.
#
# MAINTAINER: portmgr@FreeBSD.org
.if !defined(_INCLUDE_USES_NINJA_MK)
_INCLUDE_USES_NINJA_MK= yes
.if !empty(ninja_ARGS)
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
CMAKE_ARGS+= -GNinja
MAKEFILE=
MAKE_CMD= ninja
MAKE_FLAGS=
# Set a minimal job of 1
_MAKE_JOBS= -j${MAKE_JOBS_NUMBER}
_DESTDIR_VIA_ENV= yes
.endif