mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
fe837ee6c6
- Loop over USES twice, once to define all *_ARGS variables and once to include Uses/*.mk. This allows all Uses/*.mk to examine arguments given to other USES entries. - Always define *_ARGS (possibly empty) and replace commas with spaces. Similar for _USES_POST. Adjust all Uses/*.mk: - defined(u_ARGS) becomes !empty(u_ARGS) - Eliminate helper variables like _*_ARGS=${*_ARGS:C/,/ /g} - Some Uses/*.mk used ":" as argument separator instead of ",", but no port used this form - Uses/cran.mk: remove unused variable VALID_ARGS and USES+=fortran which has no effect - Uses/twisted.mk: simplify handling of the case where neither "build" nor "run" arguments have been specified PR: 193931 Exp-run by: antoine Approved by: portmgr (antoine)
33 lines
548 B
Makefile
33 lines
548 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=
|
|
_DESTDIR_VIA_ENV= yes
|
|
|
|
.endif
|