Fri Mar 20 16:23:48 2009 UTC ()
Only add dependency on the fetch program, if there is something to
fetch.


(joerg)
diff -r1.12 -r1.13 pkgsrc/mk/fetch/bsd.fetch-vars.mk

cvs diff -r1.12 -r1.13 pkgsrc/mk/fetch/bsd.fetch-vars.mk (expand / switch to unified diff)

--- pkgsrc/mk/fetch/bsd.fetch-vars.mk 2009/02/10 18:55:54 1.12
+++ pkgsrc/mk/fetch/bsd.fetch-vars.mk 2009/03/20 16:23:48 1.13
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: bsd.fetch-vars.mk,v 1.12 2009/02/10 18:55:54 joerg Exp $ 1# $NetBSD: bsd.fetch-vars.mk,v 1.13 2009/03/20 16:23:48 joerg Exp $
2# 2#
3# This Makefile fragment is included separately by bsd.pkg.mk and 3# This Makefile fragment is included separately by bsd.pkg.mk and
4# defines some variables which must be defined earlier than where 4# defines some variables which must be defined earlier than where
5# bsd.fetch.mk is included. 5# bsd.fetch.mk is included.
6# 6#
7# The following variables may be set by the user: 7# The following variables may be set by the user:
8# 8#
9# DISTDIR is the top-level directory into which all original 9# DISTDIR is the top-level directory into which all original
10# distribution files are fetched. 10# distribution files are fetched.
11# 11#
12# DIST_PATH is a list of directories, separated by colons, in which 12# DIST_PATH is a list of directories, separated by colons, in which
13# the distribution files are looked up, additionally to DISTDIR. 13# the distribution files are looked up, additionally to DISTDIR.
14# No files will ever be created in these directories. 14# No files will ever be created in these directories.
@@ -73,15 +73,17 @@ NO_SKIP= # defined @@ -73,15 +73,17 @@ NO_SKIP= # defined
73_BOOTSTRAP_VERBOSE= # defined 73_BOOTSTRAP_VERBOSE= # defined
74.endif 74.endif
75 75
76.if !empty(_CKSUMFILES) && defined(FAILOVER_FETCH) 76.if !empty(_CKSUMFILES) && defined(FAILOVER_FETCH)
77USE_TOOLS+= digest:bootstrap 77USE_TOOLS+= digest:bootstrap
78.endif 78.endif
79 79
80_FETCH_TOOLS.ftp= ftp 80_FETCH_TOOLS.ftp= ftp
81_FETCH_TOOLS.fetch= fetch 81_FETCH_TOOLS.fetch= fetch
82_FETCH_DEPENDS.wget= wget-[0-9]*:../../net/wget 82_FETCH_DEPENDS.wget= wget-[0-9]*:../../net/wget
83_FETCH_DEPENDS.curl= curl-[0-9]*:../../www/curl 83_FETCH_DEPENDS.curl= curl-[0-9]*:../../www/curl
84_FETCH_TOOLS.manual= false 84_FETCH_TOOLS.manual= false
85 85
 86.if !empty(_ALLFILES)
86USE_TOOLS+= ${_FETCH_TOOLS.${FETCH_USING}:C/$/:bootstrap/} 87USE_TOOLS+= ${_FETCH_TOOLS.${FETCH_USING}:C/$/:bootstrap/}
87BOOTSTRAP_DEPENDS+= ${_FETCH_DEPENDS.${FETCH_USING}} 88BOOTSTRAP_DEPENDS+= ${_FETCH_DEPENDS.${FETCH_USING}}
 89.endif