source: x/lib/webkitgtk.xml@ 442c799

11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt 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 442c799 was 442c799, checked in by Xi Ruoyao <xry111@…>, 3 years ago

WebKitGTK's '+' is removed now

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

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