From 9d8ee0511113119456677108c1b59056ff1d59c2 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Fri, 30 Sep 2005 07:58:34 +0000 Subject: [PATCH] OPTIONS handling: - move two paras about user side of this feature to the "background" part of the text - document two critical quirks - fix indentation in the example - refresh bugs part --- .../books/porters-handbook/book.sgml | 48 +++++++++++-------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/en_US.ISO8859-1/books/porters-handbook/book.sgml b/en_US.ISO8859-1/books/porters-handbook/book.sgml index 8ca69b8e54..a91f3d882a 100644 --- a/en_US.ISO8859-1/books/porters-handbook/book.sgml +++ b/en_US.ISO8859-1/books/porters-handbook/book.sgml @@ -3698,6 +3698,20 @@ ${PREFIX}/man/ja/man4/baz.4.gz WITH_* and WITHOUT_* options you used to build this port! + + When the user runs make config (or runs + make build for the first time), the framework will + check for + /var/db/ports/portname/options. + If that file does not exist, it will use the values of + OPTIONS to create a dialogbox where the options + can be enabled or disabled. Then the + options file is saved and the selected + variables will be used when building the port. + + Use make showconfig to see the saved + configuration. Use make rmconfig to remove the + saved configuration. @@ -3711,25 +3725,23 @@ ${PREFIX}/man/ja/man4/baz.4.gz OFF. Multiple repetitions of these three fields are allowed. - When the user runs make config (or runs - make build for the first time), the framework will - check for /var/db/ports/portname - /options. - If that file does not exist, it will use the values of - OPTIONS to create a dialogbox where the options - can be enabled or disabled. Then the options file is saved and the - selected variables will be used when building the port. - - Use make showconfig to see the saved - configuration. Use make rmconfig to remove the - saved configuration. + OPTIONS definition must appear before + the inclusion of bsd.port.pre.mk. + The WITH_* and WITHOUT_* + variables can only be tested after the inclusion of + bsd.port.pre.mk. Due to a deficiency + in the infrastructure, you can only test + WITH_* variables for options, which are + ON by default, and + WITHOUT_* variables for options, which + defaults to OFF. Example Simple use of <makevar>OPTIONS</makevar> - OPTIONS= FOO "Enable option foo" On \ - BAR "Support feature bar" Off + OPTIONS= FOO "Enable option foo" On \ + BAR "Support feature bar" Off .include <bsd.port.pre.mk> @@ -3750,12 +3762,8 @@ RUN_DEPENDS+= bar:${PORTSDIR}/bar/bar Brokenness - make index does not follow - OPTIONS yet (ports/75727) - - - PACKAGE_BUILDING is ignoring - OPTIONS (ports/75727?) + OPTIONS are ignored in + BATCH mode.