Index: en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
===================================================================
--- en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
+++ en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
@@ -4425,6 +4425,8 @@
+ The following variables can be used.
+
OPT_ABOVEVARIABLE
@@ -4574,6 +4576,8 @@
+ The following variables can be used.
+
Some variables are not in this list, in particular
PKGNAMEPREFIX and
@@ -4662,6 +4666,136 @@
+
+
+ Generic Target Additions
+
+ For any of these targets:
+
+
+
+ pre-fetch
+
+
+
+ post-fetch
+
+
+
+ pre-extract
+
+
+
+ post-extract
+
+
+
+ pre-patch
+
+
+
+ post-patch
+
+
+
+ pre-configure
+
+
+
+ post-configure
+
+
+
+ pre-build
+
+
+
+ post-build
+
+
+
+ pre-install
+
+
+
+ post-install
+
+
+
+ pre-package
+
+
+
+ post-package
+
+
+
+ pre-stage
+
+
+
+ post-stage
+
+
+
+ The following build targets can be used.
+
+
+
+ ABOVETARGET-OPT-on
+
+ When option OPT is
+ selected, the target
+ ABOVETARGET-OPT-on,
+ if defined, is executed after
+ ABOVETARGET.
+ For example:
+
+ OPTIONS_DEFINE= OPT1
+
+post-patch-OPT1-on:
+ @${REINPLACE_CMD} -e '/opt1/d' ${WRKSRC}/Makefile
+
+ is equivalent to:
+
+ OPTIONS_DEFINE= OPT1
+
+.include <bsd.port.options.mk>
+
+post-patch:
+.if ${PORT_OPTIONS:MOPT1}
+ @${REINPLACE_CMD} -e '/opt1/d' ${WRKSRC}/Makefile
+.endif
+
+
+
+
+ ABOVETARGET-OPT-off
+
+ When option OPT is
+ not selected, the target
+ ABOVETARGET-OPT-off,
+ if defined, is executed after
+ ABOVETARGET.
+ For example:
+
+ OPTIONS_DEFINE= OPT1
+
+post-patch-OPT1-off:
+ @${REINPLACE_CMD} -e '/opt1/d' ${WRKSRC}/Makefile
+
+ is equivalent to:
+
+ OPTIONS_DEFINE= OPT1
+
+.include <bsd.port.options.mk>
+
+post-patch:
+.if !${PORT_OPTIONS:MOPT1}
+ @${REINPLACE_CMD} -e '/opt1/d' ${WRKSRC}/Makefile
+.endif
+
+