Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / mk / install / bsd.install-vars.mk
blobd1bf155e5ad41b7671b557a5aabc604051d4e4e0
1 # $NetBSD: bsd.install-vars.mk,v 1.7 2007/07/02 14:54:10 joerg Exp $
3 # This Makefile fragment is included separately by bsd.pkg.mk and
4 # defines some variables which must be defined earlier than where
5 # bsd.install.mk is included.
7 # Package-settable variables:
9 # INSTALLATION_DIRS_FROM_PLIST
10 # If set to "yes", the static PLIST files of the package will
11 # be used to determine which directories need to be created before
12 # the "real" installation should start.
15 # If MANZ is defined, then we want the final man pages to be compressed.
16 # If MANZ is not defined, then we want the final man pages to be
17 # uncompressed.
19 # We need to figure out if during installation, we need either gunzip
20 # or gzip to decompress or compress the installed man pages. If a
21 # package sets MANCOMPRESSED to "yes" or "no", then it's an indication
22 # to the install code that the package itself installed the man pages
23 # either compressed or uncompressed. If a package sets
24 # MANCOMPRESSED_IF_MANZ, then the package uses BSD-style makefiles,
25 # so we need to determine if the BSD-style makefile causes the man
26 # pages to be compressed or not.
28 .if !defined(_MANCOMPRESSED)
29 . if defined(MANCOMPRESSED) && !empty(MANCOMPRESSED:M[yY][eE][sS])
30 _MANCOMPRESSED= yes
31 . else
32 _MANCOMPRESSED= no
33 . endif
34 . if defined(MANCOMPRESSED_IF_MANZ) && defined(PKGMAKECONF)
35 _MANCOMPRESSED!= \
36 { ${ECHO} ".include \""${PKGMAKECONF:Q}"\""; \
37 ${ECHO} "all:"; \
38 ${ECHO} ".if defined(MANZ)"; \
39 ${ECHO} " @${ECHO} yes"; \
40 ${ECHO} ".else"; \
41 ${ECHO} " @${ECHO} no"; \
42 ${ECHO} ".endif"; \
43 } | ${MAKE} -f - all
44 . endif
45 .endif
46 _MANZ= ${MANZ:Dyes:Uno}
47 MAKEVARS+= _MANCOMPRESSED _MANZ
49 STRIP_DEBUG?= no
51 .if !empty(_MANCOMPRESSED:M[yY][eE][sS]) && empty(_MANZ:M[yY][eE][sS])
52 USE_TOOLS+= gunzip
53 .endif
54 .if empty(_MANCOMPRESSED:M[yY][eE][sS]) && !empty(_MANZ:M[yY][eE][sS])
55 USE_TOOLS+= gzip
56 .endif