source: chapter08/pkgconfig.xml@ f7cdb10

xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1
Last change on this file since f7cdb10 was 85eca6fd, checked in by Xi Ruoyao <xry111@…>, 14 months ago

loongarch: pkgconfig: Update config.{guess,sub}

  • Property mode set to 100644
File size: 3.6 KB
Line 
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
8<sect1 id="ch-system-pkgconfig" role="wrap">
9 <?dbhtml filename="pkg-config.html"?>
10
11 <sect1info condition="script">
12 <productname>pkg-config</productname>
13 <productnumber>&pkgconfig-version;</productnumber>
14 <address>&pkgconfig-url;</address>
15 </sect1info>
16
17 <title>Pkg-config-&pkgconfig-version;</title>
18
19 <indexterm zone="ch-system-pkgconfig">
20 <primary sortas="a-pkgconfig">Pkgconfig</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The pkg-config package contains a tool for passing the include path
27 and/or library paths to build tools during the configure and make phases
28 of package installations.</para>
29
30 <segmentedlist>
31 <segtitle>&buildtime;</segtitle>
32 <segtitle>&diskspace;</segtitle>
33
34 <seglistitem>
35 <seg>&pkgconfig-fin-sbu;</seg>
36 <seg>&pkgconfig-fin-du;</seg>
37 </seglistitem>
38 </segmentedlist>
39
40 </sect2>
41
42 <sect2 role="installation">
43 <title>Installation of Pkg-config</title>
44
45 &update-config-text;
46
47<screen><userinput remap="pre">tar &update-config-arg;
48cp config.{guess,sub} glib/</userinput></screen>
49
50 <para>Prepare Pkg-config for compilation:</para>
51
52<screen><userinput remap="configure">./configure --prefix=/usr \
53 --with-internal-glib \
54 --disable-host-tool \
55 --docdir=/usr/share/doc/pkg-config-&pkgconfig-version;</userinput></screen>
56
57 <variablelist>
58 <title>The meaning of the new configure options:</title>
59
60 <varlistentry>
61 <term><parameter>--with-internal-glib</parameter></term>
62 <listitem>
63 <para>This will allow pkg-config to use its internal version of
64 Glib because an external version is not available in LFS.</para>
65 </listitem>
66 </varlistentry>
67
68 <varlistentry>
69 <term><parameter>--disable-host-tool</parameter></term>
70 <listitem>
71 <para>This option disables the creation of an undesired hard link
72 to the pkg-config program.</para>
73 </listitem>
74 </varlistentry>
75
76 </variablelist>
77
78 <para>Compile the package:</para>
79
80<screen><userinput remap="make">make</userinput></screen>
81
82 <para>To test the results, issue:</para>
83
84<screen><userinput remap="test">make check</userinput></screen>
85
86 <para>Install the package:</para>
87
88<screen><userinput remap="install">make install</userinput></screen>
89
90 </sect2>
91
92 <sect2 id="contents-pkgconfig" role="content">
93 <title>Contents of Pkg-config</title>
94
95 <segmentedlist>
96 <segtitle>Installed program</segtitle>
97 <segtitle>Installed directory</segtitle>
98
99 <seglistitem>
100 <seg>pkg-config</seg>
101 <seg>/usr/share/doc/pkg-config-&pkgconfig-version;</seg>
102 </seglistitem>
103 </segmentedlist>
104
105 <variablelist>
106 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
107 <?dbfo list-presentation="list"?>
108 <?dbhtml list-presentation="table"?>
109
110 <varlistentry id="pkgconfig">
111 <!-- Don't remove the extra space, it prevents a FOP warning. -->
112 <term><command>pkg-config </command></term>
113 <listitem>
114 <para>Returns meta information for the specified library or package
115 </para>
116 <indexterm zone="ch-system-pkgconfig pkgconfig">
117 <primary sortas="b-pkgconfig">pkg-config</primary>
118 </indexterm>
119 </listitem>
120 </varlistentry>
121
122 </variablelist>
123
124 </sect2>
125
126</sect1>
Note: See TracBrowser for help on using the repository browser.