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 | <!ENTITY pkgconfig-download-http "http://pkgconfig.freedesktop.org/releases/pkg-config-&pkgconfig-version;.tar.gz">
|
---|
8 | <!ENTITY pkgconfig-download-ftp "&gentoo-ftp-repo;/pkg-config-&pkgconfig-version;.tar.gz">
|
---|
9 | <!ENTITY pkgconfig-md5sum "47525c26a9ba7ba14bf85e01509a7234">
|
---|
10 | <!ENTITY pkgconfig-size "392 KB">
|
---|
11 | <!ENTITY pkgconfig-buildsize "3 MB">
|
---|
12 | <!ENTITY pkgconfig-time "less than 0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="pkgconfig" xreflabel="pkg-config-&pkgconfig-version;">
|
---|
16 | <?dbhtml filename="pkgconfig.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>pkg-config-&pkgconfig-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="pkgconfig">
|
---|
26 | <primary sortas="a-Pkg-config">Pkg-config</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to pkg-config</title>
|
---|
31 |
|
---|
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>
|
---|
36 |
|
---|
37 | &lfs71_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>Download (HTTP): <ulink url="&pkgconfig-download-http;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download (FTP): <ulink url="&pkgconfig-download-ftp;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download MD5 sum: &pkgconfig-md5sum;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download size: &pkgconfig-size;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated disk space required: &pkgconfig-buildsize;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated build time: &pkgconfig-time;</para>
|
---|
58 | </listitem>
|
---|
59 | </itemizedlist>
|
---|
60 |
|
---|
61 | <bridgehead renderas="sect3">Pkg-config Dependencies</bridgehead>
|
---|
62 |
|
---|
63 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
64 | <para role="required"><xref linkend="glib2"/></para>
|
---|
65 |
|
---|
66 | <para condition="html" role="usernotes">User Notes:
|
---|
67 | <ulink url="&blfs-wiki;/pkgconfig"/></para>
|
---|
68 |
|
---|
69 | </sect2>
|
---|
70 |
|
---|
71 | <sect2 role="installation">
|
---|
72 | <title>Installation of pkg-config</title>
|
---|
73 |
|
---|
74 | <para>Fix a problem with one of Pkg-config's tests:</para>
|
---|
75 |
|
---|
76 | <screen><userinput>sed -i -e '21s/EXPECT_RETURN=1/EXPECT_RETURN=0/' check/check-cmd-options</userinput></screen>
|
---|
77 |
|
---|
78 | <para>Install <application>pkg-config</application> by running the
|
---|
79 | following commands:</para>
|
---|
80 |
|
---|
81 | <screen><userinput>GLIB_LIBS=-lglib-2.0 GLIB_CFLAGS=-I/usr/include/glib-2.0 \
|
---|
82 | ./configure --prefix=/usr &&
|
---|
83 | make</userinput></screen>
|
---|
84 |
|
---|
85 | <note><para>The make phase is known to fail if the configure option
|
---|
86 | '<option>--with-installed-popt</option>' is used with <xref
|
---|
87 | linkend="popt"/>.</para></note>
|
---|
88 |
|
---|
89 | <para>To test the results, issue: <command>make check</command>.</para>
|
---|
90 |
|
---|
91 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
92 |
|
---|
93 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
94 |
|
---|
95 | </sect2>
|
---|
96 |
|
---|
97 | <!--
|
---|
98 | <sect2 role="commands">
|
---|
99 | <title>Command Explanations</title>
|
---|
100 |
|
---|
101 | <para><parameter>- -with-installed-glib</parameter>: This parameter causes
|
---|
102 | the package to use the installed glib2. This is to get rid of the internally used
|
---|
103 | glib-1.</para>
|
---|
104 |
|
---|
105 | </sect2>
|
---|
106 | -->
|
---|
107 | <sect2 role="configuration">
|
---|
108 | <title>Configuring pkg-config</title>
|
---|
109 |
|
---|
110 | <para>The default setting for <envar>PKG_CONFIG_PATH</envar> is <filename
|
---|
111 | class='directory'>/usr/lib/pkgconfig:/usr/share/pkgconfig</filename>
|
---|
112 | because of the prefix used to install
|
---|
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>
|
---|
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>
|
---|
144 | <para>returns meta information for the specified library or
|
---|
145 | package.</para>
|
---|
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>
|
---|
155 |
|
---|
156 | </sect1>
|
---|