[450e682e] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-pkgconfig" role="wrap">
|
---|
| 9 | <?dbhtml filename="pkg-config.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
[6070f51] | 12 | <productname>pkg-config</productname>
|
---|
[450e682e] | 13 | <productnumber>&pkgconfig-version;</productnumber>
|
---|
| 14 | <address>&pkgconfig-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>Pkg-config-&pkgconfig-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-pkgconfig">
|
---|
[58675ce] | 20 | <primary sortas="a-pkgconfig">Pkgconfig</primary>
|
---|
[450e682e] | 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
| 25 |
|
---|
[6a156bab] | 26 | <para>The pkg-config package contains a tool for passing the include path
|
---|
| 27 | and/or library paths to build tools during the configure and make phases
|
---|
| 28 | of package installations.</para>
|
---|
[450e682e] | 29 |
|
---|
| 30 | <segmentedlist>
|
---|
| 31 | <segtitle>&buildtime;</segtitle>
|
---|
| 32 | <segtitle>&diskspace;</segtitle>
|
---|
| 33 |
|
---|
| 34 | <seglistitem>
|
---|
[fb386e0] | 35 | <seg>&pkgconfig-fin-sbu;</seg>
|
---|
| 36 | <seg>&pkgconfig-fin-du;</seg>
|
---|
[450e682e] | 37 | </seglistitem>
|
---|
| 38 | </segmentedlist>
|
---|
| 39 |
|
---|
| 40 | </sect2>
|
---|
| 41 |
|
---|
| 42 | <sect2 role="installation">
|
---|
| 43 | <title>Installation of Pkg-config</title>
|
---|
| 44 |
|
---|
[85eca6fd] | 45 | &update-config-text;
|
---|
| 46 |
|
---|
| 47 | <screen><userinput remap="pre">tar &update-config-arg;
|
---|
| 48 | cp config.{guess,sub} glib/</userinput></screen>
|
---|
| 49 |
|
---|
[450e682e] | 50 | <para>Prepare Pkg-config for compilation:</para>
|
---|
| 51 |
|
---|
[42130d6] | 52 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 53 | --with-internal-glib \
|
---|
| 54 | --disable-host-tool \
|
---|
[ff7785d] | 55 | --docdir=/usr/share/doc/pkg-config-&pkgconfig-version;</userinput></screen>
|
---|
[450e682e] | 56 |
|
---|
[63d6655] | 57 | <variablelist>
|
---|
| 58 | <title>The meaning of the new configure options:</title>
|
---|
| 59 |
|
---|
| 60 | <varlistentry>
|
---|
| 61 | <term><parameter>--with-internal-glib</parameter></term>
|
---|
| 62 | <listitem>
|
---|
[e4c405c] | 63 | <para>This will allow pkg-config to use its internal version of
|
---|
| 64 | Glib because an external version is not available in LFS.</para>
|
---|
[63d6655] | 65 | </listitem>
|
---|
| 66 | </varlistentry>
|
---|
| 67 |
|
---|
| 68 | <varlistentry>
|
---|
| 69 | <term><parameter>--disable-host-tool</parameter></term>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>This option disables the creation of an undesired hard link
|
---|
| 72 | to the pkg-config program.</para>
|
---|
| 73 | </listitem>
|
---|
| 74 | </varlistentry>
|
---|
| 75 |
|
---|
| 76 | </variablelist>
|
---|
| 77 |
|
---|
[450e682e] | 78 | <para>Compile the package:</para>
|
---|
| 79 |
|
---|
| 80 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 81 |
|
---|
| 82 | <para>To test the results, issue:</para>
|
---|
| 83 |
|
---|
| 84 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
| 85 |
|
---|
| 86 | <para>Install the package:</para>
|
---|
| 87 |
|
---|
| 88 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 89 |
|
---|
| 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2 id="contents-pkgconfig" role="content">
|
---|
| 93 | <title>Contents of Pkg-config</title>
|
---|
| 94 |
|
---|
| 95 | <segmentedlist>
|
---|
| 96 | <segtitle>Installed program</segtitle>
|
---|
| 97 | <segtitle>Installed directory</segtitle>
|
---|
| 98 |
|
---|
| 99 | <seglistitem>
|
---|
| 100 | <seg>pkg-config</seg>
|
---|
[ca101ad] | 101 | <seg>/usr/share/doc/pkg-config-&pkgconfig-version;</seg>
|
---|
[450e682e] | 102 | </seglistitem>
|
---|
| 103 | </segmentedlist>
|
---|
| 104 |
|
---|
| 105 | <variablelist>
|
---|
| 106 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 107 | <?dbfo list-presentation="list"?>
|
---|
| 108 | <?dbhtml list-presentation="table"?>
|
---|
| 109 |
|
---|
| 110 | <varlistentry id="pkgconfig">
|
---|
| 111 | <!-- Don't remove the extra space, it prevents a FOP warning. -->
|
---|
| 112 | <term><command>pkg-config </command></term>
|
---|
| 113 | <listitem>
|
---|
[0d84af1] | 114 | <para>Returns meta information for the specified library or package
|
---|
[450e682e] | 115 | </para>
|
---|
| 116 | <indexterm zone="ch-system-pkgconfig pkgconfig">
|
---|
| 117 | <primary sortas="b-pkgconfig">pkg-config</primary>
|
---|
| 118 | </indexterm>
|
---|
| 119 | </listitem>
|
---|
| 120 | </varlistentry>
|
---|
| 121 |
|
---|
| 122 | </variablelist>
|
---|
| 123 |
|
---|
| 124 | </sect2>
|
---|
| 125 |
|
---|
| 126 | </sect1>
|
---|