[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 |
|
---|
[e0dfa83] | 7 | <!ENTITY pkgconfig-download-http "http://people.freedesktop.org/~dbn/pkg-config-&pkgconfig-version;.tar.gz">
|
---|
| 8 | <!ENTITY pkgconfig-download-ftp "">
|
---|
| 9 | <!ENTITY pkgconfig-md5sum "015af476352e25409ae562b9d465e500">
|
---|
| 10 | <!ENTITY pkgconfig-size "1.9 MB">
|
---|
| 11 | <!ENTITY pkgconfig-buildsize "32 MB">
|
---|
| 12 | <!ENTITY pkgconfig-time "0.4 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">
|
---|
[c35d927] | 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 |
|
---|
[c35d927] | 32 | <para>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
|
---|
| 35 | execution.</para>
|
---|
[4b95c5d] | 36 |
|
---|
[4c77a949] | 37 | &lfs71_checked;
|
---|
[fbb93edd] | 38 |
|
---|
[e0dfa83] | 39 | <note><para>Pkg-config is part of LFS, but was omitted from the 7.0 and 7.1
|
---|
| 40 | releases. If you are using a system which includes it, there is nothing more to
|
---|
| 41 | do. If not, you should follow these instructions.</para></note>
|
---|
| 42 |
|
---|
[4b95c5d] | 43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 44 | <itemizedlist spacing="compact">
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (HTTP): <ulink url="&pkgconfig-download-http;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download (FTP): <ulink url="&pkgconfig-download-ftp;"/></para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download MD5 sum: &pkgconfig-md5sum;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download size: &pkgconfig-size;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated disk space required: &pkgconfig-buildsize;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Estimated build time: &pkgconfig-time;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </itemizedlist>
|
---|
| 64 |
|
---|
[b834dfc7] | 65 | <bridgehead renderas="sect3">Pkg-config Dependencies</bridgehead>
|
---|
| 66 |
|
---|
[08f1ff7] | 67 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[e0dfa83] | 68 | <para role="required"><xref linkend="popt"/></para>
|
---|
[b834dfc7] | 69 |
|
---|
[1039de3] | 70 | <para condition="html" role="usernotes">User Notes:
|
---|
| 71 | <ulink url="&blfs-wiki;/pkgconfig"/></para>
|
---|
| 72 |
|
---|
[4b95c5d] | 73 | </sect2>
|
---|
| 74 |
|
---|
| 75 | <sect2 role="installation">
|
---|
[c35d927] | 76 | <title>Installation of pkg-config</title>
|
---|
[4b95c5d] | 77 |
|
---|
[c35d927] | 78 | <para>Install <application>pkg-config</application> by running the
|
---|
| 79 | following commands:</para>
|
---|
[4b95c5d] | 80 |
|
---|
[e0dfa83] | 81 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 82 | --with-installed-popt \
|
---|
| 83 | --with-internal-glib \
|
---|
| 84 | --docdir=/usr/share/doc/pkg-config-&pkgconfig-version; &&
|
---|
[4b95c5d] | 85 | make</userinput></screen>
|
---|
| 86 |
|
---|
[fbb93edd] | 87 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
[4b95c5d] | 88 |
|
---|
| 89 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 90 |
|
---|
| 91 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 92 |
|
---|
| 93 | </sect2>
|
---|
| 94 |
|
---|
[e0dfa83] | 95 |
|
---|
[b834dfc7] | 96 | <sect2 role="commands">
|
---|
| 97 | <title>Command Explanations</title>
|
---|
| 98 |
|
---|
[e0dfa83] | 99 | <para><parameter>- -with-installed-popt</parameter>: This parameter causes
|
---|
| 100 | the package to use the installed popt, instead of the broken shipped version.</para>
|
---|
| 101 |
|
---|
| 102 | <para><parameter>- -with-internal-glib</parameter>: This parameter causes
|
---|
| 103 | the package to use the shipped version of glib2.</para>
|
---|
[b834dfc7] | 104 |
|
---|
| 105 | </sect2>
|
---|
[e0dfa83] | 106 |
|
---|
[4b95c5d] | 107 | <sect2 role="configuration">
|
---|
[c35d927] | 108 | <title>Configuring pkg-config</title>
|
---|
[4b95c5d] | 109 |
|
---|
[08f1ff7] | 110 | <para>The default setting for <envar>PKG_CONFIG_PATH</envar> is <filename
|
---|
[1bd6c599] | 111 | class='directory'>/usr/lib/pkgconfig:/usr/share/pkgconfig</filename>
|
---|
| 112 | because of the prefix used to install
|
---|
[08f1ff7] | 113 | <application>pkg-config</application>. You may add to
|
---|
| 114 | <envar>PKG_CONFIG_PATH</envar> by exporting additional paths on your system
|
---|
| 115 | where <filename class='extension'>.pc</filename> files are installed. Note
|
---|
| 116 | that <envar>PKG_CONFIG_PATH</envar> is only needed when compiling packages,
|
---|
| 117 | not during run-time.</para>
|
---|
[4b95c5d] | 118 |
|
---|
| 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | <sect2 role="content">
|
---|
| 122 | <title>Contents</title>
|
---|
| 123 |
|
---|
| 124 | <segmentedlist>
|
---|
| 125 | <segtitle>Installed Program</segtitle>
|
---|
| 126 | <segtitle>Installed Libraries</segtitle>
|
---|
| 127 | <segtitle>Installed Directories</segtitle>
|
---|
| 128 |
|
---|
| 129 | <seglistitem>
|
---|
| 130 | <seg>pkg-config</seg>
|
---|
| 131 | <seg>None</seg>
|
---|
| 132 | <seg>None</seg>
|
---|
| 133 | </seglistitem>
|
---|
| 134 | </segmentedlist>
|
---|
| 135 |
|
---|
| 136 | <variablelist>
|
---|
| 137 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 138 | <?dbfo list-presentation="list"?>
|
---|
| 139 | <?dbhtml list-presentation="table"?>
|
---|
| 140 |
|
---|
| 141 | <varlistentry id="pkg-config">
|
---|
| 142 | <term><command>pkg-config</command></term>
|
---|
| 143 | <listitem>
|
---|
[c35d927] | 144 | <para>returns meta information for the specified library or
|
---|
| 145 | package.</para>
|
---|
[4b95c5d] | 146 | <indexterm zone="pkgconfig pkg-config">
|
---|
| 147 | <primary sortas="b-pkg-config">pkg-config</primary>
|
---|
| 148 | </indexterm>
|
---|
| 149 | </listitem>
|
---|
| 150 | </varlistentry>
|
---|
| 151 |
|
---|
| 152 | </variablelist>
|
---|
| 153 |
|
---|
| 154 | </sect2>
|
---|
[7188fe3e] | 155 |
|
---|
[f45b1953] | 156 | </sect1>
|
---|