[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 |
|
---|
[52d949e8] | 7 | <!ENTITY pkgconfig-download-http "http://pkgconfig.freedesktop.org/releases/pkg-config-&pkgconfig-version;.tar.gz">
|
---|
[fb2e525] | 8 | <!ENTITY pkgconfig-download-ftp "&gentoo-ftp-repo;/pkg-config-&pkgconfig-version;.tar.gz">
|
---|
[5600683] | 9 | <!-- <!ENTITY pkgconfig-download-ftp "&gnome-download-ftp;/pkgconfig/&pkgconfig-version;/pkgconfig-&pkgconfig-version;.tar.gz"> -->
|
---|
[6c6e9edd] | 10 | <!ENTITY pkgconfig-md5sum "fd5c547e9d66ba49bc735ccb8c791f2a">
|
---|
| 11 | <!ENTITY pkgconfig-size "1.0 MB">
|
---|
| 12 | <!ENTITY pkgconfig-buildsize "12 MB">
|
---|
[c35d927] | 13 | <!ENTITY pkgconfig-time "0.3 SBU">
|
---|
[52d29f7] | 14 | ]>
|
---|
| 15 |
|
---|
[52d949e8] | 16 | <sect1 id="pkgconfig" xreflabel="pkg-config-&pkgconfig-version;">
|
---|
[4b95c5d] | 17 | <?dbhtml filename="pkgconfig.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
[c35d927] | 24 | <title>pkg-config-&pkgconfig-version;</title>
|
---|
[4b95c5d] | 25 |
|
---|
| 26 | <indexterm zone="pkgconfig">
|
---|
[c35d927] | 27 | <primary sortas="a-Pkg-config">Pkg-config</primary>
|
---|
[4b95c5d] | 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
[c35d927] | 31 | <title>Introduction to pkg-config</title>
|
---|
[4b95c5d] | 32 |
|
---|
[c35d927] | 33 | <para>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
|
---|
| 36 | execution.</para>
|
---|
[4b95c5d] | 37 |
|
---|
| 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&pkgconfig-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&pkgconfig-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &pkgconfig-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &pkgconfig-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &pkgconfig-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &pkgconfig-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
[1039de3] | 60 | <para condition="html" role="usernotes">User Notes:
|
---|
| 61 | <ulink url="&blfs-wiki;/pkgconfig"/></para>
|
---|
| 62 |
|
---|
[4b95c5d] | 63 | </sect2>
|
---|
| 64 |
|
---|
| 65 | <sect2 role="installation">
|
---|
[c35d927] | 66 | <title>Installation of pkg-config</title>
|
---|
[4b95c5d] | 67 |
|
---|
[c35d927] | 68 | <para>Install <application>pkg-config</application> by running the
|
---|
| 69 | following commands:</para>
|
---|
[4b95c5d] | 70 |
|
---|
[52d949e8] | 71 | <screen><userinput>./configure --prefix=/usr &&
|
---|
[4b95c5d] | 72 | make</userinput></screen>
|
---|
| 73 |
|
---|
[6c6e9edd] | 74 | <para>To test the results, issue: <command>make check</command>. The
|
---|
| 75 | <quote>check-requires-private</quote> test has been known to fail for
|
---|
| 76 | undetermined reasons.</para>
|
---|
[4b95c5d] | 77 |
|
---|
| 78 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 79 |
|
---|
| 80 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 81 |
|
---|
| 82 | </sect2>
|
---|
| 83 |
|
---|
| 84 | <sect2 role="configuration">
|
---|
[c35d927] | 85 | <title>Configuring pkg-config</title>
|
---|
[4b95c5d] | 86 |
|
---|
| 87 | <para>The default setting for <envar>PKG_CONFIG_PATH</envar> is
|
---|
[1bd6c599] | 88 | <filename
|
---|
| 89 | class='directory'>/usr/lib/pkgconfig:/usr/share/pkgconfig</filename>
|
---|
| 90 | because of the prefix used to install
|
---|
| 91 | <application>pkg-config</application>. You may add
|
---|
[c35d927] | 92 | to <envar>PKG_CONFIG_PATH</envar> by exporting additional paths on your
|
---|
| 93 | system where <filename class='extension'>.pc</filename> files are
|
---|
| 94 | installed. Note that <envar>PKG_CONFIG_PATH</envar> is only needed when
|
---|
| 95 | compiling packages, not during run-time.</para>
|
---|
[4b95c5d] | 96 |
|
---|
| 97 | </sect2>
|
---|
| 98 |
|
---|
| 99 | <sect2 role="content">
|
---|
| 100 | <title>Contents</title>
|
---|
| 101 |
|
---|
| 102 | <segmentedlist>
|
---|
| 103 | <segtitle>Installed Program</segtitle>
|
---|
| 104 | <segtitle>Installed Libraries</segtitle>
|
---|
| 105 | <segtitle>Installed Directories</segtitle>
|
---|
| 106 |
|
---|
| 107 | <seglistitem>
|
---|
| 108 | <seg>pkg-config</seg>
|
---|
| 109 | <seg>None</seg>
|
---|
| 110 | <seg>None</seg>
|
---|
| 111 | </seglistitem>
|
---|
| 112 | </segmentedlist>
|
---|
| 113 |
|
---|
| 114 | <variablelist>
|
---|
| 115 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 116 | <?dbfo list-presentation="list"?>
|
---|
| 117 | <?dbhtml list-presentation="table"?>
|
---|
| 118 |
|
---|
| 119 | <varlistentry id="pkg-config">
|
---|
| 120 | <term><command>pkg-config</command></term>
|
---|
| 121 | <listitem>
|
---|
[c35d927] | 122 | <para>returns meta information for the specified library or
|
---|
| 123 | package.</para>
|
---|
[4b95c5d] | 124 | <indexterm zone="pkgconfig pkg-config">
|
---|
| 125 | <primary sortas="b-pkg-config">pkg-config</primary>
|
---|
| 126 | </indexterm>
|
---|
| 127 | </listitem>
|
---|
| 128 | </varlistentry>
|
---|
| 129 |
|
---|
| 130 | </variablelist>
|
---|
| 131 |
|
---|
| 132 | </sect2>
|
---|
[7188fe3e] | 133 |
|
---|
[f45b1953] | 134 | </sect1>
|
---|