summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorfredb <fredb@pkgsrc.org>2001-03-26 17:04:50 +0000
committerfredb <fredb@pkgsrc.org>2001-03-26 17:04:50 +0000
commit4a384ed1359e0d5b08a2c6c1c7dac6f922c743c0 (patch)
tree4d66355df33d2ff624c1829da0b822a8e7963967 /mk
parentec58eab759388f9a7bd9ce0c4da28781de916be5 (diff)
downloadpkgsrc-4a384ed1359e0d5b08a2c6c1c7dac6f922c743c0.tar.gz
Correctly handle the common case where "MANZ" setting is protected
by ".ifdef BSD_PKG_MK" in /etc/mk.conf, but "MANZ" handling, in the package, relys on the system's "bsd.man.mk", which _CAN_ _NOT_ see variables protected by ".ifdef BSD_PKG_MK". By passing "MANZ" in through "MAKE_ENV", only if "MANZ" is defined, we ensure that the PLIST handling and the package's own handling are on the same wavelength.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index f1621f02457..15f9ff98c82 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.697 2001/03/26 00:55:39 hubertf Exp $
+# $NetBSD: bsd.pkg.mk,v 1.698 2001/03/26 17:04:50 fredb Exp $
#
# This file is in the public domain.
#
@@ -3345,6 +3345,7 @@ tags:
# to MANZ's value, set MANCOMPRESSED if MANZ is set
.if defined(MANCOMPRESSED_IF_MANZ) && defined(MANZ)
MANCOMPRESSED= yes
+MAKE_ENV+= MANZ="${MANZ}"
.endif
# generate ${PLIST} from ${PLIST_SRC} by: