[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 |
|
---|
| 45 | <para>Prepare Pkg-config for compilation:</para>
|
---|
| 46 |
|
---|
[42130d6] | 47 | <screen><userinput remap="configure">./configure --prefix=/usr \
|
---|
| 48 | --with-internal-glib \
|
---|
| 49 | --disable-host-tool \
|
---|
[ff7785d] | 50 | --docdir=/usr/share/doc/pkg-config-&pkgconfig-version;</userinput></screen>
|
---|
[450e682e] | 51 |
|
---|
[63d6655] | 52 | <variablelist>
|
---|
| 53 | <title>The meaning of the new configure options:</title>
|
---|
| 54 |
|
---|
| 55 | <varlistentry>
|
---|
| 56 | <term><parameter>--with-internal-glib</parameter></term>
|
---|
| 57 | <listitem>
|
---|
[e4c405c] | 58 | <para>This will allow pkg-config to use its internal version of
|
---|
| 59 | Glib because an external version is not available in LFS.</para>
|
---|
[63d6655] | 60 | </listitem>
|
---|
| 61 | </varlistentry>
|
---|
| 62 |
|
---|
| 63 | <varlistentry>
|
---|
| 64 | <term><parameter>--disable-host-tool</parameter></term>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>This option disables the creation of an undesired hard link
|
---|
| 67 | to the pkg-config program.</para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </varlistentry>
|
---|
| 70 |
|
---|
| 71 | </variablelist>
|
---|
| 72 |
|
---|
[450e682e] | 73 | <para>Compile the package:</para>
|
---|
| 74 |
|
---|
| 75 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 76 |
|
---|
| 77 | <para>To test the results, issue:</para>
|
---|
| 78 |
|
---|
| 79 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
| 80 |
|
---|
| 81 | <para>Install the package:</para>
|
---|
| 82 |
|
---|
| 83 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 84 |
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 id="contents-pkgconfig" role="content">
|
---|
| 88 | <title>Contents of Pkg-config</title>
|
---|
| 89 |
|
---|
| 90 | <segmentedlist>
|
---|
| 91 | <segtitle>Installed program</segtitle>
|
---|
| 92 | <segtitle>Installed directory</segtitle>
|
---|
| 93 |
|
---|
| 94 | <seglistitem>
|
---|
| 95 | <seg>pkg-config</seg>
|
---|
[ca101ad] | 96 | <seg>/usr/share/doc/pkg-config-&pkgconfig-version;</seg>
|
---|
[450e682e] | 97 | </seglistitem>
|
---|
| 98 | </segmentedlist>
|
---|
| 99 |
|
---|
| 100 | <variablelist>
|
---|
| 101 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 102 | <?dbfo list-presentation="list"?>
|
---|
| 103 | <?dbhtml list-presentation="table"?>
|
---|
| 104 |
|
---|
| 105 | <varlistentry id="pkgconfig">
|
---|
| 106 | <!-- Don't remove the extra space, it prevents a FOP warning. -->
|
---|
| 107 | <term><command>pkg-config </command></term>
|
---|
| 108 | <listitem>
|
---|
[0d84af1] | 109 | <para>Returns meta information for the specified library or package
|
---|
[450e682e] | 110 | </para>
|
---|
| 111 | <indexterm zone="ch-system-pkgconfig pkgconfig">
|
---|
| 112 | <primary sortas="b-pkgconfig">pkg-config</primary>
|
---|
| 113 | </indexterm>
|
---|
| 114 | </listitem>
|
---|
| 115 | </varlistentry>
|
---|
| 116 |
|
---|
| 117 | </variablelist>
|
---|
| 118 |
|
---|
| 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | </sect1>
|
---|