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