Document the optional argument *_CONFIGURE_WITH can have.
PH: D341 Reviewed by: wblock, bcr Sponsored by: Absolight
This commit is contained in:
parent
bbdd56bb8e
commit
34e88193fd
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=45205
1 changed files with 18 additions and 7 deletions
|
@ -3836,22 +3836,33 @@ CONFIGURE_ARGS+= --disable-test
|
|||
<literal>--without-${<replaceable>OPT</replaceable>_CONFIGURE_WITH}</literal>
|
||||
will be added to <varname>CONFIGURE_ARGS</varname> depending
|
||||
on the status of the option
|
||||
<literal><replaceable>OPT</replaceable></literal>, for
|
||||
example:</para>
|
||||
<literal><replaceable>OPT</replaceable></literal>. An
|
||||
optional argument can be specified with an
|
||||
<literal>=</literal> symbol. This argument is only appended
|
||||
to the
|
||||
<literal>--with-<replaceable>opt</replaceable></literal>
|
||||
configure option. For example:</para>
|
||||
|
||||
<programlisting>OPTIONS_DEFINE= OPT1
|
||||
OPT1_CONFIGURE_WITH= test</programlisting>
|
||||
<programlisting>OPTIONS_DEFINE= OPT1 OPT2
|
||||
OPT1_CONFIGURE_WITH= test1
|
||||
OPT1_CONFIGURE_WITH= test2=exhaustive</programlisting>
|
||||
|
||||
<para>is equivalent to:</para>
|
||||
|
||||
<programlisting>OPTIONS_DEFINE= OPT1
|
||||
<programlisting>OPTIONS_DEFINE= OPT1 OPT2
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MOPT1}
|
||||
CONFIGURE_ARGS+= --with-test
|
||||
CONFIGURE_ARGS+= --with-test1
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-test
|
||||
CONFIGURE_ARGS+= --without-test1
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MOPT2}
|
||||
CONFIGURE_ARGS+= --with-test2=exhaustive
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-test2
|
||||
.endif</programlisting>
|
||||
</sect3>
|
||||
|
||||
|
|
Loading…
Reference in a new issue