freebsd-ports/Mk/Uses/ninja.mk
Baptiste Daroussin 869e1f27d0 Drop the necessity to add ${PORTSDIR} to dependency line
Modify make describe to automatically prepend ${PORTSDIR} if the path for the
port is not absolute

Checked with poudriere, portmaster, portupgrade

PR:		203685
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D3866
2015-10-14 16:49:35 +00:00

35 lines
595 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: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