2007-11-02 10:02:57 +01:00
|
|
|
# $NetBSD: bsd.fetch-vars.mk,v 1.9 2007/11/02 09:02:57 rillig Exp $
|
2006-06-06 05:05:48 +02:00
|
|
|
#
|
2006-06-06 17:28:51 +02:00
|
|
|
# This Makefile fragment is included separately by bsd.pkg.mk and
|
|
|
|
# defines some variables which must be defined earlier than where
|
|
|
|
# bsd.fetch.mk is included.
|
2006-06-06 05:05:48 +02:00
|
|
|
#
|
|
|
|
# The following variables may be set by the user:
|
|
|
|
#
|
|
|
|
# DISTDIR is the top-level directory into which all original
|
|
|
|
# distribution files are fetched.
|
|
|
|
#
|
2006-07-27 09:41:40 +02:00
|
|
|
# DIST_PATH is a list of directories, separated by colons, in which
|
|
|
|
# the distribution files are looked up, additionally to DISTDIR.
|
|
|
|
# No files will ever be created in these directories.
|
|
|
|
#
|
2006-06-06 05:05:48 +02:00
|
|
|
# The following variables may be set in a package Makefile:
|
|
|
|
#
|
|
|
|
# DIST_SUBDIR is the subdirectory of ${DISTDIR} in which the original
|
|
|
|
# distribution files for the package are fetched.
|
|
|
|
#
|
|
|
|
# DISTFILES is the list of distribution files that are fetched.
|
|
|
|
#
|
2007-08-16 09:42:53 +02:00
|
|
|
# System-provided variables:
|
|
|
|
#
|
|
|
|
# DEFAULT_DISTFILES
|
|
|
|
# The default value for DISTFILES. This can be used when you need
|
|
|
|
# more than the usual distfiles.
|
|
|
|
#
|
2006-06-06 05:05:48 +02:00
|
|
|
|
2007-11-02 10:02:57 +01:00
|
|
|
_VARGROUPS+= fetch
|
|
|
|
_USER_VARS.fetch= DISTDIR DIST_PATH
|
|
|
|
_PKG_VARS.fetch= MASTER_SITES DIST_SUBDIR DISTFILES
|
|
|
|
_SYS_VARS.fetch= DEFAULT_DISTFILES
|
|
|
|
|
2006-06-06 17:28:51 +02:00
|
|
|
# The default DISTDIR is currently set in bsd.prefs.mk.
|
|
|
|
#DISTDIR?= ${PKGSRCDIR}/distfiles
|
|
|
|
|
2006-06-06 05:05:48 +02:00
|
|
|
_DISTDIR= ${DISTDIR}/${DIST_SUBDIR}
|
2007-08-16 09:42:53 +02:00
|
|
|
DEFAULT_DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
DISTFILES?= ${DEFAULT_DISTFILES}
|
2006-07-13 16:02:34 +02:00
|
|
|
|
|
|
|
# "Failover" fetching requires the digest tool to compute checksums to
|
2007-07-27 16:24:53 +02:00
|
|
|
# verify any fetched files. But if no checksumming is requested, don't
|
|
|
|
# add it.
|
2006-07-13 16:02:34 +02:00
|
|
|
#
|
2007-07-27 16:24:53 +02:00
|
|
|
.if defined(FAILOVER_FETCH) && !defined(NO_CHECKSUM)
|
2006-07-13 16:02:34 +02:00
|
|
|
USE_TOOLS+= ${FAILOVER_FETCH:Ddigest\:bootstrap}
|
2007-07-27 16:24:53 +02:00
|
|
|
.endif
|
2006-07-19 00:41:06 +02:00
|
|
|
|
|
|
|
# When mirroring distfiles which others may fetch, only fetch the
|
2006-07-19 18:01:40 +02:00
|
|
|
# distfiles if it is allowed to be re-distributed freely. Also,
|
|
|
|
# suppress some bootstrap-depends output.
|
2006-07-19 00:41:06 +02:00
|
|
|
#
|
|
|
|
.if make(mirror-distfiles)
|
2006-07-19 18:01:40 +02:00
|
|
|
NO_SKIP= # defined
|
|
|
|
_BOOTSTRAP_VERBOSE= # defined
|
2006-07-19 00:41:06 +02:00
|
|
|
.endif
|