summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2005-05-17 22:07:56 +0000
committerjlam <jlam>2005-05-17 22:07:56 +0000
commitebe9c96f14a2dd23915cc2cc685b500ea4b6600a (patch)
tree642a9ffa294dc88f3cc3c5ab243622e07432b8b0 /mk
parentf1f4d74cb5630cc8a7cc9e04137c31963b70c3fd (diff)
downloadpkgsrc-ebe9c96f14a2dd23915cc2cc685b500ea4b6600a.tar.gz
Turn _MANCOMPRESSED into a strictly "yes" and "no" variable
(case-sensitive) to simplify writing the do-install target code that automatically compresses or decompresses man pages after installation.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index a11fdc8fd2e..db5a4441714 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1668 2005/05/17 21:46:59 dmcmahill Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1669 2005/05/17 22:07:56 jlam Exp $
#
# This file is in the public domain.
#
@@ -876,7 +876,11 @@ PKGSRC_USE_TOOLS+= shlock
# the BSD-style makefile causes the man pages to be compressed or not.
#
.if !defined(_MANCOMPRESSED)
-_MANCOMPRESSED?= ${MANCOMPRESSED:Uno}
+. 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}"\""; \