From 680a50eeddeaa322385a4ca9e88b43f731366fc7 Mon Sep 17 00:00:00 2001 From: asami Date: Wed, 6 Mar 1996 09:45:04 +0000 Subject: [PATCH] Recommend installing additional port documents to ${PREFIX}/share/doc, conditional to ${NOPORTDOCS} (commented out by default in /etc/make.conf). --- share/doc/handbook/porting.sgml | 37 ++++++++++++++++++++++++++++++--- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/share/doc/handbook/porting.sgml b/share/doc/handbook/porting.sgml index e8456b0e21ae..905e7e4f9978 100644 --- a/share/doc/handbook/porting.sgml +++ b/share/doc/handbook/porting.sgml @@ -1,4 +1,4 @@ - + Porting an existing piece of free software @@ -156,7 +156,7 @@ The pattern is the year followed by the month. # Date created: 5 December 1994 # Whom: asami # - # $Id: porting.sgml,v 1.13 1996/01/31 14:26:13 mpp Exp $ + # $Id: porting.sgml,v 1.14 1996/03/06 09:04:43 asami Exp $ # DISTNAME= oneko-1.1b @@ -759,6 +759,37 @@ FETCH_DEPENDS= ncftp2:${PORTSDIR}/net/ncftp2 to check whether the binary is stripped or not. If it doesn't say `not stripped', it is stripped. + + Install additional documentation +

If your software has some documentation other than the + standard man and info pages that you think is useful for the + user, install it under ${PREFIX}/share/doc. + This can be done, like the previous item, in the + post-install target. + +

Create a new directory for your port. The directory name + should reflect what the port is. This usually means + ${PKGNAME} minus the version part. However, + if you think the user might want different versions of the + port to be installed at the same time (e.g., tcl/tk), you + can use the whole ${PKGNAME}. + +

Make the installation dependent to the variable + NOPORTDOCS so that users can disable it in + /etc/make.conf, like this: + + post-install: + .if !defined(NOPORTDOCS) + mkdir -p ${PREFIX}/share/doc/xv + cp ${WRKSRC}/docs/xvdocs.ps ${PREFIX}/share/doc/xv + .endif + + +

Don't forget to add them to pkg/PLIST too! (Don't + worry about NOPORTDOCS here; there is currently no + way for the packages to read variables from + /etc/make.conf.) + Custom utilities

Don't rely on custom utilities in your local configure @@ -905,7 +936,7 @@ lib/libtcl.so.7.3 person who wrote this Makefile] # Whom: Satoshi Asami # - # $Id: porting.sgml,v 1.13 1996/01/31 14:26:13 mpp Exp $ + # $Id: porting.sgml,v 1.14 1996/03/06 09:04:43 asami Exp $ [ ^^^^ don't worry about this...it will be automatically filled in by CVS when it is committed to our repository] #