- Update for recent fixes in OPTIONS code

This commit is contained in:
Pav Lucistnik 2007-04-02 23:23:17 +00:00
parent ae57a25e87
commit 8f298770d7
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=29917

View file

@ -3843,6 +3843,11 @@ ${PREFIX}/man/de/man3/baz.3.gz</programlisting>
<filename>options</filename> file is saved and the selected
variables will be used when building the port.</para>
<para>If a new version of the port adds new
<makevar>OPTIONS</makevar>, the dialog will be presented to the
user, with the saved values of old <makevar>OPTIONS</makevar>
prefilled.</para>
<para>Use <command>make showconfig</command> to see the saved
configuration. Use <command>make rmconfig</command> to remove the
saved configuration.</para>
@ -3865,19 +3870,6 @@ ${PREFIX}/man/de/man3/baz.3.gz</programlisting>
variables can only be tested after the inclusion of
<filename>bsd.port.pre.mk</filename>.</para>
<para>
Due to a deficiency in the infrastructure, you can only test
<makevar>WITH_*</makevar> variables for options which are
<literal>OFF</literal> by default, and
<makevar>WITHOUT_*</makevar> variables for options which
default to <literal>ON</literal>. The reasoning behind this:
when packages are built with <makevar>PACKAGE_BUILDING</makevar> or
<makevar>BATCH</makevar> defined, the <command>config</command>
target is not run, and therefore no <makevar>OPTIONS</makevar>
are selected. This would cause <command>make depends</command> and
<command>make describe</command> to break for ports not following
the aforementioned rule.</para>
<sect3>
<title>Example</title>
<example id="ports-options-simple-use">