From fa9d0501d149fa4c257d41f10f1d2f906ddfd308 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Tue, 3 Oct 1995 07:11:51 +0000 Subject: [PATCH] Updated description of *_DEPENDS. Changed "ldconfig" to "/sbin/ldconfig" in examples. --- share/doc/handbook/porting.sgml | 64 +++++++++++++++++++++++++-------- 1 file changed, 49 insertions(+), 15 deletions(-) diff --git a/share/doc/handbook/porting.sgml b/share/doc/handbook/porting.sgml index 6f965f25b27..88597ed880f 100644 --- a/share/doc/handbook/porting.sgml +++ b/share/doc/handbook/porting.sgml @@ -1,4 +1,4 @@ - + Porting applications @@ -125,7 +125,7 @@ # Date created: 5 December 1994 # Whom: asami # -# $Id: porting.sgml,v 1.4 1995/08/19 15:38:25 jfieber Exp $ +# $Id: porting.sgml,v 1.5 1995/09/27 00:46:24 jmz Exp $ # DISTNAME= oneko-1.1b @@ -558,7 +558,7 @@ work/foozolix-1.0/ Dependencies -

Many ports depend on other ports. There are three +

Many ports depend on other ports. There are five variables that you can use to ensure that all the required bits will be on the user's machine. @@ -579,22 +579,56 @@ LIB_DEPENDS= tcl\\.7\\.:${PORTSDIR}/lang/tcl to `ldconfig -r | grep', so periods should be escaped by two backslashes like in the example above. - EXEC_DEPENDS -

This variable specifies executables this port depends - on. It is a list of `exec:dir' pairs - where exec is the name of the executable, and - dir is the directory in which to find it in case - it's not available. For example, + RUN_DEPENDS +

This variable specifies executables this port depends on + during run-time. It is a list of `exec:dir' + pairs where exec is the name of the executable, + and dir is the directory in which to find it in + case it's not available. For example, -EXEC_DEPENDS= wish:${PORTSDIR}/x11/tk +RUN_DEPENDS= wish:${PORTSDIR}/x11/tk will check for an executable called `wish', and descend into the x11/tk subdirectory of your ports tree to build and install it if it's not found. + + The dependency is checked from within the install + target. Also, the name of the dependency is put in to the + package so that pkg_add will automatically + install it if it is not on the user's system. + + BUILD_DEPENDS +

This variable specifies executables this port requires to + build. Like RUN_DEPENDS, it is a list of + `exec:dir' pairs. For example, + +BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip + + will check for an executable called `unzip', and + descend into the archivers/unzip subdirectory of + your ports tree to build and install it if it's not found. + + Note that `build' here means everything from extracting to + compilation. The dependency is checked from within the + extract target. + + FETCH_DEPENDS +

This variable specifies executables this port requires to + fetch. Like the previous two, it is a list of + `exec:dir' pairs. For example, + +FETCH_DEPENDS= ncftp2:${PORTSDIR}/net/ncftp2 + + will check for an executable called `ncftp2', and + descend into the net/ncftp2 subdirectory of + your ports tree to build and install it if it's not found. + + The dependency is checked from within the fetch + target. DEPENDS

If there is a dependency that doesn't fall into either of - the above two categories, or your port requires to have + the above four categories, or your port requires to have the source of the other port extracted (i.e., having them installed is not enough), then use this variable. This is just a list of directories, as there is nothing to check, @@ -790,7 +824,7 @@ post-install: ldconfig

If your port installs a shared library, add a post-install target to your Makefile that runs - `ldconfig -m' on the directory where the new + `/sbin/ldconfig -m' on the directory where the new library is installed (usually ${PREFIX}/lib) to register it into the shared library cache. @@ -801,7 +835,7 @@ post-install: as in: lib/libtcl.so.7.3 -@exec ldconfig -m %D/%F +@exec /sbin/ldconfig -m %D/lib

Note: the `-m' option is new since 2.0.5 and @@ -848,7 +882,7 @@ lib/libtcl.so.7.3 person who wrote this Makefile] # Whom: Satoshi Asami # -# $Id: porting.sgml,v 1.4 1995/08/19 15:38:25 jfieber Exp $ +# $Id: porting.sgml,v 1.5 1995/09/27 00:46:24 jmz Exp $ [ ^^^^ don't worry about this...it will be automatically filled in by CVS when it is committed to our repository] # @@ -877,7 +911,7 @@ PATCHFILES= xdvi-18.patch1.gz xdvi-18.patch2.gz MAINTAINER= asami@FreeBSD.ORG [dependencies -- can be empty] -EXEC_DEPENDS= gs:${PORTSDIR}/print/ghostscript +RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm [this section is for other standard bsd.port.mk variables that don't belong to