[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[6f57c53] | 7 | <!ENTITY pkgconfig-download-http "http://pkgconfig.freedesktop.org/releases/pkg-config-&pkgconfig-version;.tar.gz">
|
---|
[e0dfa83] | 8 | <!ENTITY pkgconfig-download-ftp "">
|
---|
[6f57c53] | 9 | <!ENTITY pkgconfig-md5sum "3a4c9feab14b6719afd8904945d9b4e4">
|
---|
[e0dfa83] | 10 | <!ENTITY pkgconfig-size "1.9 MB">
|
---|
[6f57c53] | 11 | <!ENTITY pkgconfig-buildsize "26 MB">
|
---|
| 12 | <!ENTITY pkgconfig-time "0.5 SBU">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[52d949e8] | 15 | <sect1 id="pkgconfig" xreflabel="pkg-config-&pkgconfig-version;">
|
---|
[4b95c5d] | 16 | <?dbhtml filename="pkgconfig.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[c35d927] | 23 | <title>pkg-config-&pkgconfig-version;</title>
|
---|
[4b95c5d] | 24 |
|
---|
| 25 | <indexterm zone="pkgconfig">
|
---|
[6f57c53] | 26 | <primary sortas="a-pkg-config">pkg-config</primary>
|
---|
[4b95c5d] | 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
[c35d927] | 30 | <title>Introduction to pkg-config</title>
|
---|
[4b95c5d] | 31 |
|
---|
[6f57c53] | 32 | <para>
|
---|
| 33 | The <application>pkg-config</application> package contains a tool for
|
---|
| 34 | passing the include path and/or library paths to build tools during the
|
---|
| 35 | <command>configure</command> and <command>make</command> file execution.
|
---|
| 36 | </para>
|
---|
[4b95c5d] | 37 |
|
---|
[4c77a949] | 38 | &lfs71_checked;
|
---|
[fbb93edd] | 39 |
|
---|
[6f57c53] | 40 | <note>
|
---|
| 41 | <para>
|
---|
| 42 | Pkg-config is part of LFS, but was omitted from the 7.0 and 7.1
|
---|
| 43 | releases. If you are using a system which includes it, there is
|
---|
| 44 | nothing more to do. If not, you should follow these instructions.
|
---|
| 45 | </para>
|
---|
| 46 | </note>
|
---|
[e0dfa83] | 47 |
|
---|
[4b95c5d] | 48 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 49 | <itemizedlist spacing="compact">
|
---|
| 50 | <listitem>
|
---|
[6f57c53] | 51 | <para>
|
---|
| 52 | Download (HTTP): <ulink url="&pkgconfig-download-http;"/>
|
---|
| 53 | </para>
|
---|
[4b95c5d] | 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
[6f57c53] | 56 | <para>
|
---|
| 57 | Download (FTP): <ulink url="&pkgconfig-download-ftp;"/>
|
---|
| 58 | </para>
|
---|
[4b95c5d] | 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
[6f57c53] | 61 | <para>
|
---|
| 62 | Download MD5 sum: &pkgconfig-md5sum;
|
---|
| 63 | </para>
|
---|
[4b95c5d] | 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
[6f57c53] | 66 | <para>
|
---|
| 67 | Download size: &pkgconfig-size;
|
---|
| 68 | </para>
|
---|
[4b95c5d] | 69 | </listitem>
|
---|
| 70 | <listitem>
|
---|
[6f57c53] | 71 | <para>
|
---|
| 72 | Estimated disk space required: &pkgconfig-buildsize;
|
---|
| 73 | </para>
|
---|
[4b95c5d] | 74 | </listitem>
|
---|
| 75 | <listitem>
|
---|
[6f57c53] | 76 | <para>
|
---|
| 77 | Estimated build time: &pkgconfig-time;
|
---|
| 78 | </para>
|
---|
[4b95c5d] | 79 | </listitem>
|
---|
| 80 | </itemizedlist>
|
---|
| 81 |
|
---|
[1039de3] | 82 | <para condition="html" role="usernotes">User Notes:
|
---|
[6f57c53] | 83 | <ulink url="&blfs-wiki;/pkgconfig"/>
|
---|
| 84 | </para>
|
---|
[4b95c5d] | 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
[c35d927] | 88 | <title>Installation of pkg-config</title>
|
---|
[4b95c5d] | 89 |
|
---|
[c35d927] | 90 | <para>Install <application>pkg-config</application> by running the
|
---|
| 91 | following commands:</para>
|
---|
[4b95c5d] | 92 |
|
---|
[e0dfa83] | 93 | <screen><userinput>./configure --prefix=/usr \
|
---|
[6f57c53] | 94 | --docdir=/usr/share/doc/pkg-config-&pkgconfig-version; \
|
---|
| 95 | --with-internal-glib &&
|
---|
[4b95c5d] | 96 | make</userinput></screen>
|
---|
| 97 |
|
---|
[6f57c53] | 98 | <para>
|
---|
| 99 | To test the results, issue: <command>make check</command>.
|
---|
| 100 | </para>
|
---|
[4b95c5d] | 101 |
|
---|
[6f57c53] | 102 | <para>
|
---|
| 103 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 104 | </para>
|
---|
[4b95c5d] | 105 |
|
---|
| 106 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 107 |
|
---|
| 108 | </sect2>
|
---|
| 109 |
|
---|
[b834dfc7] | 110 | <sect2 role="commands">
|
---|
| 111 | <title>Command Explanations</title>
|
---|
| 112 |
|
---|
[6f57c53] | 113 | <para>
|
---|
| 114 | <option>--with-internal-glib</option>: This switch causes
|
---|
| 115 | the package to use the shipped version of GLib2.
|
---|
| 116 | </para>
|
---|
[b834dfc7] | 117 |
|
---|
| 118 | </sect2>
|
---|
[e0dfa83] | 119 |
|
---|
[4b95c5d] | 120 | <sect2 role="configuration">
|
---|
[c35d927] | 121 | <title>Configuring pkg-config</title>
|
---|
[4b95c5d] | 122 |
|
---|
[6f57c53] | 123 | <para>
|
---|
| 124 | The default setting for <envar>PKG_CONFIG_PATH</envar> is <filename
|
---|
| 125 | class="directory">/usr/lib/pkgconfig:/usr/share/pkgconfig</filename>
|
---|
| 126 | because of the prefix used to install
|
---|
| 127 | <application>pkg-config</application>. You may add to
|
---|
| 128 | <envar>PKG_CONFIG_PATH</envar> by exporting additional paths on your system
|
---|
| 129 | where <filename class="extension">.pc</filename> files are installed. Note
|
---|
| 130 | that <envar>PKG_CONFIG_PATH</envar> is only needed when compiling packages,
|
---|
| 131 | not during run-time.
|
---|
| 132 | </para>
|
---|
[4b95c5d] | 133 |
|
---|
| 134 | </sect2>
|
---|
| 135 |
|
---|
| 136 | <sect2 role="content">
|
---|
| 137 | <title>Contents</title>
|
---|
| 138 |
|
---|
| 139 | <segmentedlist>
|
---|
| 140 | <segtitle>Installed Program</segtitle>
|
---|
| 141 |
|
---|
| 142 | <seglistitem>
|
---|
[6f57c53] | 143 | <seg>
|
---|
| 144 | pkg-config
|
---|
| 145 | </seg>
|
---|
[4b95c5d] | 146 | </seglistitem>
|
---|
| 147 | </segmentedlist>
|
---|
| 148 |
|
---|
| 149 | <variablelist>
|
---|
| 150 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 151 | <?dbfo list-presentation="list"?>
|
---|
| 152 | <?dbhtml list-presentation="table"?>
|
---|
| 153 |
|
---|
| 154 | <varlistentry id="pkg-config">
|
---|
| 155 | <term><command>pkg-config</command></term>
|
---|
| 156 | <listitem>
|
---|
[6f57c53] | 157 | <para>
|
---|
| 158 | returns meta information for the specified library or
|
---|
| 159 | package.
|
---|
| 160 | </para>
|
---|
[4b95c5d] | 161 | <indexterm zone="pkgconfig pkg-config">
|
---|
| 162 | <primary sortas="b-pkg-config">pkg-config</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 |
|
---|
| 167 | </variablelist>
|
---|
| 168 |
|
---|
| 169 | </sect2>
|
---|
[7188fe3e] | 170 |
|
---|
[f45b1953] | 171 | </sect1>
|
---|