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
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
])
34 . if defined
(MANCOMPRESSED_IF_MANZ
) && defined
(PKGMAKECONF
)
36 { ${ECHO} ".include \""${PKGMAKECONF
:Q
}"\""; \
38 ${ECHO} ".if defined(MANZ)"; \
39 ${ECHO} " @${ECHO} yes"; \
41 ${ECHO} " @${ECHO} no"; \
46 _MANZ
= ${MANZ
:Dyes
:Uno
}
47 MAKEVARS
+= _MANCOMPRESSED _MANZ
51 .if
!empty
(_MANCOMPRESSED
:M
[yY
][eE
][sS
]) && empty
(_MANZ
:M
[yY
][eE
][sS
])
54 .if empty
(_MANCOMPRESSED
:M
[yY
][eE
][sS
]) && !empty
(_MANZ
:M
[yY
][eE
][sS
])