aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1996-12-11 12:51:31 +0800
committerasami <asami@FreeBSD.org>1996-12-11 12:51:31 +0800
commited12298d5075a3d6c482f4ee6a26927c31fddb19 (patch)
treea41a451e3bd037c386365f0e36bdd3e9f5e3d1f9 /Mk
parentcaa18f7ed8d11cf129dde7107259b86551d6e25c (diff)
downloadfreebsd-ports-gnome-ed12298d5075a3d6c482f4ee6a26927c31fddb19.tar.gz
freebsd-ports-gnome-ed12298d5075a3d6c482f4ee6a26927c31fddb19.tar.zst
freebsd-ports-gnome-ed12298d5075a3d6c482f4ee6a26927c31fddb19.zip
Add support for uncompressing manpages that are already installed
compressed. Requested by: obrien Change name of -D option (to pkg_create) file to MESSAGES. (More friendly to filename completion.)
Diffstat (limited to '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