freebsd-ports/Mk/Uses/gmake.mk
Baptiste Daroussin 8cea2b0147 Readd PORTSDIR for now we will only start removing them after 2016Q1 is branched
This gives more time for tools to get updated, available in packages etc before
bothering users
2015-10-15 07:36:38 +00:00

30 lines
574 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