source: x/lib/webkitgtk.xml@ a2912ff

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since a2912ff was a2912ff, checked in by Krejzi <krejzi@…>, 12 years ago

XML Polishing, Part 2. Set libpng (again) as required for Cairo, since it requires too many switches if it is not present, thus making it realy required.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10464 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 10.7 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 <!ENTITY webkitgtk-download-http
8 "http://webkitgtk.org/releases/webkit-&webkitgtk-version;.tar.xz">
9 <!ENTITY webkitgtk-download-ftp " ">
10 <!ENTITY webkitgtk-md5sum "f2f01b1fdc7262a2eede81ebed0970b2">
11 <!ENTITY webkitgtk-size "7.6 MB">
12 <!ENTITY webkitgtk-buildsize "566 MB (43 MB installed)">
13 <!ENTITY webkitgtk-time "28 SBU">
14]>
15
16<sect1 id="webkitgtk" xreflabel="WebKitGTK+-&webkitgtk-version;">
17 <?dbhtml filename="webkitgtk.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>WebKitGTK+-&webkitgtk-version;</title>
25
26 <indexterm zone="webkitgtk">
27 <primary sortas="a-WebKitGTK+">WebKitGTK+</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to WebKitGTK+</title>
32
33 <para>
34 The <application>WebKitGTK+</application> package is the port of the
35 portable web rendering engine <application>WebKit</application> to the
36 <application>GTK+</application> platform.
37 </para>
38
39 &lfs71_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&webkitgtk-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&webkitgtk-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &webkitgtk-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &webkitgtk-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &webkitgtk-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &webkitgtk-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">WebKitGTK+ Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required">
79 <xref linkend="gperf"/>,
80 <xref linkend="icu"/>,
81 <xref linkend="libxslt"/>,
82 <xref linkend="gtk2"/> or <xref linkend="gtk3"/>
83 (<command>configure</command> defaults to using gtk+-3),
84 <xref linkend="libsoup"/>,
85 <xref linkend="gst-plugins-base"/>,
86 <xref linkend="geoclue"/>,
87 <xref linkend="which"/> and
88 <xref linkend="sqlite"/>
89 </para>
90
91 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
92 <para role="optional">
93 <xref linkend="gobject-introspection"/>
94 </para>
95
96 <bridgehead renderas="sect4">Optional</bridgehead>
97 <para role="optional">
98 <xref linkend="curl"/>,
99 <xref linkend="enchant"/>,
100 <xref linkend="gtk-doc"/> and
101 <ulink url="http://xsltml.sourceforge.net/">MathML</ulink>
102 </para>
103
104 <para condition="html" role="usernotes">
105 User Notes: <ulink url="&blfs-wiki;/webkitgtk"/>
106 </para>
107 </sect2>
108
109 <sect2 role="installation">
110 <title>Installation of WebKitGTK+</title>
111
112 <para>
113 If you have <application>pkg-config 0.23</application> or older installed
114 fix a bug in the configure script that will stop it detecting
115 <application>Gstreamer</application> correctly:
116 </para>
117
118<screen><userinput>sed -i 's#=GST#=$GST#' configure</userinput></screen>
119
120 <para>
121 If you have not installed <xref linkend="gtk-doc"/>, fix a bug that will
122 cause <command>make install</command> to fail:
123 </para>
124
125<screen><userinput>sed -i '/generate-gtkdoc --rebase/s:^:# :' GNUmakefile.in</userinput></screen>
126
127 <para>
128 <application>WebKit</application> takes a long time to compile, so if you
129 have a multicore CPU it can be useful to speed up the build by running
130 make with multiple jobs.
131 </para>
132
133 <para>
134 If you want to run make with just one core, install
135 <application>WebKit</application> by running the following commands:
136 </para>
137
138<screen><userinput>./configure --prefix=/usr --enable-introspection &amp;&amp;
139make</userinput></screen>
140
141 <para>
142 If you have a multicore CPU and want to run make with multiple jobs
143 running in parallel, install <application>WebKit</application> with the
144 following commands:
145 </para>
146
147<screen><userinput>./configure --prefix=/usr --enable-introspection &amp;&amp;
148error_count=0
149until make -j$(getconf _NPROCESSORS_ONLN)
150do
151 if (( $((error_count++)) &gt; 4 ))
152 then
153 echo Too Many Errors
154 break
155 fi
156done
157unset error_count</userinput></screen>
158
159 <para>
160 This package does not have a working testsuite.
161 </para>
162
163 <para>
164 Now, as the <systemitem class="username">root</systemitem> user:
165 </para>
166
167<screen role="root"><userinput>make install</userinput></screen>
168 </sect2>
169
170 <sect2 role="commands">
171 <title>Command Explanations</title>
172
173 <para>
174 <option>--enable-introspection</option>: This option enables support for
175 <application>Gobject Introspection</application> and is required for a
176 <application>GNOME</application> Desktop. If you don't have
177 <application>Gobject Introspection</application> installed and don't want
178 to install <application>GNOME</application> remove this option.
179 </para>
180
181 <para>
182 <command>error_count=0; until make ...</command>: Sadly
183 there are race conditions in the makefiles that will cause the build to
184 fail if you run make with multiple jobs. This simple hack works around
185 that problem by using <command>until</command> to keep running
186 <command>make</command> until it succeeds. The variable
187 <envar>error_count</envar> is incremented each time an error occurs and is
188 checked to ensure that no more than 5 errors occur. This is so that if an
189 error occurs that is <emphasis>not</emphasis> due to a race condition then
190 it will not keep repeating <command>make</command> forever.
191 <command>$(getconf _NPROCESSORS_ONLN)</command> prints the number of cores
192 your computer seems to have. If you would prefer, you can use any positive
193 integer such as 4.
194 </para>
195
196 <para>
197 <option>--with-gtk=2.0</option>: This option forces
198 <application>WebKit</application> to compile against
199 <application>GTK+ 2</application>, even if
200 <application>GTK+ 3</application> is also installed. With
201 <application>GTK+ 2</application>, everything
202 <application>Webkit</application> installs is suffixed with 1.0. When it
203 is compiled against <application>GTK+ 3</application> everything it
204 installs is suffixed with 3.0. Both versions can be installed alongside
205 one another with no namespace conflicts.
206 </para>
207
208 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
209 href="../../xincludes/gtk-doc-rebuild.xml"/>
210 </sect2>
211
212 <sect2 role="content">
213 <title>Contents</title>
214
215 <segmentedlist>
216 <segtitle>Installed Program</segtitle>
217 <segtitle>Installed Library</segtitle>
218 <segtitle>Installed Directories</segtitle>
219
220 <seglistitem>
221 <seg>
222 jsc-1 or jsc-3 (depending on whether you installed the
223 <application>Gtk+-2</application> or <application>Gtk+-3</application>
224 version of <application>WebKit</application>).
225 </seg>
226 <seg>
227 libwebkit-1.0.so and libjavascriptcoregtk-1.0.so or libwebkit-3.0.so
228 and libjavascriptcoregtk-3.0.so (depending on whether you installed
229 the <application>GTK+ 2</application> or
230 <application>GTK+ 3</application> version of
231 <application>WebKit</application>).
232 </seg>
233 <seg>
234 /usr/include/webkit-1.0 and /usr/share/webkit-1.0 or
235 /usr/include/webkit-3.0 and /usr/share/webkit-3.0 (depending on
236 whether you installed the <application>GTK+ 2</application> or
237 <application>GTK+ 3</application> version of
238 <application>WebKit</application>).
239 </seg>
240 </seglistitem>
241 </segmentedlist>
242
243 <variablelist>
244 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
245 <?dbfo list-presentation="list"?>
246 <?dbhtml list-presentation="table"?>
247
248 <varlistentry id="jsc">
249 <term><command>jsc-1</command> or <command>jsc-3</command></term>
250 <listitem>
251 <para>
252 is a command-line utility that allows you to run JavaScript programs
253 outside of the context of a web browser.
254 </para>
255 <indexterm zone="webkitgtk jsc">
256 <primary sortas="b-jsc">jsc</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="libwebkit-1.0">
262 <term><filename class="libraryfile">libwebkit-1.0.so</filename></term>
263 <listitem>
264 <para>
265 contains the <application>WebKit</application> API functions for
266 <application>GTK+ 2</application>.
267 </para>
268 <indexterm zone="webkitgtk libwebkit-1.0">
269 <primary sortas="c-libwebkit-1.0">libwebkit-1.0.so</primary>
270 </indexterm>
271 </listitem>
272 </varlistentry>
273
274 <varlistentry id="libwebkit-3.0">
275 <term><filename class="libraryfile">libwebkit-3.0.so</filename></term>
276 <listitem>
277 <para>
278 contains the <application>WebKit</application> API functions for
279 <application>GTK+ 3</application>.
280 </para>
281 <indexterm zone="webkitgtk libwebkit-3.0">
282 <primary sortas="c-libwebkit-3.0">libwebkit-3.0.so</primary>
283 </indexterm>
284 </listitem>
285 </varlistentry>
286
287 <varlistentry id="libjavascriptcoregtk-1.0">
288 <term><filename
289 class="libraryfile">libjavascriptcoregtk-1.0.so</filename></term>
290 <listitem>
291 <para>
292 contains functions that are used by <command>jsc-1</command>.
293 </para>
294 <indexterm zone="webkitgtk libjavascriptcoregtk-1.0">
295 <primary sortas="c-libjavascriptcoregtk-1.0">libjavascriptcoregtk-1.0.so</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="libjavascriptcoregtk-3.0">
301 <term><filename
302 class="libraryfile">libjavascriptcoregtk-3.0.so</filename></term>
303 <listitem>
304 <para>
305 contains functions that are used by <command>jsc-3</command>.
306 </para>
307 <indexterm zone="webkitgtk libjavascriptcoregtk-3.0">
308 <primary sortas="c-libjavascriptcoregtk-3.0">libjavascriptcoregtk-3.0.so</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 </variablelist>
314
315 </sect2>
316
317</sect1>
Note: See TracBrowser for help on using the repository browser.