summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1996-11-17 18:54:51 +0000
committerobrien <obrien@FreeBSD.org>1996-11-17 18:54:51 +0000
commit2d7746967a8891a381a80efd8f7361a67851c4c2 (patch)
treebd06fbc8b5284ed2449ac9e8fdf078e11a82b736
parentdd2cd30e2eeee6991b4b4909465ff4ea38631153 (diff)
downloadFreeBSD-src-2d7746967a8891a381a80efd8f7361a67851c4c2.zip
FreeBSD-src-2d7746967a8891a381a80efd8f7361a67851c4c2.tar.gz
Explained the new MAN[1-9NL] varaiables.
-rw-r--r--share/doc/handbook/porting.sgml27
1 files changed, 17 insertions, 10 deletions
diff --git a/share/doc/handbook/porting.sgml b/share/doc/handbook/porting.sgml
index 60abb56..52a37a5 100644
--- a/share/doc/handbook/porting.sgml
+++ b/share/doc/handbook/porting.sgml
@@ -1,4 +1,4 @@
-<!-- $Id: porting.sgml,v 1.38 1996/11/11 06:50:44 asami Exp $ -->
+<!-- $Id: porting.sgml,v 1.39 1996/11/17 00:25:26 obrien Exp $ -->
<!-- The FreeBSD Documentation Project -->
<sect1><heading>Porting an existing piece of free software<label id="porting"></heading>
@@ -907,23 +907,30 @@ FETCH_DEPENDS= ncftp2:${PORTSDIR}/net/ncftp2
<heading>Compress manpages, strip binaries</heading>
<p>Do compress manpages and strip binaries. If the original
- source already does that, fine; otherwise, you can add a
- <tt>post-install</tt> rule to do it yourself. Make sure
- that you check the variable <tt>NOMANCOMPRESS</tt> that the
- user can set in <tt>/etc/make.conf</tt> to disable man page
- compression. Here is an example:
+ source already strips the binary, fine; otherwise, you can add a
+ <tt>post-install</tt> rule to do it yourself. Here is an example:
<tscreen><verb>
post-install:
strip ${PREFIX}/bin/xdl
- .if !defined(NOMANCOMPRESS)
- gzip -9nf ${PREFIX}/man/man1/xdl.1
- .endif
</verb></tscreen>
-
<p>Use the <tt>file</tt> command on the installed executable
to check whether the binary is stripped or not. If it
does not say `not stripped', it is stripped.
+ <p>To automagically compress the manpages, use the MAN[1-9LN]
+ variables. They will check the variable <tt>NOMANCOMPRESS</tt>
+ that the user can set in <tt>/etc/make.conf</tt> to disable man
+ page compression.
+ Place them last in the section below the MAINTAINER variable.
+ Here is an example:
+<tscreen><verb>
+MAN1= foo.1 bar.1
+MAN5= foo.conf.5
+MAN8= baz.8
+</verb></tscreen>
+ <p>Note that this is not usually nessicary with ports that are X
+ applications and use Imake to build.
+
<sect3>
<heading>INSTALL_* macros</heading>
<p>Do use the macros provided in <tt>bsd.port.mk</tt> to
OpenPOWER on IntegriCloud