OPTIONS_SUB supports SUB_LIST now.

Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2014-03-26 13:19:57 +00:00
parent e68f2b0ad5
commit 551ed207ec
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=44355

View file

@ -3675,7 +3675,8 @@ FOO_CONFIGURE_ENABLE= foo</programlisting>
<para>If <varname>OPTIONS_SUB</varname> is set to
<literal>yes</literal> then each of the options added to
<varname>OPTIONS_DEFINE</varname> will be added to
<varname>PLIST_SUB</varname>, for example:</para>
<varname>PLIST_SUB</varname> and
<varname>SUB_LIST</varname>, for example:</para>
<programlisting>OPTIONS_DEFINE= OPT1
OPTIONS_SUB= yes</programlisting>
@ -3688,14 +3689,17 @@ OPTIONS_SUB= yes</programlisting>
.if ${PORT_OPTIONS:MOPT1}
PLIST_SUB+= OPT1="" NO_OPT1="@comment "
SUB_LIST+= OPT1="" NO_OPT1="@comment "
.else
PLIST_SUB+= OPT1="@comment " NO_OPT1=""
SUB_LIST+= OPT1="@comment " NO_OPT1=""
.endif</programlisting>
<note>
<para>The value of <varname>OPTIONS_SUB</varname> is
ignored. Setting it to any value will add
<varname>PLIST_SUB</varname> entries for
<varname>PLIST_SUB</varname> and
<varname>SUB_LIST</varname> entries for
<emphasis>all</emphasis> options.</para>
</note>
</sect3>