2013-07-05 13:32:31 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Provide support to use the GNU make
|
|
|
|
#
|
|
|
|
# Feature: gmake
|
2014-06-25 06:33:58 +00:00
|
|
|
# Usage: USES=gmake[:lite]
|
2013-07-05 13:32:31 +00:00
|
|
|
#
|
2014-03-15 10:31:54 +00:00
|
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
2013-07-05 13:32:31 +00:00
|
|
|
|
|
|
|
.if !defined(_INCLUDE_USES_GMAKE_MK)
|
|
|
|
_INCLUDE_USES_GMAKE_MK= yes
|
|
|
|
|
2014-09-28 16:36:31 +00:00
|
|
|
.if !empty(gmake_ARGS)
|
2014-06-25 06:33:58 +00:00
|
|
|
.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
|
2013-07-05 13:32:31 +00:00
|
|
|
.endif
|
|
|
|
|
2016-03-27 01:23:25 +00:00
|
|
|
BUILD_DEPENDS+= gmake${_GMAKE_EXT}:devel/gmake${_GMAKE_EXT}
|
2014-06-25 06:33:58 +00:00
|
|
|
CONFIGURE_ENV+= MAKE=gmake${_GMAKE_EXT}
|
2015-03-23 03:59:04 +00:00
|
|
|
MAKE_CMD= gmake${_GMAKE_EXT}
|
2013-07-05 13:32:31 +00:00
|
|
|
|
|
|
|
.endif
|