aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1996-12-11 04:51:31 +0000
committerSatoshi Asami <asami@FreeBSD.org>1996-12-11 04:51:31 +0000
commit46afb636fd4763ce3ede00d91d45cfaaf6ef8766 (patch)
treeff86bea1246b689f814e6637741d90bd821008d9 /Mk/bsd.port.mk
parent0e223d0197774983a79259a3bbda7fa1111802ba (diff)
downloadports-46afb636fd4763ce3ede00d91d45cfaaf6ef8766.tar.gz
ports-46afb636fd4763ce3ede00d91d45cfaaf6ef8766.zip
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk20
1 files changed, 16 insertions, 4 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index f2a3c7b6227c..dbb98212e709 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -6,7 +6,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
#
-# $Id: bsd.port.mk,v 1.234 1996/12/08 05:40:38 obrien Exp $
+# $Id: bsd.port.mk,v 1.235 1996/12/09 07:08:16 asami Exp $
#
# Please view me with 4 column tabs!
@@ -398,8 +398,8 @@ PKG_ARGS+= -k ${PKGDIR}/DEINSTALL
.if exists(${PKGDIR}/REQ)
PKG_ARGS+= -r ${PKGDIR}/REQ
.endif
-.if exists(${PKGDIR}/DISPLAY)
-PKG_ARGS+= -D ${PKGDIR}/DISPLAY
+.if exists(${PKGDIR}/MESSAGE)
+PKG_ARGS+= -D ${PKGDIR}/MESSAGE
.endif
.if !defined(NO_MTREE) && defined(MTREE_LOCAL)
PKG_ARGS+= -m ${MTREE_LOCAL}
@@ -432,6 +432,7 @@ GREP?= /usr/bin/grep
GZCAT?= /usr/bin/gzcat
GZIP?= -9
GZIP_CMD?= /usr/bin/gzip -nf ${GZIP}
+GUNZIP_CMD?= /usr/bin/gunzip -f
SED?= /usr/bin/sed
# Used to print all the '===>' style prompts - override this to turn them off.
@@ -554,6 +555,10 @@ _MANPAGES+= ${MANL:S.^.man/${MANLANG}/manl/.}
_MANPAGES+= ${MANN:S.^.man/${MANLANG}/mann/.}
.endif
+.if defined(_MANPAGES) && defined(MANCOMPRESSED)
+_MANPAGES:= ${_MANPAGES:S/$/.gz/}
+.endif
+
.MAIN: all
################################################################
@@ -972,12 +977,19 @@ _PORT_USE: .USE
X11BASE=${X11BASE} \
/bin/sh ${SCRIPTDIR}/${.TARGET:S/^real-/post-/}; \
fi
-.if make(real-install) && defined(_MANPAGES) && !defined(NOMANCOMPRESS)
+.if make(real-install) && defined(_MANPAGES)
+.if defined(MANCOMPRESSED) && defined(NOMANCOMPRESS)
+ @${ECHO_MSG} "===> Uncompressing manual pages for ${PKGNAME}"
+.for manpage in ${_MANPAGES}
+ @${GUNZIP_CMD} ${MANPREFIX}/${manpage}
+.endfor
+.elif !defined(MANCOMPRESSED) && !defined(NOMANCOMPRESS)
@${ECHO_MSG} "===> Compressing manual pages for ${PKGNAME}"
.for manpage in ${_MANPAGES}
@${GZIP_CMD} ${MANPREFIX}/${manpage}
.endfor
.endif
+.endif
.if make(real-install) && !defined(NO_PKG_REGISTER)
@cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} fake-pkg
.endif