diff options
author | ryoon <ryoon@pkgsrc.org> | 2014-01-15 06:53:06 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2014-01-15 06:53:06 +0000 |
commit | 5fdab7521674be950c2958e978ee817e40dfdfb9 (patch) | |
tree | 830ad3e25b7a59f9b0e297b624fe70847b927e42 /mk/tools/gmake.mk | |
parent | dc6e77da9254cc94050eb348e9b7f102138a3134 (diff) | |
download | pkgsrc-5fdab7521674be950c2958e978ee817e40dfdfb9.tar.gz |
If system's gmake is older than pkgsrc requirement (3.81),
Use gmake from pkgsrc.
Fix libvpx build under Solaris 10, Solaris 10 has gmake 3.80,
and libvpx requires gmake 3.81 or later.
Diffstat (limited to 'mk/tools/gmake.mk')
-rw-r--r-- | mk/tools/gmake.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mk/tools/gmake.mk b/mk/tools/gmake.mk index c0a203495a6..d7ef101765c 100644 --- a/mk/tools/gmake.mk +++ b/mk/tools/gmake.mk @@ -1,4 +1,4 @@ -# $NetBSD: gmake.mk,v 1.3 2013/06/12 20:37:43 riastradh Exp $ +# $NetBSD: gmake.mk,v 1.4 2014/01/15 06:53:06 ryoon Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -64,6 +64,13 @@ _TOOLS_USE_PKGSRC.gmake!= \ MAKEVARS+= _TOOLS_USE_PKGSRC.gmake .endif +.if defined(_TOOLS_USE_PKGSRC.gmake) && !empty(_TOOLS_USE_PKGSRC.gmake) +. if !empty(_TOOLS_USE_PKGSRC.gmake:M[yY][eE][sS]) +TOOLS_FIND_PREFIX+= GMAKEDIR=gmake +TOOLS_PLATFORM.gmake= ${GMAKEDIR}/bin/gmake +. endif +.endif + # XXX Kludge to prevent pkgsrc's internal variable TARGET_ARCH for # cross-compilation from leaking into gmake's environment, where it # will break the default rules. Remove either when we start using |