Document the optional argument *_CONFIGURE_WITH can have.

PH:		D341
Reviewed by:	wblock, bcr
Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2014-07-04 10:35:34 +00:00
parent bbdd56bb8e
commit 34e88193fd
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=45205

View file

@ -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 &lt;bsd.port.options.mk&gt;
.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>