diff options
author | bapt <bapt@FreeBSD.org> | 2014-06-25 14:33:58 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-06-25 14:33:58 +0800 |
commit | a61444bc70bb578bc0dc2b526d7f682a71e4da53 (patch) | |
tree | 72479ce45e25d4c3ff8180da91253611d444403d /Mk | |
parent | 8107e0c68f1b12c309665dd98b3fc65beead32c1 (diff) | |
download | freebsd-ports-gnome-a61444bc70bb578bc0dc2b526d7f682a71e4da53.tar.gz freebsd-ports-gnome-a61444bc70bb578bc0dc2b526d7f682a71e4da53.tar.zst freebsd-ports-gnome-a61444bc70bb578bc0dc2b526d7f682a71e4da53.zip |
Add a lite argument to USES=gmake
This enforce usage of gmake-lite instead of gmake to avoid circular dependency
Suggested by: miwi
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/gmake.mk | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/Mk/Uses/gmake.mk b/Mk/Uses/gmake.mk index 7fd44b3ae76f..4ff7a0a84993 100644 --- a/Mk/Uses/gmake.mk +++ b/Mk/Uses/gmake.mk @@ -3,7 +3,7 @@ # Provide support to use the GNU make # # Feature: gmake -# Usage: USES=gmake +# Usage: USES=gmake[:lite] # # MAINTAINER: portmgr@FreeBSD.org @@ -11,11 +11,19 @@ _INCLUDE_USES_GMAKE_MK= yes .if defined(gmake_ARGS) -IGNORE= Incorrect 'USES+= gmake:${gmake_ARGS}' gmake takes no arguments +.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:${PORTSDIR}/devel/gmake -CONFIGURE_ENV+= MAKE=${GMAKE} -MAKE_CMD?= ${GMAKE} +BUILD_DEPENDS+= gmake${_GMAKE_EXT}:${PORTSDIR}/devel/gmake${_GMAKE_EXT} +CONFIGURE_ENV+= MAKE=gmake${_GMAKE_EXT} +MAKE_CMD?= gmake${_GMAKE_EXT} .endif |