diff options
Diffstat (limited to 'mk/tools/replace.mk')
-rw-r--r-- | mk/tools/replace.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/tools/replace.mk b/mk/tools/replace.mk index df34c516ba0..067a28dd4d5 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.250 2012/07/06 14:08:50 wiz Exp $ +# $NetBSD: replace.mk,v 1.251 2012/07/27 10:48:36 jperkin Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -331,6 +331,16 @@ TOOLS_PATH.csh= ${TOOLS_PREFIX.csh}/bin/tcsh . endif .endif +.if !defined(TOOLS_IGNORE.curl) && !empty(_USE_TOOLS:Mcurl) +. if !empty(PKGPATH:Mwww/curl) +MAKEFLAGS+= TOOLS_IGNORE.curl= +. elif !empty(_TOOLS_USE_PKGSRC.curl:M[yY][eE][sS]) +TOOLS_DEPENDS.curl?= curl-[0-9]*:../../www/curl +TOOLS_FIND_PREFIX+= TOOLS_PREFIX.curl=curl +TOOLS_PATH.curl= ${TOOLS_PREFIX.curl}/bin/curl +. endif +.endif + .if !defined(TOOLS_IGNORE.fetch) && !empty(_USE_TOOLS:Mfetch) . if !empty(PKGPATH:Mnet/fetch) MAKEFLAGS+= TOOLS_IGNORE.fetch= |