Changeset View
Changeset View
Standalone View
Standalone View
en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 6,533 Lines • ▼ Show 20 Lines | <para>When option <replaceable>OPT</replaceable> is selected, | ||||
<replaceable>value</replaceable> has spaces in it, replace | <replaceable>value</replaceable> has spaces in it, replace | ||||
them with commas and they will be changed back to spaces | them with commas and they will be changed back to spaces | ||||
during processing. | during processing. | ||||
<varname><replaceable>OPT</replaceable>_USE_OFF</varname> | <varname><replaceable>OPT</replaceable>_USE_OFF</varname> | ||||
works the same way, but when <literal>OPT</literal> is | works the same way, but when <literal>OPT</literal> is | ||||
<emphasis>not</emphasis> selected. For example:</para> | <emphasis>not</emphasis> selected. For example:</para> | ||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 | ||||
OPT1_USES= xorg | |||||
OPT1_USE= mysql=yes xorg=x11,xextproto,xext,xrandr | OPT1_USE= mysql=yes xorg=x11,xextproto,xext,xrandr | ||||
OPT1_USE_OFF= openssl=yes</programlisting> | OPT1_USE_OFF= openssl=yes</programlisting> | ||||
<para>is equivalent to:</para> | <para>is equivalent to:</para> | ||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${PORT_OPTIONS:MOPT1} | .if ${PORT_OPTIONS:MOPT1} | ||||
USES+= xorg | |||||
USE_MYSQL= yes | USE_MYSQL= yes | ||||
USE_XORG= x11 xextproto xext xrandr | USE_XORG= x11 xextproto xext xrandr | ||||
mat: That line should happen before `USE_MYSQL`. | |||||
.else | .else | ||||
USE_OPENSSL= yes | USE_OPENSSL= yes | ||||
.endif</programlisting> | .endif</programlisting> | ||||
</sect3> | </sect3> | ||||
<sect3 xml:id="options-configure-helpers"> | <sect3 xml:id="options-configure-helpers"> | ||||
<title><varname>CONFIGURE_ARGS</varname> Helpers</title> | <title><varname>CONFIGURE_ARGS</varname> Helpers</title> | ||||
▲ Show 20 Lines • Show All 436 Lines • ▼ Show 20 Lines | <example xml:id="options-implies-ex1"> | ||||
<para>This port has a <literal>X11</literal> option, and a | <para>This port has a <literal>X11</literal> option, and a | ||||
<literal>GNOME</literal> option that needs the | <literal>GNOME</literal> option that needs the | ||||
<literal>X11</literal> option to be selected to | <literal>X11</literal> option to be selected to | ||||
build.</para> | build.</para> | ||||
<programlisting>OPTIONS_DEFINE= X11 GNOME | <programlisting>OPTIONS_DEFINE= X11 GNOME | ||||
OPTIONS_DEFAULT= X11 | OPTIONS_DEFAULT= X11 | ||||
X11_USES= xorg | |||||
X11_USE= xorg=xi,xextproto | X11_USE= xorg=xi,xextproto | ||||
GNOME_USE= gnome=gtk30 | GNOME_USE= gnome=gtk30 | ||||
GNOME_IMPLIES= X11</programlisting> | GNOME_IMPLIES= X11</programlisting> | ||||
</example> | </example> | ||||
</sect3> | </sect3> | ||||
<sect3 xml:id="options-prevents"> | <sect3 xml:id="options-prevents"> | ||||
<title><varname><replaceable>OPT</replaceable>_PREVENTS</varname> | <title><varname><replaceable>OPT</replaceable>_PREVENTS</varname> | ||||
▲ Show 20 Lines • Show All 1,176 Lines • Show Last 20 Lines |
That line should happen before USE_MYSQL.