mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
9a51bfd65d
This enforce usage of gmake-lite instead of gmake to avoid circular dependency Suggested by: miwi
30 lines
576 B
Makefile
30 lines
576 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 defined(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
|