diff options
author | joerg <joerg@pkgsrc.org> | 2008-10-08 15:38:46 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-10-08 15:38:46 +0000 |
commit | fc88d994e9cc55f6f2c1d7e9574ba78a64813431 (patch) | |
tree | d8a9c5ebd5958783ebea5cbffe98614d64b58e54 | |
parent | adea67ef1abf28ce66fe2b340b388556ddf42cfc (diff) | |
download | pkgsrc-fc88d994e9cc55f6f2c1d7e9574ba78a64813431.tar.gz |
Allow use of fetch as tool.
-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 ecd14ec0285..30721f193e7 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.213 2008/05/25 16:55:32 joerg Exp $ +# $NetBSD: replace.mk,v 1.214 2008/10/08 15:38:46 joerg Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -329,6 +329,16 @@ TOOLS_PATH.csh= ${TOOLS_PREFIX.csh}/bin/tcsh . endif .endif +.if !defined(TOOLS_IGNORE.fetch) && !empty(_USE_TOOLS:Mfetch) +. if !empty(PKGPATH:Mnet/fetch) +MAKEFLAGS+= TOOLS_IGNORE.fetch= +. elif !empty(_TOOLS_USE_PKGSRC.fetch:M[yY][eE][sS]) +TOOLS_DEPENDS.fetch?= fetch-[0-9]*:../../net/fetch +TOOLS_FIND_PREFIX+= TOOLS_PREFIX.fetch=fetch +TOOLS_PATH.fetch= ${TOOLS_PREFIX.fetch}/bin/fetch +. endif +.endif + .if !defined(TOOLS_IGNORE.file) && !empty(_USE_TOOLS:Mfile) . if !empty(PKGPATH:Msysutils/file) MAKEFLAGS+= TOOLS_IGNORE.file= |