7a2c97d53f
stages, and that installs dependencies listed in BOOTSTRAP_DEPENDS. The bootstrap-depends step works just like the normal depends step and honors the value of DEPENDS_TARGET. It's now possible to add dependencies solely to facilitate fetching the distfiles, e.g. BOOTSTRAP_DEPENDS+= curl-[0-9]*:../../www/curl * Teach the tools framework about ":bootstrap" as a tools modifier which indicates the tool should be added as a dependency via BOOTSTRAP_DEPENDS. * Add "digest" to the tools framework. * Use USE_TOOLS+=digest:bootstrap to force pkgsrc to install digest before anything else. Get rid of unused "uptodate-digest" target and related digest version-checking code. * Finish the refactoring work: split checksum-related code out of bsd.pkg.mk and into pkgsrc/mk/checksum and replace the "checksum" target command list with a script that does all the real work. * Make DIGEST_ALGORITHMS and PATCH_DIGEST_ALGORITHM into private variables by prepending them with an underscore. Also, rename _PATCH_DIGEST_ALGORITHM to _PATCH_DIGEST_ALGORITHMS and adjust the makepatchsum target to allow that variable to contain a list of algorithms, all of which are used when creating the patch checksums for ${DISTINFO_FILE}.
64 lines
2.1 KiB
Makefile
64 lines
2.1 KiB
Makefile
# $NetBSD: bsd.install-vars.mk,v 1.3 2006/07/13 14:02:34 jlam Exp $
|
|
#
|
|
# This Makefile fragment is included separately by bsd.pkg.mk and
|
|
# defines some variables which must be defined earlier than where
|
|
# bsd.install.mk is included.
|
|
#
|
|
|
|
# If a package sets INSTALLATION_DIRS, then it's known to pre-create
|
|
# all of the directories that it needs at install-time, so we don't need
|
|
# mtree to do it for us.
|
|
#
|
|
.if defined(INSTALLATION_DIRS) && !empty(INSTALLATION_DIRS)
|
|
NO_MTREE= yes
|
|
.endif
|
|
#
|
|
# Certain classes of packages never need to run mtree during installation
|
|
# because they manage the creation of their own directories.
|
|
#
|
|
.if (${PKG_INSTALLATION_TYPE} == "pkgviews") && defined(CROSSBASE)
|
|
NO_MTREE= yes
|
|
.endif
|
|
|
|
USE_TOOLS+= ${NO_MTREE:D:Umtree\:bootstrap}
|
|
|
|
# If MANZ is defined, then we want the final man pages to be compressed.
|
|
# If MANZ is not defined, then we want the final man pages to be
|
|
# uncompressed.
|
|
#
|
|
# We need to figure out if during installation, we need either gunzip
|
|
# or gzip to decompress or compress the installed man pages. If a
|
|
# package sets MANCOMPRESSED to "yes" or "no", then it's an indication
|
|
# to the install code that the package itself installed the man pages
|
|
# either compressed or uncompressed. If a package sets
|
|
# MANCOMPRESSED_IF_MANZ, then the package uses BSD-style makefiles,
|
|
# so we need to determine if the BSD-style makefile causes the man
|
|
# pages to be compressed or not.
|
|
#
|
|
.if !defined(_MANCOMPRESSED)
|
|
. if defined(MANCOMPRESSED) && !empty(MANCOMPRESSED:M[yY][eE][sS])
|
|
_MANCOMPRESSED= yes
|
|
. else
|
|
_MANCOMPRESSED= no
|
|
. endif
|
|
. if defined(MANCOMPRESSED_IF_MANZ) && defined(PKGMAKECONF)
|
|
_MANCOMPRESSED!= \
|
|
{ ${ECHO} ".include \""${PKGMAKECONF:Q}"\""; \
|
|
${ECHO} "all:"; \
|
|
${ECHO} ".if defined(MANZ)"; \
|
|
${ECHO} " @${ECHO} yes"; \
|
|
${ECHO} ".else"; \
|
|
${ECHO} " @${ECHO} no"; \
|
|
${ECHO} ".endif"; \
|
|
} | ${MAKE} -f - all
|
|
. endif
|
|
.endif
|
|
_MANZ= ${MANZ:Dyes:Uno}
|
|
MAKEVARS+= _MANCOMPRESSED _MANZ
|
|
|
|
.if !empty(_MANCOMPRESSED:M[yY][eE][sS]) && empty(_MANZ:M[yY][eE][sS])
|
|
USE_TOOLS+= gunzip
|
|
.endif
|
|
.if empty(_MANCOMPRESSED:M[yY][eE][sS]) && !empty(_MANZ:M[yY][eE][sS])
|
|
USE_TOOLS+= gzip
|
|
.endif
|