source: x/lib/webkitgtk2.xml@ 6621c93

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 6621c93 was 6621c93, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Update both gtkwebkit sections to build with glib-2.44 and later.

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

  • Property mode set to 100644
File size: 13.3 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 webkitgtk2-download-http "http://webkitgtk.org/releases/webkitgtk-&webkitgtk2-version;.tar.xz">
8 <!ENTITY webkitgtk2-download-ftp " ">
9 <!ENTITY webkitgtk2-md5sum "bcdcef8e1ba28dbd5bb05f86c79f76b8">
10 <!ENTITY webkitgtk2-size "9.4 MB">
11 <!ENTITY webkitgtk2-buildsize "1.5 GB (both built)">
12 <!ENTITY webkitgtk2-time "44 SBU (using parallelism=4, both built, webkitgtk-3.0 takes a little longer than webkitgtk-1.0)">
13]>
14
15<sect1 id="webkitgtk2" xreflabel="WebKitGTK+-&webkitgtk2-version;">
16 <?dbhtml filename="webkitgtk2.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>WebKitGTK+-&webkitgtk2-version;</title>
24
25 <indexterm zone="webkitgtk2">
26 <primary sortas="a-WebKitGTK+">WebKitGTK+</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to WebKitGTK+</title>
31
32 <para>
33 The <application>WebKitGTK+</application> is the port of the portable web
34 rendering engine <application>WebKit</application> to the
35 <application>GTK+ 3</application> and/or <application>GTK+
36 2</application> platforms.
37 </para>
38
39 &lfs77_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&webkitgtk2-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&webkitgtk2-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &webkitgtk2-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &webkitgtk2-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &webkitgtk2-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &webkitgtk2-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="gst10-plugins-base"/>,
80 <xref linkend="gtk2"/> or
81 <xref linkend="gtk3"/>,
82 <xref linkend="icu"/>,
83 <xref linkend="libsecret"/>,
84 <xref linkend="libsoup"/>,
85 <xref linkend="libwebp"/>,
86 <xref linkend="mesalib"/>,
87 <xref linkend="ruby"/>,
88 <xref linkend="sqlite"/>,
89 <xref linkend="udev-extras"/> (for GUdev) and
90 <xref linkend="which"/>
91 </para>
92
93 <note><para>
94 <application>WebKit2</application> links against<application>GTK+
95 2</application> (even if <application>GTK+ 3</application> is being
96 used), in order to be able to use NPAPI plugins such as Adobe Flash.
97 </para></note>
98
99
100 <bridgehead renderas="sect4">Recommended</bridgehead>
101 <para role="recommended">
102 <xref linkend="enchant"/>,
103 <xref linkend="geoclue"/>,
104 <xref linkend="gobject-introspection"/>,
105 <xref linkend="hicolor-icon-theme"/>
106 </para>
107
108 <bridgehead renderas="sect4">Optional</bridgehead>
109 <para role="optional">
110 <xref linkend="gtk-doc"/>,
111 <xref linkend="harfbuzz"/>,
112 <xref linkend="llvm"/>,
113 <ulink url="http://gitorious.org/geoclue2/">GeoClue2</ulink>, and
114 <ulink url="http://xsltml.sourceforge.net/">MathML</ulink>
115 </para>
116
117 <para condition="html" role="usernotes">
118 User Notes: <ulink url="&blfs-wiki;/webkitgtk"/>
119 </para>
120 </sect2>
121
122 <sect2 role="installation">
123 <title>Installation of WebKitGTK+</title>
124
125 <para>
126 If you have not installed <xref linkend="gtk-doc"/>, fix a bug that will
127 cause <command>make install</command> to fail:
128 </para>
129
130<screen><userinput>sed -i '/generate-gtkdoc --rebase/s:^:# :' GNUmakefile.in</userinput></screen>
131
132 <para>Fix some code when building with glib-2.44 and later:</para>
133
134<screen><userinput>pushd Source/WebCore/platform/graphics/gstreamer &amp;&amp;
135 sed -i 's/GMutexLocker /WebCore::&amp;/' \
136 VideoSinkGStreamer.cpp WebKitWebSourceGStreamer.cpp &amp;&amp;
137popd</userinput></screen>
138
139 <para>
140 Upstream standard now is to link this package against <application>GTK+
141 3</application>. However, for backward compatibility, manu users need
142 also another instance, linked to <application>GTK+ 2</application>. Both
143 can be installed in the same system, without problem. However, some
144 packages can alternatively be linked to either one. Here, both build
145 methods are presented and recommended to be built, but if you know which
146 one you need, just jump to the respective part.
147 </para>
148
149<!-- ==== WebKitGTK+ against GTK+ 3 ====== -->
150 <bridgehead renderas="sect3">Build and install
151 <application>WebKitGTK+</application> against <application>GTK+
152 3</application></bridgehead>
153
154 <para>
155 Install <application>WebKitGTK+</application> by running the
156 following commands:
157 </para>
158
159<screen><userinput>mkdir -vp build-3 &amp;&amp;
160cp -a Documentation build-3 &amp;&amp;
161cd build-3 &amp;&amp;
162
163../configure --prefix=/usr --enable-introspection &amp;&amp;
164make</userinput></screen>
165
166 <para>
167 This package does not have a working testsuite. However, there are two
168 useable basic graphical web browsers in the build directory,
169 <application>Programs/GtkLauncher</application> and
170 <application>Programs/MiniBrowser</application>. If launching any one
171 fails, there is a problem with the build.
172 </para>
173
174 <note><para>
175 When installing, the Makefile does some additional compiling and linking.
176 If you do not have Xorg in /usr, the LIBRARY_PATH and PKG_CONFIG_PATH
177 variables need to be defined for the root user. If using sudo to assume
178 root, use the -E option to pass your current environment variables for the
179 install process.
180 </para></note>
181
182 <para>
183 Now, as the <systemitem class="username">root</systemitem> user:
184 </para>
185
186<screen role="root"><userinput>make install</userinput></screen>
187
188 <para>
189 Finally, leave the buid directory:
190 </para>
191
192<screen><userinput>cd ..</userinput></screen>
193
194<!-- ==== WebKitGTK+ against GTK+ 2 ====== -->
195 <bridgehead renderas="sect3">Build and install
196 <application>WebKitGTK+</application> against <application>GTK+
197 2</application></bridgehead>
198
199 <para>
200 Install <application>WebKitGTK+</application> by running the
201 following commands:
202 </para>
203
204<screen><userinput>mkdir -vp build-1</userinput></screen>
205
206 <para>
207 If you have built and installed the package against <application>GTK+
208 3</application>. skip the following command, because the previous
209 docummentation also applies here:
210 </para>
211
212<screen><userinput>cp -a Documentation build-1</userinput></screen>
213
214 <para>
215 Now, change into the build directory and effectively start the build and
216 install:
217 </para>
218
219<screen><userinput>cd build-1 &amp;&amp;
220
221
222../configure --prefix=/usr --with-gtk=2.0 --disable-webkit2 &amp;&amp;
223make</userinput></screen>
224
225 <para>
226 This package does not have a working testsuite. However, there is one
227 useable basic graphical web browser in the build directory,
228 <application>Programs/GtkLauncher</application>. If launching it
229 fails, there is a problem with the build.
230 </para>
231
232 <note><para>
233 When installing, the Makefile does some additional compiling and linking.
234 If you do not have Xorg in /usr, the LIBRARY_PATH and PKG_CONFIG_PATH
235 variables need to be defined for the root user. If using sudo to assume
236 root, use the -E option to pass your current environment variables for the
237 install process.
238 </para></note>
239
240 <para>
241 Now, as the <systemitem class="username">root</systemitem> user:
242 </para>
243
244<screen role="root"><userinput>make install</userinput></screen>
245
246 <para>
247 Finally, leave the buid directory:
248 </para>
249
250<screen><userinput>cd ..</userinput></screen>
251
252 </sect2>
253
254 <sect2 role="commands">
255 <title>Command Explanations</title>
256
257 <para>
258 <option>--enable-introspection</option>: This switch enables support for
259 <application>Gobject Introspection</application> and is required for a
260 <application>GNOME</application> Desktop. Remove if you don't have
261 <application>Gobject Introspection</application> installed or you don't
262 want to install <application>GNOME</application>.
263 </para>
264
265 <para>
266 <option>--disable-geolocation</option>: Use this option if you did not
267 install <xref linkend="geoclue"/> or <command>configure</command> will
268 fail.
269 </para>
270
271 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
272 href="../../xincludes/gtk-doc-rebuild.xml"/>
273
274 </sect2>
275
276 <sect2 role="content">
277 <title>Contents</title>
278
279 <segmentedlist>
280 <segtitle>Installed Programs</segtitle>
281 <segtitle>Installed Libraries</segtitle>
282 <segtitle>Installed Directories</segtitle>
283
284 <seglistitem>
285 <seg>
286 jsc-1 and jsc-3
287 </seg>
288 <seg>
289 libjavascriptcoregtk-1.0.so,
290 libjavascriptcoregtk-3.0.so,
291 libwebkit2gtk-3.0.so,
292 libwebkitgtk-1.0.so, and
293 libwebkitgtk-3.0.so
294 </seg>
295 <seg>
296 /usr/include/webkitgtk-{1,3}.0,
297 /usr/lib/webkit2gtk-3.0,
298 /usr/share/gtk-doc/html/webkit{2,dom,}gtk, and
299 /usr/share/webkitgtk-{1,3}.0
300 </seg>
301 </seglistitem>
302 </segmentedlist>
303
304 <variablelist>
305 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
306 <?dbfo list-presentation="list"?>
307 <?dbhtml list-presentation="table"?>
308
309 <varlistentry id="jsc-1">
310 <term><command>jsc-1</command></term>
311 <listitem>
312 <para>
313 is a command-line utility that allows you to run JavaScript programs
314 outside of the context of a web browser.
315 </para>
316 <indexterm zone="webkitgtk2 jsc-1">
317 <primary sortas="b-jsc-1">jsc-1</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
322 <varlistentry id="jsc-3">
323 <term><command>jsc-3</command></term>
324 <listitem>
325 <para>
326 is a command-line utility that allows you to run JavaScript programs
327 outside of the context of a web browser.
328 </para>
329 <indexterm zone="webkitgtk2 jsc-3">
330 <primary sortas="b-jsc-3">jsc-3</primary>
331 </indexterm>
332 </listitem>
333 </varlistentry>
334
335 <varlistentry id="libjavascriptcoregtk-1">
336 <term><filename
337 class="libraryfile">libjavascriptcoregtk-1.0.so</filename></term>
338 <listitem>
339 <para>
340 contains core JavaScript API functions used by
341 <command>jsc-1</command> and <filename
342 class="libraryfile">libwebkitgtk-1.0.so</filename>.
343 </para>
344 <indexterm zone="webkitgtk2 libjavascriptcoregtk-1">
345 <primary sortas="c-libjavascriptcoregtk-1">libjavascriptcoregtk-1.0.so</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
350 <varlistentry id="libjavascriptcoregtk-3">
351 <term><filename
352 class="libraryfile">libjavascriptcoregtk-3.0.so</filename></term>
353 <listitem>
354 <para>
355 contains core JavaScript API functions used by
356 <command>jsc-3</command> and <filename
357 class="libraryfile">libwebkitgtk-3.0.so</filename>.
358 </para>
359 <indexterm zone="webkitgtk2 libjavascriptcoregtk-3">
360 <primary sortas="c-libjavascriptcoregtk-3">libjavascriptcoregtk-3.0.so</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364
365 <varlistentry id="libwebkitgtk-1">
366 <term><filename class="libraryfile">libwebkitgtk-1.0.so</filename></term>
367 <listitem>
368 <para>
369 contains the <application>WebKitGTK+</application> API functions for
370 <application>GTK+ 2</application>.
371 </para>
372 <indexterm zone="webkitgtk2 libwebkitgtk-1">
373 <primary sortas="c-libwebkitgtk-1">libwebkitgtk-1.0.so</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="libwebkitgtk-3">
379 <term><filename class="libraryfile">libwebkitgtk-3.0.so</filename></term>
380 <listitem>
381 <para>
382 contains the <application>WebKitGTK+</application> API functions for
383 <application>GTK+ 3</application>.
384 </para>
385 <indexterm zone="webkitgtk2 libwebkitgtk-3">
386 <primary sortas="c-libwebkitgtk-3">libwebkitgtk-3.0.so</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
391 <varlistentry id="libwebkit2gtk-3">
392 <term><filename class="libraryfile">libwebkit2gtk-3.0.so</filename></term>
393 <listitem>
394 <para>
395 contains the <application>WebKit2</application> API functions.
396 </para>
397 <indexterm zone="webkitgtk2 libwebkit2gtk-3">
398 <primary sortas="c-libwebkit2gtk-3">libwebkit2gtk-3.0.so</primary>
399 </indexterm>
400 </listitem>
401 </varlistentry>
402
403 </variablelist>
404
405 </sect2>
406
407</sect1>
Note: See TracBrowser for help on using the repository browser.