diff options
author | joerg <joerg@pkgsrc.org> | 2008-05-22 20:11:55 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-05-22 20:11:55 +0000 |
commit | 943870fd1b9e1f0a1a0de1e7604b9a501ad00ad1 (patch) | |
tree | 0d73c786757287a5cf4c608c47285983c7ed22fc /mk/tools/replace.mk | |
parent | 88a4748a1c200dded8bba2bab1474d5786388acc (diff) | |
download | pkgsrc-943870fd1b9e1f0a1a0de1e7604b9a501ad00ad1.tar.gz |
Add ftp as tool. On NetBSD and DragonFly, this will use the system
version of tnftp, otherwise it will use net/tnftp. Require ftp as
bootstrap dependency when the package has files to fetch.
The dependency is currently unconditional and FETCH_CMD is set to
TOOLS_PATH.ftp by default.
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 0c517c81d32..55bd57146d9 100644 --- a/mk/tools/replace.mk +++ b/mk/tools/replace.mk @@ -1,4 +1,4 @@ -# $NetBSD: replace.mk,v 1.210 2008/04/15 13:00:11 tron Exp $ +# $NetBSD: replace.mk,v 1.211 2008/05/22 20:11:55 joerg Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -357,6 +357,16 @@ TOOLS_PATH.flex= ${TOOLS_PREFIX.flex}/bin/flex TOOLS_ALIASES.flex= lex .endif +.if !defined(TOOLS_IGNORE.ftp) && !empty(_USE_TOOLS:Mftp) +. if !empty(PKGPATH:Mnet/tnftp) +MAKEFLAGS+= TOOLS_IGNORE.ftp= +. elif !empty(_TOOLS_USE_PKGSRC.ftp:M[yY][eE][sS]) +TOOLS_DEPENDS.ftp?= tnftp-[0-9]*:../../net/tnftp +TOOLS_FIND_PREFIX+= TOOLS_PREFIX.ftp=ftp +TOOLS_PATH.ftp= ${TOOLS_PREFIX.ftp}/bin/ftp +. endif +.endif + .if !defined(TOOLS_IGNORE.gawk) && !empty(_USE_TOOLS:Mgawk) . if !empty(PKGPATH:Mlang/gawk) MAKEFLAGS+= TOOLS_IGNORE.gawk= |