Move the Dependencies section before the Generic Variables one.

Sponsored by:	Absolight
This commit is contained in:
Mathieu Arnold 2014-02-27 18:33:40 +00:00
parent 4e4c00d703
commit b10e05026e
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=44090

View file

@ -3792,6 +3792,87 @@ CMAKE_ARGS+= -DTEST:BOOL=false
.endif</programlisting>
</sect3>
<sect3>
<title>Dependencies</title>
<para>For any of the following dependency type:</para>
<itemizedlist>
<listitem>
<para><varname>PKG_DEPENDS</varname></para>
</listitem>
<listitem>
<para><varname>EXTRACT_DEPENDS</varname></para>
</listitem>
<listitem>
<para><varname>PATCH_DEPENDS</varname></para>
</listitem>
<listitem>
<para><varname>FETCH_DEPENDS</varname></para>
</listitem>
<listitem>
<para><varname>BUILD_DEPENDS</varname></para>
</listitem>
<listitem>
<para><varname>LIB_DEPENDS</varname></para>
</listitem>
<listitem>
<para><varname>RUN_DEPENDS</varname></para>
</listitem>
</itemizedlist>
<sect4>
<title>X_ABOVEVARIABLE</title>
<para>If <varname>X_ABOVEVARIABLE</varname> is defined then
its value will be appended to
<varname>ABOVEVARIABLE</varname> depending on the status
of the option <varname>X</varname>, for example:</para>
<programlisting>OPTIONS_DEFINE= OPT1
OPT1_LIB_DEPENDS= liba.so:${PORTSDIR}/devel/a</programlisting>
<para>is equivalent to:</para>
<programlisting>OPTIONS_DEFINE= OPT1
.include &lt;bsd.port.options.mk&gt;
.if ${PORT_OPTIONS:MOPT1}
LIB_DEPENDS+= liba.so:${PORTSDIR}/devel/a
.endif</programlisting>
</sect4>
<sect4>
<title>X_ABOVEVARIABLE_OFF</title>
<para>If <varname>X_ABOVEVARIABLE_OFF</varname> is set then a
dependency of type <literal>ABOVEVARIABLE</literal> will be
added when option <literal>X</literal> is not selected. For
example:</para>
<programlisting>OPTIONS_DEFINE= OPT1
OPT1_LIB_DEPENDS_OFF= liba.so:${PORTSDIR}/devel/a</programlisting>
<para>is equivalent to:</para>
<programlisting>OPTIONS_DEFINE= OPT1
.include &lt;bsd.port.options.mk&gt;
. if ! ${PORT_OPTIONS:MOPT1}
LIB_DEPENDS+= liba.so:${PORTSDIR}/devel/a
.endif</programlisting>
</sect4>
</sect3>
<sect3>
<title>Generic Variables Replacement</title>
@ -3918,87 +3999,6 @@ USES+= gmake
</sect4>
</sect3>
<sect3>
<title>Dependencies</title>
<para>For any of the following dependency type:</para>
<itemizedlist>
<listitem>
<para><varname>PKG_DEPENDS</varname></para>
</listitem>
<listitem>
<para><varname>EXTRACT_DEPENDS</varname></para>
</listitem>
<listitem>
<para><varname>PATCH_DEPENDS</varname></para>
</listitem>
<listitem>
<para><varname>FETCH_DEPENDS</varname></para>
</listitem>
<listitem>
<para><varname>BUILD_DEPENDS</varname></para>
</listitem>
<listitem>
<para><varname>LIB_DEPENDS</varname></para>
</listitem>
<listitem>
<para><varname>RUN_DEPENDS</varname></para>
</listitem>
</itemizedlist>
<sect4>
<title>X_ABOVEVARIABLE</title>
<para>If <varname>X_ABOVEVARIABLE</varname> is defined then
its value will be appended to
<varname>ABOVEVARIABLE</varname> depending on the status
of the option <varname>X</varname>, for example:</para>
<programlisting>OPTIONS_DEFINE= OPT1
OPT1_LIB_DEPENDS= liba.so:${PORTSDIR}/devel/a</programlisting>
<para>is equivalent to:</para>
<programlisting>OPTIONS_DEFINE= OPT1
.include &lt;bsd.port.options.mk&gt;
.if ${PORT_OPTIONS:MOPT1}
LIB_DEPENDS+= liba.so:${PORTSDIR}/devel/a
.endif</programlisting>
</sect4>
<sect4>
<title>X_ABOVEVARIABLE_OFF</title>
<para>If <varname>X_ABOVEVARIABLE_OFF</varname> is set then a
dependency of type <literal>ABOVEVARIABLE</literal> will be
added when option <literal>X</literal> is not selected. For
example:</para>
<programlisting>OPTIONS_DEFINE= OPT1
OPT1_LIB_DEPENDS_OFF= liba.so:${PORTSDIR}/devel/a</programlisting>
<para>is equivalent to:</para>
<programlisting>OPTIONS_DEFINE= OPT1
.include &lt;bsd.port.options.mk&gt;
. if ! ${PORT_OPTIONS:MOPT1}
LIB_DEPENDS+= liba.so:${PORTSDIR}/devel/a
.endif</programlisting>
</sect4>
</sect3>
</sect2>
</sect1>