diff --git a/en_US.ISO8859-1/books/porters-handbook/order/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/order/chapter.xml index f3bcfcc6d0..054d768ce3 100644 --- a/en_US.ISO8859-1/books/porters-handbook/order/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/order/chapter.xml @@ -407,7 +407,7 @@ - Options + Options and Helpers If the port uses the options framework, define @@ -418,6 +418,43 @@ *_DESC descriptions, then the options helpers. Try and sort all of those alphabetically. + + + Options Variables Order Example + + The FOO and BAR + options do not have a standard description, so one need to + be written. The other options already have one in + Mk/bsd.options.desc.mk so writing one + is not needed. The DOCS and + EXAMPLES use target helpers to install + their files, they are shown here for completeness, though + they belong in , so + other variables and targets could be inserted before + them. + + OPTIONS_DEFINE= DOCS EXAMPLES FOO BAR +OPTIONS_DEFAULT= FOO +OPTIONS_RADIO= SSL +OPTIONS_RADIO_SSL= OPENSSL GNUTLS +OPTIONS_SUB= yes + +BAR_DESC= Enable bar support +FOO_DESC= Enable foo support + +BAR_CONFIGURE_WITH= bar=${LOCALBASE} +FOO_CONFIGURE_ENABLE= foo +GNUTLS_CONFIGURE_ON= --with-ssl=gnutls +OPENSSL_CONFIGURE_ON= --with-ssl=openssl + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + cd ${WRKSRC}/ex && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} +