Changeset View
Changeset View
Standalone View
Standalone View
en_US.ISO8859-1/books/porters-handbook/makefiles/chapter.xml
Show First 20 Lines • Show All 3,705 Lines • ▼ Show 20 Lines | |||||
PGSQL_DESC= Use PostgreSQL as backend | PGSQL_DESC= Use PostgreSQL as backend | ||||
BDB_DESC= Use Berkeley DB as backend | BDB_DESC= Use Berkeley DB as backend | ||||
LDAP_DESC= Build with LDAP authentication support | LDAP_DESC= Build with LDAP authentication support | ||||
PAM_DESC= Build with PAM support | PAM_DESC= Build with PAM support | ||||
SSL_DESC= Build with OpenSSL support | SSL_DESC= Build with OpenSSL support | ||||
OPTIONS_DEFAULT= PGSQL LDAP SSL | OPTIONS_DEFAULT= PGSQL LDAP SSL | ||||
# Will add USE_PGSQL=yes | |||||
PGSQL_USE= pgsql=yes | PGSQL_USE= pgsql=yes | ||||
# Will add --enable-postgres / --disable-postgres | # Will add --enable-postgres / --disable-postgres | ||||
PGSQL_CONFIGURE_ENABLE= postgres | PGSQL_CONFIGURE_ENABLE= postgres | ||||
ICU_LIB_DEPENDS= libicuuc.so:${PORTSDIR}/devel/icu | ICU_LIB_DEPENDS= libicuuc.so:${PORTSDIR}/devel/icu | ||||
# Will add --with-examples / --without-examples | # Will add --with-examples / --without-examples | ||||
EXAMPLES_CONFIGURE_WITH= examples | EXAMPLES_CONFIGURE_WITH= examples | ||||
▲ Show 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | </note> | ||||
</sect3> | </sect3> | ||||
<sect3 xml:id="options-use"> | <sect3 xml:id="options-use"> | ||||
<title><varname><replaceable>OPT</replaceable>_USE</varname></title> | <title><varname><replaceable>OPT</replaceable>_USE</varname></title> | ||||
<para>For each | <para>For each | ||||
<literal><replaceable>key</replaceable>=<replaceable>value</replaceable></literal> | <literal><replaceable>key</replaceable>=<replaceable>value</replaceable></literal> | ||||
pair in | pair in | ||||
<varname><replaceable>OPT</replaceable>_USE</varname> the | <varname><replaceable>OPT</replaceable>_USE</varname>, the | ||||
wblock: Needs a comma:
<varname><replaceable>OPT</replaceable>_USE</varname>**,** the | |||||
corresponding | corresponding | ||||
<varname>USE_<replaceable>KEY</replaceable></varname> | <varname>USE_<replaceable>KEY</replaceable></varname> is | ||||
Not Done Inline Actionss/will be set to/is set to/ wblock: s/will be set to/is set to/ | |||||
will be set to <replaceable>value</replaceable>. | set to <replaceable>value</replaceable> when option | ||||
If <replaceable>value</replaceable> has spaces in it, | <replaceable>OPT</replaceable> is selected. If | ||||
replace them with commas, they will be changed back to | <replaceable>value</replaceable> has spaces in it, replace | ||||
Not Done Inline Actionss/commas,/commas and/ wblock: s/commas,/commas and/ | |||||
spaces during processing. For example:</para> | them with commas and they will be changed back to spaces during | ||||
processing. For example:</para> | |||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 | ||||
OPT1_USE= mysql=yes xorg=x11,xextproto,xext,xrandr</programlisting> | OPT1_USE= mysql=yes xorg=x11,xextproto,xext,xrandr</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} | ||||
USE_MYSQL= yes | USE_MYSQL= yes | ||||
USE_XORG= x11 xextproto xext xrandr | USE_XORG= x11 xextproto xext xrandr | ||||
.endif</programlisting> | .endif</programlisting> | ||||
</sect3> | </sect3> | ||||
<sect3 xml:id="options-use-off"> | |||||
<title><varname><replaceable>OPT</replaceable>_USE_OFF</varname></title> | |||||
<para>For each | |||||
<literal><replaceable>key</replaceable>=<replaceable>value</replaceable></literal> | |||||
pair in | |||||
<varname><replaceable>OPT</replaceable>_USE_OFF</varname>, | |||||
Not Done Inline ActionsNeeds a comma after </varname>. wblock: Needs a comma after </varname>. | |||||
the corresponding | |||||
<varname>USE_<replaceable>KEY</replaceable></varname> is | |||||
set to <replaceable>value</replaceable> when option | |||||
Not Done Inline Actionss/will be set to/is set to/ wblock: s/will be set to/is set to/ | |||||
<replaceable>OPT</replaceable> is not | |||||
selected. If <replaceable>value</replaceable> has spaces in | |||||
it, replace them with commas and they will be changed back to | |||||
Not Done Inline Actionss/commas,/commas and/ wblock: s/commas,/commas and/ | |||||
spaces during processing. For example:</para> | |||||
<programlisting>OPTIONS_DEFINE= OPT1 | |||||
OPT1_USE_OFF= mysql=yes xorg=x11,xextproto,xext,xrandr</programlisting> | |||||
<para>is equivalent to:</para> | |||||
<programlisting>OPTIONS_DEFINE= OPT1 | |||||
.include <bsd.port.options.mk> | |||||
.if ! ${PORT_OPTIONS:MOPT1} | |||||
USE_MYSQL= yes | |||||
USE_XORG= x11 xextproto xext xrandr | |||||
.endif</programlisting> | |||||
</sect3> | |||||
<sect3 xml:id="options-configure_enable"> | <sect3 xml:id="options-configure_enable"> | ||||
<title><varname><replaceable>OPT</replaceable>_CONFIGURE_ENABLE</varname></title> | <title><varname><replaceable>OPT</replaceable>_CONFIGURE_ENABLE</varname></title> | ||||
<para>If | <para>If | ||||
<varname><replaceable>OPT</replaceable>_CONFIGURE_ENABLE</varname> | <varname><replaceable>OPT</replaceable>_CONFIGURE_ENABLE</varname> | ||||
is set then | is set, then | ||||
Not Done Inline Actionss/set/set,/ wblock: s/set/set,/ | |||||
<literal>--enable-${<replaceable>OPT</replaceable>_CONFIGURE_ENABLE}</literal> | <literal>--enable-${<replaceable>OPT</replaceable>_CONFIGURE_ENABLE}</literal> | ||||
or | or | ||||
<literal>--disable-${<replaceable>OPT</replaceable>_CONFIGURE_ENABLE}</literal> | <literal>--disable-${<replaceable>OPT</replaceable>_CONFIGURE_ENABLE}</literal> | ||||
will be added to <varname>CONFIGURE_ARGS</varname> depending | will be added to <varname>CONFIGURE_ARGS</varname> depending | ||||
on the value of the option | on the status of the option | ||||
<literal><replaceable>OPT</replaceable></literal>, for | <replaceable>OPT</replaceable>. An | ||||
example:</para> | optional argument can be specified with an | ||||
<literal>=</literal> symbol. This argument is only appended | |||||
to the | |||||
<literal>--enable-<replaceable>opt</replaceable></literal> | |||||
configure option. For example:</para> | |||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 OPT2 | ||||
OPT1_CONFIGURE_ENABLE= test</programlisting> | OPT1_CONFIGURE_ENABLE= test1 | ||||
OPT1_CONFIGURE_ENABLE= test2=exhaustive</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} | ||||
CONFIGURE_ARGS+= --enable-test | CONFIGURE_ARGS+= --enable-test1 | ||||
.else | .else | ||||
CONFIGURE_ARGS+= --disable-test | CONFIGURE_ARGS+= --disable-test1 | ||||
.endif | |||||
.if ${PORT_OPTIONS:MOPT2} | |||||
CONFIGURE_ARGS+= --enable-test2=exhaustive | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-test2 | |||||
.endif</programlisting> | .endif</programlisting> | ||||
</sect3> | </sect3> | ||||
<sect3 xml:id="options-configure_with"> | <sect3 xml:id="options-configure_with"> | ||||
<title><varname><replaceable>OPT</replaceable>_CONFIGURE_WITH</varname></title> | <title><varname><replaceable>OPT</replaceable>_CONFIGURE_WITH</varname></title> | ||||
<para>If | <para>If | ||||
<varname><replaceable>OPT</replaceable>_CONFIGURE_WITH</varname> | <varname><replaceable>OPT</replaceable>_CONFIGURE_WITH</varname> | ||||
is set then | is set then | ||||
<literal>--with-${<replaceable>OPT</replaceable>_CONFIGURE_WITH}</literal> | <literal>--with-${<replaceable>OPT</replaceable>_CONFIGURE_WITH}</literal> | ||||
or | or | ||||
<literal>--without-${<replaceable>OPT</replaceable>_CONFIGURE_WITH}</literal> | <literal>--without-${<replaceable>OPT</replaceable>_CONFIGURE_WITH}</literal> | ||||
will be added to <varname>CONFIGURE_ARGS</varname> depending | will be added to <varname>CONFIGURE_ARGS</varname> depending | ||||
on the status of the option | on the status of the option | ||||
<literal><replaceable>OPT</replaceable></literal>. An | <replaceable>OPT</replaceable>. An | ||||
optional argument can be specified with an | optional argument can be specified with an | ||||
<literal>=</literal> symbol. This argument is only appended | <literal>=</literal> symbol. This argument is only appended | ||||
to the | to the | ||||
<literal>--with-<replaceable>opt</replaceable></literal> | <literal>--with-<replaceable>opt</replaceable></literal> | ||||
configure option. For example:</para> | configure option. For example:</para> | ||||
<programlisting>OPTIONS_DEFINE= OPT1 OPT2 | <programlisting>OPTIONS_DEFINE= OPT1 OPT2 | ||||
OPT1_CONFIGURE_WITH= test1 | OPT1_CONFIGURE_WITH= test1 | ||||
Show All 17 Lines | |||||
CONFIGURE_ARGS+= --without-test2 | CONFIGURE_ARGS+= --without-test2 | ||||
.endif</programlisting> | .endif</programlisting> | ||||
</sect3> | </sect3> | ||||
<sect3 xml:id="options-configure_on"> | <sect3 xml:id="options-configure_on"> | ||||
<title><varname><replaceable>OPT</replaceable>_CONFIGURE_ON</varname></title> | <title><varname><replaceable>OPT</replaceable>_CONFIGURE_ON</varname></title> | ||||
<para>If | <para>If | ||||
<varname><replaceable>OPT</replaceable>_CONFIGURE_ON</varname> | <varname><replaceable>OPT</replaceable>_CONFIGURE_ON</varname> | ||||
is set then its value will be appended to | is set, its value is appended to | ||||
Not Done Inline Actionsis set, its value is appended to wblock: is set, its value is appended to | |||||
<varname>CONFIGURE_ARGS</varname> depending on the status of | <varname>CONFIGURE_ARGS</varname> when option | ||||
the option | <replaceable>OPT</replaceable> is | ||||
Not Done Inline Actionsselected. For example: wblock: selected. For example: | |||||
<literal><replaceable>OPT</replaceable></literal>, for | selected. For example:</para> | ||||
example:</para> | |||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 | ||||
OPT1_CONFIGURE_ON= --add-test</programlisting> | OPT1_CONFIGURE_ON= --add-test</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} | ||||
CONFIGURE_ARGS+= --add-test | CONFIGURE_ARGS+= --add-test | ||||
.endif</programlisting> | .endif</programlisting> | ||||
</sect3> | </sect3> | ||||
<sect3 xml:id="options-configure_off"> | <sect3 xml:id="options-configure_off"> | ||||
<title><varname><replaceable>OPT</replaceable>_CONFIGURE_OFF</varname></title> | <title><varname><replaceable>OPT</replaceable>_CONFIGURE_OFF</varname></title> | ||||
<para>If | <para>If | ||||
<varname><replaceable>OPT</replaceable>_CONFIGURE_OFF</varname> | <varname><replaceable>OPT</replaceable>_CONFIGURE_OFF</varname> | ||||
is set then its value will be appended to | is set, its value is appended to | ||||
Not Done Inline Actionsis set, its value is appended to wblock: is set, its value is appended to | |||||
<varname>CONFIGURE_ARGS</varname> depending on the status of | <varname>CONFIGURE_ARGS</varname> when option | ||||
the option | <replaceable>OPT</replaceable> is not | ||||
Not Done Inline Actionsselected. For example: wblock: selected. For example: | |||||
<literal><replaceable>OPT</replaceable></literal>, for | selected. For example:</para> | ||||
example:</para> | |||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 | ||||
OPT1_CONFIGURE_OFF= --no-test</programlisting> | OPT1_CONFIGURE_OFF= --no-test</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} | ||||
CONFIGURE_ARGS+= --no-test | CONFIGURE_ARGS+= --no-test | ||||
.endif</programlisting> | .endif</programlisting> | ||||
</sect3> | </sect3> | ||||
<sect3 xml:id="options-cmake_on"> | <sect3 xml:id="options-cmake_on"> | ||||
<title><varname><replaceable>OPT</replaceable>_CMAKE_ON</varname></title> | <title><varname><replaceable>OPT</replaceable>_CMAKE_ON</varname></title> | ||||
<para>If | <para>If | ||||
<varname><replaceable>OPT</replaceable>_CMAKE_ON</varname> | <varname><replaceable>OPT</replaceable>_CMAKE_ON</varname> | ||||
is set then its value will be appended to | is set, its value is appended to | ||||
Not Done Inline Actionsis set, its value is appended to wblock: is set, its value is appended to | |||||
<varname>CMAKE_ARGS</varname> depending on the status of the | <varname>CMAKE_ARGS</varname> when option | ||||
option <literal><replaceable>OPT</replaceable></literal>, | <replaceable>OPT</replaceable> is | ||||
Not Done Inline Actionsselected. For example: wblock: selected. For example: | |||||
for example:</para> | selected. For example:</para> | ||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 | ||||
OPT1_CMAKE_ON= -DTEST:BOOL=true</programlisting> | OPT1_CMAKE_ON= -DTEST:BOOL=true</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} | ||||
CMAKE_ARGS+= -DTEST:BOOL=true | CMAKE_ARGS+= -DTEST:BOOL=true | ||||
.endif</programlisting> | .endif</programlisting> | ||||
</sect3> | </sect3> | ||||
<sect3 xml:id="options-cmake_off"> | <sect3 xml:id="options-cmake_off"> | ||||
<title><varname><replaceable>OPT</replaceable>_CMAKE_OFF</varname></title> | <title><varname><replaceable>OPT</replaceable>_CMAKE_OFF</varname></title> | ||||
<para>If | <para>If | ||||
<varname><replaceable>OPT</replaceable>_CMAKE_OFF</varname> | <varname><replaceable>OPT</replaceable>_CMAKE_OFF</varname> | ||||
is set then its value will be appended to | is set, its value is appended to | ||||
Not Done Inline Actionsis set, its value is appended to wblock: is set, its value is appended to | |||||
<varname>CMAKE_ARGS</varname> depending on the status of the | <varname>CMAKE_ARGS</varname> when option | ||||
option <literal><replaceable>OPT</replaceable></literal>, | <replaceable>OPT</replaceable> is not | ||||
Not Done Inline Actionsselected. For example: wblock: selected. For example: | |||||
for example:</para> | selected. For example:</para> | ||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 | ||||
OPT1_CMAKE_OFF= -DTEST:BOOL=false</programlisting> | OPT1_CMAKE_OFF= -DTEST:BOOL=false</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} | ||||
CMAKE_ARGS+= -DTEST:BOOL=false | CMAKE_ARGS+= -DTEST:BOOL=false | ||||
.endif</programlisting> | .endif</programlisting> | ||||
</sect3> | </sect3> | ||||
<sect3 xml:id="options-qmake_on"> | |||||
<title><varname><replaceable>OPT</replaceable>_QMAKE_ON</varname></title> | |||||
<para>If | |||||
<varname><replaceable>OPT</replaceable>_QMAKE_ON</varname> | |||||
is set, its value is appended to | |||||
Not Done Inline Actionsis set, its value is appended to wblock: is set, its value is appended to | |||||
<varname>QMAKE_ARGS</varname> when option | |||||
<replaceable>OPT</replaceable> is | |||||
selected. For example:</para> | |||||
Not Done Inline Actionsselected. For example: wblock: selected. For example: | |||||
<programlisting>OPTIONS_DEFINE= OPT1 | |||||
OPT1_QMAKE_ON= -DTEST:BOOL=true</programlisting> | |||||
<para>is equivalent to:</para> | |||||
<programlisting>OPTIONS_DEFINE= OPT1 | |||||
.include <bsd.port.options.mk> | |||||
.if ${PORT_OPTIONS:MOPT1} | |||||
QMAKE_ARGS+= -DTEST:BOOL=true | |||||
.endif</programlisting> | |||||
</sect3> | |||||
<sect3 xml:id="options-qmake_off"> | |||||
<title><varname><replaceable>OPT</replaceable>_QMAKE_OFF</varname></title> | |||||
<para>If | |||||
<varname><replaceable>OPT</replaceable>_QMAKE_OFF</varname> | |||||
is set, its value is appended to | |||||
Not Done Inline Actionsis set, its value is appended to wblock: is set, its value is appended to | |||||
<varname>QMAKE_ARGS</varname> when option | |||||
<replaceable>OPT</replaceable> is not | |||||
selected. For example:</para> | |||||
Not Done Inline Actionsselected. For example: wblock: selected. For example: | |||||
<programlisting>OPTIONS_DEFINE= OPT1 | |||||
OPT1_QMAKE_OFF= -DTEST:BOOL=false</programlisting> | |||||
<para>is equivalent to:</para> | |||||
<programlisting>OPTIONS_DEFINE= OPT1 | |||||
.include <bsd.port.options.mk> | |||||
.if ! ${PORT_OPTIONS:MOPT1} | |||||
QMAKE_ARGS+= -DTEST:BOOL=false | |||||
.endif</programlisting> | |||||
</sect3> | |||||
<sect3 xml:id="options-dependencies"> | <sect3 xml:id="options-dependencies"> | ||||
<title>Dependencies</title> | <title>Dependencies</title> | ||||
<para>For any of these dependency types:</para> | <para>For any of these dependency types:</para> | ||||
<itemizedlist> | <itemizedlist> | ||||
<listitem> | <listitem> | ||||
<para><varname>PKG_DEPENDS</varname></para> | <para><varname>PKG_DEPENDS</varname></para> | ||||
Show All 24 Lines | <itemizedlist> | ||||
</listitem> | </listitem> | ||||
</itemizedlist> | </itemizedlist> | ||||
<sect4> | <sect4> | ||||
<title><varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable></varname></title> | <title><varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable></varname></title> | ||||
<para>If | <para>If | ||||
<varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable></varname> | <varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable></varname> | ||||
is defined then its value will be appended to | is set, its value is appended to | ||||
Not Done Inline Actionsis defined, its value is appended to wblock: is defined, its value is appended to | |||||
<literal><replaceable>ABOVEVARIABLE</replaceable></literal> | <literal><replaceable>ABOVEVARIABLE</replaceable></literal> | ||||
depending on the status of the option | when option | ||||
<literal><replaceable>OPT</replaceable></literal>, for | <replaceable>OPT</replaceable> is | ||||
example:</para> | selected. For example:</para> | ||||
Not Done Inline Actionsselected. For example: wblock: selected. For example: | |||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 | ||||
OPT1_LIB_DEPENDS= liba.so:${PORTSDIR}/devel/a</programlisting> | OPT1_LIB_DEPENDS= liba.so:${PORTSDIR}/devel/a</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} | ||||
LIB_DEPENDS+= liba.so:${PORTSDIR}/devel/a | LIB_DEPENDS+= liba.so:${PORTSDIR}/devel/a | ||||
.endif</programlisting> | .endif</programlisting> | ||||
</sect4> | </sect4> | ||||
<sect4> | <sect4> | ||||
<title><varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable>_OFF</varname></title> | <title><varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable>_OFF</varname></title> | ||||
<para>If | <para>If | ||||
<varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable>_OFF</varname> | <varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable>_OFF</varname> | ||||
is set then a dependency of type | is set, its value is appended to | ||||
Not Done Inline Actionsis defined, its value is appended to wblock: is defined, its value is appended to | |||||
<literal><replaceable>ABOVEVARIABLE</replaceable></literal> | <literal><replaceable>ABOVEVARIABLE</replaceable></literal> | ||||
will be added when option | when option | ||||
<literal><replaceable>OPT</replaceable></literal> is not | <replaceable>OPT</replaceable> is not | ||||
selected. For example:</para> | selected. For example:</para> | ||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 | ||||
OPT1_LIB_DEPENDS_OFF= liba.so:${PORTSDIR}/devel/a</programlisting> | OPT1_LIB_DEPENDS_OFF= liba.so:${PORTSDIR}/devel/a</programlisting> | ||||
<para>is equivalent to:</para> | <para>is equivalent to:</para> | ||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 | ||||
▲ Show 20 Lines • Show All 135 Lines • ▼ Show 20 Lines | <para>If the <literal>DOCS</literal> option is enabled, | ||||
would have a value of <literal>all</literal>.</para> | would have a value of <literal>all</literal>.</para> | ||||
</warning> | </warning> | ||||
<sect4> | <sect4> | ||||
<title><varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable></varname></title> | <title><varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable></varname></title> | ||||
<para>If | <para>If | ||||
<varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable></varname> | <varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable></varname> | ||||
is defined then its value will be appended to | is set, its value is appended to | ||||
Not Done Inline Actionsis defined, its value is appended to wblock: is defined, its value is appended to | |||||
<literal><replaceable>ABOVEVARIABLE</replaceable></literal> | <literal><replaceable>ABOVEVARIABLE</replaceable></literal> | ||||
depending on the status of the option | when option | ||||
<literal><replaceable>OPT</replaceable></literal>, for | <replaceable>OPT</replaceable> is | ||||
example:</para> | selected. For example:</para> | ||||
Not Done Inline Actionsselected. For example: wblock: selected. For example: | |||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 | ||||
OPT1_USES= gmake | OPT1_USES= gmake | ||||
OPT1_CFLAGS= -DTEST</programlisting> | OPT1_CFLAGS= -DTEST</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+= gmake | USES+= gmake | ||||
CFLAGS+= -DTEST | CFLAGS+= -DTEST | ||||
.endif</programlisting> | .endif</programlisting> | ||||
</sect4> | </sect4> | ||||
<sect4> | <sect4> | ||||
<title><varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable>_OFF</varname></title> | <title><varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable>_OFF</varname></title> | ||||
<para>If | <para>If | ||||
<varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable>_OFF</varname> | <varname><replaceable>OPT</replaceable>_<replaceable>ABOVEVARIABLE</replaceable>_OFF</varname> | ||||
is set then a flag | is set, its value is appended to | ||||
<literal><replaceable>ABOVEVARIABLE</replaceable></literal> | <literal><replaceable>ABOVEVARIABLE</replaceable></literal> | ||||
will be automatically set when option | when option | ||||
Not Done Inline ActionsThis sentence seems incomplete. wblock: This sentence seems incomplete. | |||||
<literal><replaceable>OPT</replaceable></literal> is not | <replaceable>OPT</replaceable> is not | ||||
selected. For example:</para> | selected. For example:</para> | ||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 | ||||
OPT1_USES_OFF=gmake</programlisting> | OPT1_USES_OFF=gmake</programlisting> | ||||
<para>is equivalent to:</para> | <para>is equivalent to:</para> | ||||
<programlisting>OPTIONS_DEFINE= OPT1 | <programlisting>OPTIONS_DEFINE= OPT1 | ||||
▲ Show 20 Lines • Show All 438 Lines • Show Last 20 Lines |
Needs a comma:
<varname><replaceable>OPT</replaceable>_USE</varname>, the