source: x/lib/webkitgtk.xml@ be9944b

xry111/soup3
Last change on this file since be9944b was be9944b, checked in by Xi Ruoyao <xry111@…>, 20 months ago

update to WebKitGTK-2.38.0 (#17046)

  • Property mode set to 100644
File size: 13.1 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 "https://webkitgtk.org/releases/webkitgtk-&webkitgtk-version;.tar.xz">
8 <!ENTITY webkitgtk-download-ftp " ">
9 <!ENTITY webkitgtk-md5sum "a69cd8fc05f7299458b4faf1bc99b875">
10 <!ENTITY webkitgtk-size "32 MB">
11 <!ENTITY webkitgtk-buildsize "988 MB (133 MB installed)">
12 <!ENTITY webkitgtk-time "32 SBU (using parallelism=4, estimated 117 SBU using one core)">
13]>
14
15<sect1 id="webkitgtk" xreflabel="WebKitGTK-&webkitgtk-version;">
16 <?dbhtml filename="webkitgtk.html"?>
17
18 <sect1info>
19 <date>$Date$</date>
20 </sect1info>
21
22 <title>WebKitGTK-&webkitgtk-version;</title>
23
24 <indexterm zone="webkitgtk">
25 <primary sortas="a-WebKitGTK">WebKitGTK</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to WebKitGTK</title>
30
31 <para>
32 The <application>WebKitGTK</application> package is a port of the
33 portable web rendering engine <application>WebKit</application> to the
34 <application>GTK+ 3</application> and <application>GTK+ 2</application>
35 platforms.
36 </para>
37
38 &lfs112_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&webkitgtk-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&webkitgtk-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &webkitgtk-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &webkitgtk-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &webkitgtk-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &webkitgtk-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74<!--
75 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing="compact">
77 <listitem>
78 <para>
79 Required patch:
80 <ulink url="&patch-root;/webkitgtk-&webkitgtk-version;-upstream_fix-1.patch"/>
81 </para>
82 </listitem>
83 </itemizedlist>
84-->
85
86 <bridgehead renderas="sect3">WebKitGTK Dependencies</bridgehead>
87
88 <bridgehead renderas="sect4">Required</bridgehead>
89 <para role="required">
90 <xref linkend="cairo"/>,
91 <xref linkend="cmake"/>,
92 <xref linkend="gst10-plugins-base"/>,
93 <xref linkend="gst10-plugins-bad"/>,
94 <xref linkend="gtk3"/>,
95 <xref linkend="icu"/>,
96 <xref linkend="lcms2"/>,
97 <xref linkend="libgudev"/>,
98 <xref linkend="libsecret"/>,
99 <xref linkend="libsoup3"/>,
100 <xref linkend="libtasn1"/>,
101 <xref linkend="libwebp"/>,
102 <xref linkend="mesa"/>,
103 <xref linkend="openjpeg2"/>,
104 <xref linkend="ruby"/>,
105 <xref linkend="sqlite"/>,
106 <xref linkend="which"/>, and
107 <xref linkend="wpebackend-fdo"/>
108 </para>
109
110 <bridgehead renderas="sect4">Recommended</bridgehead>
111 <para role="recommended">
112 <xref linkend="enchant"/>,
113 <xref linkend="geoclue2"/>,
114 <xref linkend="gobject-introspection"/>,
115 <xref linkend="hicolor-icon-theme"/>, and
116 <xref linkend="libnotify"/>
117 </para>
118
119 <bridgehead renderas="sect4">Optional</bridgehead>
120 <para role="optional">
121 <xref linkend="bubblewrap"/>,
122 <xref linkend="gtk-doc"/>,
123 <xref linkend="gtk4"/>,
124 <xref linkend="harfbuzz"/>,
125 <xref linkend="wayland"/>,
126 <xref linkend="woff2"/>,
127 <ulink url="https://ccache.dev/">ccache</ulink>,
128 <ulink url="https://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>,
129 <ulink url="https://github.com/AOMediaCodec/libavif">libavif</ulink>,
130 <ulink url="https://gnome.pages.gitlab.gnome.org/libmanette/">libmanette</ulink>, and
131 <ulink url="https://github.com/flatpak/xdg-dbus-proxy">xdg-dbus-proxy</ulink>
132 </para>
133
134 <para condition="html" role="usernotes">
135 User Notes: <ulink url="&blfs-wiki;/webkitgtk"/>
136 </para>
137 </sect2>
138
139 <sect2 role="installation">
140 <title>Installation of WebKitGTK</title>
141
142 <bridgehead renderas="sect3">Installation of
143 <application>WebKitGTK</application></bridgehead>
144
145<!--
146 <para>
147 Fix an issue causing a crash viewing some web pages:
148 </para>
149
150<screen><userinput>patch -Np1 -i ../webkitgtk-&webkitgtk-version;-upstream_fix-1.patch</userinput></screen>
151-->
152
153 <para>
154 Install <application>WebKitGTK</application> by running the
155 following commands:
156 </para>
157
158<screen revision="systemd"><userinput>mkdir -vp build &amp;&amp;
159cd build &amp;&amp;
160
161cmake -DCMAKE_BUILD_TYPE=Release \
162 -DCMAKE_INSTALL_PREFIX=/usr \
163 -DCMAKE_SKIP_RPATH=ON \
164 -DPORT=GTK \
165 -DLIB_INSTALL_DIR=/usr/lib \
166 -DUSE_LIBHYPHEN=OFF \
167 -DENABLE_GAMEPAD=OFF \
168 -DENABLE_MINIBROWSER=ON \
169 -DUSE_WOFF2=OFF \
170 -DUSE_WPE_RENDERER=ON \
171 -DENABLE_BUBBLEWRAP_SANDBOX=OFF \
172 -Wno-dev -G Ninja .. &amp;&amp;
173ninja</userinput></screen>
174
175<screen revision="sysv"><userinput>mkdir -vp build &amp;&amp;
176cd build &amp;&amp;
177
178cmake -DCMAKE_BUILD_TYPE=Release \
179 -DCMAKE_INSTALL_PREFIX=/usr \
180 -DCMAKE_SKIP_RPATH=ON \
181 -DPORT=GTK \
182 -DLIB_INSTALL_DIR=/usr/lib \
183 -DUSE_LIBHYPHEN=OFF \
184 -DENABLE_GAMEPAD=OFF \
185 -DENABLE_MINIBROWSER=ON \
186 -DUSE_WOFF2=OFF \
187 -DUSE_WPE_RENDERER=ON \
188 -DENABLE_JOURNALD_LOG=OFF \
189 -DENABLE_BUBBLEWRAP_SANDBOX=OFF \
190 -Wno-dev -G Ninja .. &amp;&amp;
191ninja</userinput></screen>
192
193 <para>
194 This package does not have a working testsuite. However, there is a
195 usable basic graphical web browser in the build directory,
196 <application>build/bin/MiniBrowser</application>. If launching it fails,
197 there is a problem with the build.
198 </para>
199
200<!-- Since we're using Ninja now instead of autotools, this isn't valid anymore
201 <note><para>
202 When installing, the Makefile does some additional compiling and linking.
203 If you do not have Xorg in /usr, the LIBRARY_PATH and PKG_CONFIG_PATH
204 variables need to be defined for the root user. If using sudo to assume
205 root, use the -E option to pass your current environment variables for the
206 install process.
207 </para></note>
208-->
209
210 <para>
211 Now, as the <systemitem class="username">root</systemitem> user:
212 </para>
213
214<screen role="root"><userinput>ninja install
215install -vdm755 /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.1 &amp;&amp;
216install -vm644 ../Documentation/webkit2gtk-4.1/html/* \
217 /usr/share/gtk-doc/html/webkit2gtk-4.1 &amp;&amp;
218install -vm644 ../Documentation/webkitdomgtk-4.1/html/* \
219 /usr/share/gtk-doc/html/webkitdomgtk-4.1</userinput></screen>
220
221 </sect2>
222
223 <sect2 role="commands">
224 <title>Command Explanations</title>
225
226<!-- <para>
227 <command>sed ... TextCheckerEnchant.cpp</command>: This command
228 is needed to allow the build to complete with enchant-2.x.
229 </para> -->
230
231 <para>
232 <parameter>-DUSE_LIBHYPHEN=OFF</parameter>: This switch disables the
233 default automatic hyphenation implementation. You need to install
234 <ulink
235 url="https://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>
236 if you wish to enable it (replacing OFF with ON or just removing
237 the switch).
238 </para>
239
240 <para>
241 <parameter>-DENABLE_GAMEPAD=OFF</parameter>: This switch disables
242 gamepad support. Remove this switch if you have
243 <ulink url="https://gnome.pages.gitlab.gnome.org/libmanette/">libmanette</ulink>
244 installed and wish to enable it.
245 </para>
246
247 <para>
248 <parameter>-DENABLE_MINIBROWSER=ON</parameter>: This switch enables
249 compiling and installing the MiniBrowser.
250 </para>
251
252 <para>
253 <parameter>-DUSE_WPE_RENDERER=ON</parameter>: This switch uses the WPE
254 renderer, which is recommended by upstream.
255 </para>
256
257 <para>
258 <parameter>-DENABLE_BUBBLEWRAP_SANDBOX=OFF</parameter>: Remove this
259 switch if the optional packages <xref linkend="bubblewrap"/> and
260 <ulink url="https://github.com/flatpak/xdg-dbus-proxy">xdg-dbus-proxy</ulink>
261 are installed.
262 </para>
263
264 <para revision="sysv">
265 <parameter>-DENABLE_JOURNALD_LOG=OFF</parameter>: This switch disables using the
266 systemd journal for logging errors and debugging information since it
267 is not available on SysV systems.
268 </para>
269
270 <para>
271 <option>-DUSE_LIBNOTIFY=OFF</option>: Use this switch if you do not
272 have <application>libnotify</application> installed.
273 </para>
274
275 <para>
276 <option>-DUSE_SYSTEM_MALLOC=ON</option>: This switch enables building
277 against the system installed <application>malloc</application>.
278 </para>
279
280 <para>
281 <option>-DENABLE_GEOLOCATION=OFF</option>: Use this switch if you don't
282 want to install <xref linkend="geoclue2"/>.
283 </para>
284
285 <para>
286 <option>-DENABLE_GTKDOC=ON</option>: Use this switch if <xref
287 linkend="gtk-doc"/> is installed and you wish to rebuild and install the
288 API documentation.
289 </para>
290
291 <para>
292 <option>-DUSE_WOFF2=ON</option>: Use this switch if the optional
293 package <xref linkend="woff2"/> is installed. This adds additional
294 support for fonts.
295 </para>
296
297 <!-- Uncomment once GTK4 support works, or when it doesn't require
298 a development version of libsoup.
299 <para>
300 <option>-DUSE_GTK4=ON</option>: Use this switch if <xref linkend="gtk4"/>
301 is installed and you wish to build GTK4 support.
302 </para>
303 -->
304
305 </sect2>
306
307 <sect2 role="content">
308 <title>Contents</title>
309
310 <segmentedlist>
311 <segtitle>Installed Program</segtitle>
312 <segtitle>Installed Libraries</segtitle>
313 <segtitle>Installed Directories</segtitle>
314
315 <seglistitem>
316 <seg>
317<!-- Moved to /usr/libexec/webkit2gtk-4.1, so shouldn't appear here
318 jsc,
319 MiniBrowser, and -->
320 WebKitWebDriver
321 </seg>
322 <seg>
323 libjavascriptcoregtk-4.1.so and
324 libwebkit2gtk-4.1.so
325 </seg>
326 <seg>
327 /usr/include/webkitgtk-4.1 and
328 /usr/lib{,exec}/webkit2gtk-4.1
329<!-- /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0 -->
330 </seg>
331 </seglistitem>
332 </segmentedlist>
333
334 <variablelist>
335 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
336 <?dbfo list-presentation="list"?>
337 <?dbhtml list-presentation="table"?>
338
339<!--
340 <varlistentry id="jsc">
341 <term><command>jsc</command></term>
342 <listitem>
343 <para>
344 is a command-line utility that allows you to run JavaScript programs
345 outside of the context of a web browser.
346 </para>
347 <indexterm zone="webkitgtk jsc">
348 <primary sortas="b-jsc">jsc</primary>
349 </indexterm>
350 </listitem>
351 </varlistentry>
352
353 <varlistentry id="MiniBrowser">
354 <term><command>MiniBrowser</command></term>
355 <listitem>
356 <para>
357 is a very simple graphical browser.
358 </para>
359 <indexterm zone="webkitgtk MiniBrowser">
360 <primary sortas="b-MiniBrowser">MiniBrowser</primary>
361 </indexterm>
362 </listitem>
363 </varlistentry>
364-->
365 <varlistentry id="WebKitWebDriver">
366 <term><command>WebKitWebDriver</command></term>
367 <listitem>
368 <para>
369 allows debugging and automation of web pages and browsers
370 </para>
371 <indexterm zone="webkitgtk WebKitWebDriver">
372 <primary sortas="b-WebKitWebDriver">WebKitWebDriver</primary>
373 </indexterm>
374 </listitem>
375 </varlistentry>
376
377 <varlistentry id="libjavascriptcoregtk-4.1">
378 <term>
379 <filename class="libraryfile">libjavascriptcoregtk-4.1.so</filename>
380 </term>
381 <listitem>
382 <para>
383 contains core JavaScript API functions used by
384 <command>jsc</command> and
385 <filename class="libraryfile">libwebkit2gtk-4.1</filename>
386 </para>
387 <indexterm zone="webkitgtk libjavascriptcoregtk-4.1">
388 <primary sortas="c-libjavascriptcoregtk-4.1">libjavascriptcoregtk-4.1.so</primary>
389 </indexterm>
390 </listitem>
391 </varlistentry>
392
393 <varlistentry id="libwebkit2gtk-4.1">
394 <term><filename class="libraryfile">libwebkit2gtk-4.1.so</filename></term>
395 <listitem>
396 <para>
397 contains the <application>WebKit2</application> API functions
398 </para>
399 <indexterm zone="webkitgtk libwebkit2gtk-4.1">
400 <primary sortas="c-libwebkit2gtk-4.1">libwebkit2gtk-4.1.so</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
404
405 </variablelist>
406
407 </sect2>
408
409</sect1>
Note: See TracBrowser for help on using the repository browser.