5.7 Dependencies, LIB_DEPENDS section:

- Reformat example to fit into single line, as customary in Makefiles
- Update Note about regular expressions and provide some examples
This commit is contained in:
Pav Lucistnik 2005-07-15 00:07:13 +00:00
parent 281a03d539
commit c72a8a3405
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=25115

View file

@ -3061,8 +3061,8 @@ PATCHFILES= patch1:test</programlisting>
shared library, <replaceable>dir</replaceable> is the
directory in which to find it in case it is not available, and
<replaceable>target</replaceable> is the target to call in that
directory. For example, <programlisting> LIB_DEPENDS=
jpeg.9:${PORTSDIR}/graphics/jpeg:install</programlisting>
directory. For example,
<programlisting>LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg:install</programlisting>
will check for a shared jpeg library with major version 9, and
descend into the <filename>graphics/jpeg</filename> subdirectory
of your ports tree to build and install it if it is not found.
@ -3071,9 +3071,12 @@ PATCHFILES= patch1:test</programlisting>
<literal>install</literal>).</para>
<note>
<para>The <replaceable>lib</replaceable> part is an argument given
to <command>ldconfig -r | grep -wF</command>. There shall be no
regular expressions in this variable.</para>
<para>The <replaceable>lib</replaceable> part is a regular
expression which is being looked up in the
<command>ldconfig -r</command> output. Values such as
<literal>intl.[5-7]</literal> and <literal>intl</literal> are
allowed. Latter will match a library <literal>intl</literal>
with any major version.</para>
</note>
<para>The dependency is checked twice, once from within the