blob: ec5878b79c8a5f31e644f9c836ebf45c18af20ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# $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}:devel/gmake${_GMAKE_EXT}
CONFIGURE_ENV+= MAKE=gmake${_GMAKE_EXT}
MAKE_CMD= gmake${_GMAKE_EXT}
.endif
|