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)
29 lines
575 B
Makefile
29 lines
575 B
Makefile
# $FreeBSD$
|
|
#
|
|
# Provide support to use the GNU make
|
|
#
|
|
# Feature: gmake
|
|
# Usage: USES=gmake[:lite]
|
|
#
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
|
|
|
.if !defined(_INCLUDE_USES_GMAKE_MK)
|
|
_INCLUDE_USES_GMAKE_MK= yes
|
|
|
|
.if !empty(gmake_ARGS)
|
|
.if ${gmake_ARGS} == lite
|
|
_GMAKE_EXT= -lite
|
|
.else
|
|
IGNORE= Incorrect 'USES+= gmake:${gmake_ARGS}' gmake has only one valid argument: lite
|
|
.endif
|
|
.endif
|
|
|
|
.if defined(DIET)
|
|
_GMAKE_EXT= -lite
|
|
.endif
|
|
|
|
BUILD_DEPENDS+= gmake${_GMAKE_EXT}:${PORTSDIR}/devel/gmake${_GMAKE_EXT}
|
|
CONFIGURE_ENV+= MAKE=gmake${_GMAKE_EXT}
|
|
MAKE_CMD?= gmake${_GMAKE_EXT}
|
|
|
|
.endif
|