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 "">
|
---|
9 | <!ENTITY pkgconfig-md5sum "aa3c86e67551adc3ac865160e34a2a0d">
|
---|
10 | <!ENTITY pkgconfig-size "1.9 MB">
|
---|
11 | <!ENTITY pkgconfig-buildsize "30 MB">
|
---|
12 | <!ENTITY pkgconfig-time "0.3 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>
|
---|
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>
|
---|
37 |
|
---|
38 | &lfs74_checked;
|
---|
39 |
|
---|
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>
|
---|
47 |
|
---|
48 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
49 | <itemizedlist spacing="compact">
|
---|
50 | <listitem>
|
---|
51 | <para>
|
---|
52 | Download (HTTP): <ulink url="&pkgconfig-download-http;"/>
|
---|
53 | </para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>
|
---|
57 | Download (FTP): <ulink url="&pkgconfig-download-ftp;"/>
|
---|
58 | </para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>
|
---|
62 | Download MD5 sum: &pkgconfig-md5sum;
|
---|
63 | </para>
|
---|
64 | </listitem>
|
---|
65 | <listitem>
|
---|
66 | <para>
|
---|
67 | Download size: &pkgconfig-size;
|
---|
68 | </para>
|
---|
69 | </listitem>
|
---|
70 | <listitem>
|
---|
71 | <para>
|
---|
72 | Estimated disk space required: &pkgconfig-buildsize;
|
---|
73 | </para>
|
---|
74 | </listitem>
|
---|
75 | <listitem>
|
---|
76 | <para>
|
---|
77 | Estimated build time: &pkgconfig-time;
|
---|
78 | </para>
|
---|
79 | </listitem>
|
---|
80 | </itemizedlist>
|
---|
81 |
|
---|
82 | <para condition="html" role="usernotes">User Notes:
|
---|
83 | <ulink url="&blfs-wiki;/pkgconfig"/>
|
---|
84 | </para>
|
---|
85 | </sect2>
|
---|
86 |
|
---|
87 | <sect2 role="installation">
|
---|
88 | <title>Installation of pkg-config</title>
|
---|
89 |
|
---|
90 | <para>
|
---|
91 | Install <application>pkg-config</application> by running the
|
---|
92 | following commands:
|
---|
93 | </para>
|
---|
94 |
|
---|
95 | <screen><userinput>./configure --prefix=/usr \
|
---|
96 | --with-internal-glib \
|
---|
97 | --disable-host-tool \
|
---|
98 | --docdir=/usr/share/doc/pkg-config-&pkgconfig-version; &&
|
---|
99 | make</userinput></screen>
|
---|
100 |
|
---|
101 | <para>
|
---|
102 | To test the results, issue: <command>make check</command>.
|
---|
103 | </para>
|
---|
104 |
|
---|
105 | <para>
|
---|
106 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
110 |
|
---|
111 | </sect2>
|
---|
112 |
|
---|
113 | <sect2 role="commands">
|
---|
114 | <title>Command Explanations</title>
|
---|
115 |
|
---|
116 | <para>
|
---|
117 | <option>--with-internal-glib</option>: This switch causes
|
---|
118 | the package to use the shipped version of GLib2.
|
---|
119 | </para>
|
---|
120 |
|
---|
121 | <para>
|
---|
122 | <option>--disable-host-tool</option>: This switch disables
|
---|
123 | creation of the unnecessary symlink.
|
---|
124 | </para>
|
---|
125 |
|
---|
126 | </sect2>
|
---|
127 |
|
---|
128 | <sect2 role="configuration">
|
---|
129 | <title>Configuring pkg-config</title>
|
---|
130 |
|
---|
131 | <para>
|
---|
132 | The default setting for <envar>PKG_CONFIG_PATH</envar> is <filename
|
---|
133 | class="directory">/usr/lib/pkgconfig:/usr/share/pkgconfig</filename>
|
---|
134 | because of the prefix used to install
|
---|
135 | <application>pkg-config</application>. You may add to
|
---|
136 | <envar>PKG_CONFIG_PATH</envar> by exporting additional paths on your system
|
---|
137 | where <filename class="extension">.pc</filename> files are installed. Note
|
---|
138 | that <envar>PKG_CONFIG_PATH</envar> is only needed when compiling packages,
|
---|
139 | not during run-time.
|
---|
140 | </para>
|
---|
141 |
|
---|
142 | </sect2>
|
---|
143 |
|
---|
144 | <sect2 role="content">
|
---|
145 | <title>Contents</title>
|
---|
146 |
|
---|
147 | <segmentedlist>
|
---|
148 | <segtitle>Installed Program</segtitle>
|
---|
149 | <segtitle>Installed Libraries</segtitle>
|
---|
150 | <segtitle>Installed Directories</segtitle>
|
---|
151 |
|
---|
152 | <seglistitem>
|
---|
153 | <seg>
|
---|
154 | pkg-config
|
---|
155 | </seg>
|
---|
156 | <seg>
|
---|
157 | None
|
---|
158 | </seg>
|
---|
159 | <seg>
|
---|
160 | None
|
---|
161 | </seg>
|
---|
162 | </seglistitem>
|
---|
163 | </segmentedlist>
|
---|
164 |
|
---|
165 | <variablelist>
|
---|
166 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
167 | <?dbfo list-presentation="list"?>
|
---|
168 | <?dbhtml list-presentation="table"?>
|
---|
169 |
|
---|
170 | <varlistentry id="pkg-config">
|
---|
171 | <term><command>pkg-config</command></term>
|
---|
172 | <listitem>
|
---|
173 | <para>
|
---|
174 | returns meta information for the specified library or
|
---|
175 | package.
|
---|
176 | </para>
|
---|
177 | <indexterm zone="pkgconfig pkg-config">
|
---|
178 | <primary sortas="b-pkg-config">pkg-config</primary>
|
---|
179 | </indexterm>
|
---|
180 | </listitem>
|
---|
181 | </varlistentry>
|
---|
182 |
|
---|
183 | </variablelist>
|
---|
184 |
|
---|
185 | </sect2>
|
---|
186 |
|
---|
187 | </sect1>
|
---|