source: x/lib/webkitgtk2.xml@ 176aaa6

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 176aaa6 was 176aaa6, checked in by Fernando de Oliveira <fernando@…>, 9 years ago

WebKitGTK+-2.4.8: include one more file in glib sed.

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

  • Property mode set to 100644
File size: 13.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 <!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<!-- Adding MediaPlayerPrivateGStreamerBase.cpp, according to:
135http://pkgs.fedoraproject.org/cgit/webkitgtk3.git/plain/webkitgtk-2.4.8-gmutexlocker.patch?id=7433f334cc84866af5ef0b2c25ead931e6e603ea-->
136<screen><userinput>pushd Source/WebCore/platform/graphics/gstreamer &amp;&amp;
137 sed -i 's/GMutexLocker /WebCore::&amp;/' \
138 MediaPlayerPrivateGStreamerBase.cpp \
139 VideoSinkGStreamer.cpp \
140 WebKitWebSourceGStreamer.cpp &amp;&amp;
141popd</userinput></screen>
142
143 <para>
144 Upstream standard now is to link this package against <application>GTK+
145 3</application>. However, for backward compatibility, manu users need
146 also another instance, linked to <application>GTK+ 2</application>. Both
147 can be installed in the same system, without problem. However, some
148 packages can alternatively be linked to either one. Here, both build
149 methods are presented and recommended to be built, but if you know which
150 one you need, just jump to the respective part.
151 </para>
152
153<!-- ==== WebKitGTK+ against GTK+ 3 ====== -->
154 <bridgehead renderas="sect3">Build and install
155 <application>WebKitGTK+</application> against <application>GTK+
156 3</application></bridgehead>
157
158 <para>
159 Install <application>WebKitGTK+</application> by running the
160 following commands:
161 </para>
162
163<screen><userinput>mkdir -vp build-3 &amp;&amp;
164cp -a Documentation build-3 &amp;&amp;
165cd build-3 &amp;&amp;
166
167../configure --prefix=/usr --enable-introspection &amp;&amp;
168make</userinput></screen>
169
170 <para>
171 This package does not have a working testsuite. However, there are two
172 useable basic graphical web browsers in the build directory,
173 <application>Programs/GtkLauncher</application> and
174 <application>Programs/MiniBrowser</application>. If launching any one
175 fails, there is a problem with the build.
176 </para>
177
178 <note><para>
179 When installing, the Makefile does some additional compiling and linking.
180 If you do not have Xorg in /usr, the LIBRARY_PATH and PKG_CONFIG_PATH
181 variables need to be defined for the root user. If using sudo to assume
182 root, use the -E option to pass your current environment variables for the
183 install process.
184 </para></note>
185
186 <para>
187 Now, as the <systemitem class="username">root</systemitem> user:
188 </para>
189
190<screen role="root"><userinput>make install</userinput></screen>
191
192 <para>
193 Finally, leave the buid directory:
194 </para>
195
196<screen><userinput>cd ..</userinput></screen>
197
198<!-- ==== WebKitGTK+ against GTK+ 2 ====== -->
199 <bridgehead renderas="sect3">Build and install
200 <application>WebKitGTK+</application> against <application>GTK+
201 2</application></bridgehead>
202
203 <para>
204 Install <application>WebKitGTK+</application> by running the
205 following commands:
206 </para>
207
208<screen><userinput>mkdir -vp build-1</userinput></screen>
209
210 <para>
211 If you have built and installed the package against <application>GTK+
212 3</application>. skip the following command, because the previous
213 docummentation also applies here:
214 </para>
215
216<screen><userinput>cp -a Documentation build-1</userinput></screen>
217
218 <para>
219 Now, change into the build directory and effectively start the build and
220 install:
221 </para>
222
223<screen><userinput>cd build-1 &amp;&amp;
224
225../configure --prefix=/usr --with-gtk=2.0 --disable-webkit2 &amp;&amp;
226make</userinput></screen>
227
228 <para>
229 This package does not have a working testsuite. However, there is one
230 useable basic graphical web browser in the build directory,
231 <application>Programs/GtkLauncher</application>. If launching it
232 fails, there is a problem with the build.
233 </para>
234
235 <note><para>
236 When installing, the Makefile does some additional compiling and linking.
237 If you do not have Xorg in /usr, the LIBRARY_PATH and PKG_CONFIG_PATH
238 variables need to be defined for the root user. If using sudo to assume
239 root, use the -E option to pass your current environment variables for the
240 install process.
241 </para></note>
242
243 <para>
244 Now, as the <systemitem class="username">root</systemitem> user:
245 </para>
246
247<screen role="root"><userinput>make install</userinput></screen>
248
249 <para>
250 Finally, leave the buid directory:
251 </para>
252
253<screen><userinput>cd ..</userinput></screen>
254
255 </sect2>
256
257 <sect2 role="commands">
258 <title>Command Explanations</title>
259
260 <para>
261 <option>--enable-introspection</option>: This switch enables support for
262 <application>Gobject Introspection</application> and is required for a
263 <application>GNOME</application> Desktop. Remove if you don't have
264 <application>Gobject Introspection</application> installed or you don't
265 want to install <application>GNOME</application>.
266 </para>
267
268 <para>
269 <option>--disable-geolocation</option>: Use this option if you did not
270 install <xref linkend="geoclue"/> or <command>configure</command> will
271 fail.
272 </para>
273
274 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
275 href="../../xincludes/gtk-doc-rebuild.xml"/>
276
277 </sect2>
278
279 <sect2 role="content">
280 <title>Contents</title>
281
282 <segmentedlist>
283 <segtitle>Installed Programs</segtitle>
284 <segtitle>Installed Libraries</segtitle>
285 <segtitle>Installed Directories</segtitle>
286
287 <seglistitem>
288 <seg>
289 jsc-1 and jsc-3
290 </seg>
291 <seg>
292 libjavascriptcoregtk-1.0.so,
293 libjavascriptcoregtk-3.0.so,
294 libwebkit2gtk-3.0.so,
295 libwebkitgtk-1.0.so, and
296 libwebkitgtk-3.0.so
297 </seg>
298 <seg>
299 /usr/include/webkitgtk-{1,3}.0,
300 /usr/lib/webkit2gtk-3.0,
301 /usr/share/gtk-doc/html/webkit{2,dom,}gtk, and
302 /usr/share/webkitgtk-{1,3}.0
303 </seg>
304 </seglistitem>
305 </segmentedlist>
306
307 <variablelist>
308 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
309 <?dbfo list-presentation="list"?>
310 <?dbhtml list-presentation="table"?>
311
312 <varlistentry id="jsc-1">
313 <term><command>jsc-1</command></term>
314 <listitem>
315 <para>
316 is a command-line utility that allows you to run JavaScript programs
317 outside of the context of a web browser.
318 </para>
319 <indexterm zone="webkitgtk2 jsc-1">
320 <primary sortas="b-jsc-1">jsc-1</primary>
321 </indexterm>
322 </listitem>
323 </varlistentry>
324
325 <varlistentry id="jsc-3">
326 <term><command>jsc-3</command></term>
327 <listitem>
328 <para>
329 is a command-line utility that allows you to run JavaScript programs
330 outside of the context of a web browser.
331 </para>
332 <indexterm zone="webkitgtk2 jsc-3">
333 <primary sortas="b-jsc-3">jsc-3</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
338 <varlistentry id="libjavascriptcoregtk-1">
339 <term><filename
340 class="libraryfile">libjavascriptcoregtk-1.0.so</filename></term>
341 <listitem>
342 <para>
343 contains core JavaScript API functions used by
344 <command>jsc-1</command> and <filename
345 class="libraryfile">libwebkitgtk-1.0.so</filename>.
346 </para>
347 <indexterm zone="webkitgtk2 libjavascriptcoregtk-1">
348 <primary sortas="c-libjavascriptcoregtk-1">libjavascriptcoregtk-1.0.so</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="libjavascriptcoregtk-3">
354 <term><filename
355 class="libraryfile">libjavascriptcoregtk-3.0.so</filename></term>
356 <listitem>
357 <para>
358 contains core JavaScript API functions used by
359 <command>jsc-3</command> and <filename
360 class="libraryfile">libwebkitgtk-3.0.so</filename>.
361 </para>
362 <indexterm zone="webkitgtk2 libjavascriptcoregtk-3">
363 <primary sortas="c-libjavascriptcoregtk-3">libjavascriptcoregtk-3.0.so</primary>
364 </indexterm>
365 </listitem>
366 </varlistentry>
367
368 <varlistentry id="libwebkitgtk-1">
369 <term><filename class="libraryfile">libwebkitgtk-1.0.so</filename></term>
370 <listitem>
371 <para>
372 contains the <application>WebKitGTK+</application> API functions for
373 <application>GTK+ 2</application>.
374 </para>
375 <indexterm zone="webkitgtk2 libwebkitgtk-1">
376 <primary sortas="c-libwebkitgtk-1">libwebkitgtk-1.0.so</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
380
381 <varlistentry id="libwebkitgtk-3">
382 <term><filename class="libraryfile">libwebkitgtk-3.0.so</filename></term>
383 <listitem>
384 <para>
385 contains the <application>WebKitGTK+</application> API functions for
386 <application>GTK+ 3</application>.
387 </para>
388 <indexterm zone="webkitgtk2 libwebkitgtk-3">
389 <primary sortas="c-libwebkitgtk-3">libwebkitgtk-3.0.so</primary>
390 </indexterm>
391 </listitem>
392 </varlistentry>
393
394 <varlistentry id="libwebkit2gtk-3">
395 <term><filename class="libraryfile">libwebkit2gtk-3.0.so</filename></term>
396 <listitem>
397 <para>
398 contains the <application>WebKit2</application> API functions.
399 </para>
400 <indexterm zone="webkitgtk2 libwebkit2gtk-3">
401 <primary sortas="c-libwebkit2gtk-3">libwebkit2gtk-3.0.so</primary>
402 </indexterm>
403 </listitem>
404 </varlistentry>
405
406 </variablelist>
407
408 </sect2>
409
410</sect1>
Note: See TracBrowser for help on using the repository browser.