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