source: x/lib/webkitgtk.xml@ 5e37f876

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 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 5e37f876 was 5e37f876, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to webkitgtk-2.16.5

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

  • Property mode set to 100644
File size: 9.9 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 "http://webkitgtk.org/releases/webkitgtk-&webkitgtk-version;.tar.xz">
8 <!ENTITY webkitgtk-download-ftp " ">
9 <!ENTITY webkitgtk-md5sum "fce72dc89cd310a663d9eb97133861fe">
10 <!ENTITY webkitgtk-size "14 MB">
11 <!ENTITY webkitgtk-buildsize "1.0 GB (119 MB installed)">
12 <!ENTITY webkitgtk-time "38 SBU (using parallelism=4, extimated 120 SBUs using one core)">
13]>
14
15<sect1 id="webkitgtk" xreflabel="WebKitGTK+-&webkitgtk-version;">
16 <?dbhtml filename="webkitgtk.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>WebKitGTK+-&webkitgtk-version;</title>
24
25 <indexterm zone="webkitgtk">
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> package is a port of the
34 portable web rendering engine <application>WebKit</application> to the
35 <application>GTK+ 3</application> and <application>GTK+ 2</application>
36 platforms.
37 </para>
38
39 &lfs80_checked;
40 &gcc7_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&webkitgtk-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&webkitgtk-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &webkitgtk-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &webkitgtk-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &webkitgtk-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &webkitgtk-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76 <bridgehead renderas="sect3">WebKitGTK+ Dependencies</bridgehead>
77
78 <bridgehead renderas="sect4">Required</bridgehead>
79 <para role="required">
80 <xref linkend="cairo"/>,
81 <xref linkend="cmake"/>,
82 <xref linkend="enchant"/>,
83 <xref linkend="gst10-plugins-base"/>,
84 <xref linkend="gtk2"/>,
85 <xref linkend="gtk3"/>,
86 <xref linkend="icu"/>,
87 <xref linkend="libgudev"/>,
88 <xref linkend="libsecret"/>,
89 <xref linkend="libsoup"/>,
90 <xref linkend="libwebp"/>,
91 <xref linkend="mesa"/>,
92 <xref linkend="ruby"/>,
93 <xref linkend="sqlite"/> and
94 <xref linkend="which"/>
95 </para>
96
97 <bridgehead renderas="sect4">Recommended</bridgehead>
98 <para role="recommended">
99 <xref linkend="geoclue2"/>,
100 <xref linkend="gobject-introspection"/>,
101 <xref linkend="hicolor-icon-theme"/>
102 <xref linkend="libnotify"/>
103 </para>
104
105 <bridgehead renderas="sect4">Optional</bridgehead>
106 <para role="optional">
107 <xref linkend="gtk-doc"/>,
108 <xref linkend="harfbuzz"/>,
109 <xref linkend="llvm"/>,
110 <xref linkend="wayland"/>,
111 <ulink url="http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>, and
112 <ulink url="http://xsltml.sourceforge.net/">MathML</ulink>
113 </para>
114
115 <para condition="html" role="usernotes">
116 User Notes: <ulink url="&blfs-wiki;/webkitgtk"/>
117 </para>
118 </sect2>
119
120 <sect2 role="installation">
121 <title>Installation of WebKitGTK+</title>
122
123 <bridgehead renderas="sect3">Installation of
124 <application>WebKitGTK+</application></bridgehead>
125
126 <caution>
127 <para>
128 You must rebuild <application>Perl</application> with -Dusethreads
129 if LFS was built without that option. LFS made this change in
130 April 2017.
131 </para>
132 </caution>
133
134 <para>
135 First, fix a build issue with <application>ICU</application> &gt;= 59:
136 </para>
137
138<screen><userinput>sed -i 's/unsigned short/char16_t/' \
139 Source/JavaScriptCore/API/JSStringRef.h \
140 Source/WebKit2/Shared/API/c/WKString.h &amp;&amp;
141
142sed -i '/stdbool.h/ a#include &lt;uchar.h&gt;' \
143 Source/JavaScriptCore/API/JSBase.h</userinput></screen>
144
145 <para>
146 Install <application>WebKitGTK+</application> by running the
147 following commands:
148 </para>
149
150<screen><userinput>mkdir -vp build &amp;&amp;
151cd build &amp;&amp;
152
153CFLAGS=-Wno-expansion-to-defined \
154CXXFLAGS=-Wno-expansion-to-defined \
155cmake -DCMAKE_BUILD_TYPE=Release \
156 -DCMAKE_INSTALL_PREFIX=/usr \
157 -DCMAKE_SKIP_RPATH=ON \
158 -DPORT=GTK \
159 -DLIB_INSTALL_DIR=/usr/lib \
160 -DUSE_LIBHYPHEN=OFF \
161 -DENABLE_MINIBROWSER=ON \
162 -Wno-dev .. &amp;&amp;
163make</userinput></screen>
164
165 <para>
166 This package does not have a working testsuite. However, there is a
167 useable basic graphical web browser in the build directory,
168 <application>build/bin/MiniBrowser</application>. If launching it fails,
169 there is a problem with the build.
170 </para>
171
172 <note><para>
173 When installing, the Makefile does some additional compiling and linking.
174 If you do not have Xorg in /usr, the LIBRARY_PATH and PKG_CONFIG_PATH
175 variables need to be defined for the root user. If using sudo to assume
176 root, use the -E option to pass your current environment variables for the
177 install process.
178 </para></note>
179
180 <para>
181 Now, as the <systemitem class="username">root</systemitem> user:
182 </para>
183
184<screen role="root"><userinput>make install &amp;&amp;
185
186install -vdm755 /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0 &amp;&amp;
187install -vm644 ../Documentation/webkit2gtk-4.0/html/* \
188 /usr/share/gtk-doc/html/webkit2gtk-4.0 &amp;&amp;
189install -vm644 ../Documentation/webkitdomgtk-4.0/html/* \
190 /usr/share/gtk-doc/html/webkitdomgtk-4.0</userinput></screen>
191
192 </sect2>
193
194 <sect2 role="commands">
195 <title>Command Explanations</title>
196
197 <para>
198 <parameter>-DUSE_LIBHYPHEN=OFF</parameter>: This switch disables
199 default automatic hyphenation implementation. You need to install
200 <ulink
201 url="http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>,
202 if you wish to enable it (replacing OFF with ON or just removing
203 the switch).
204 </para>
205
206 <para>
207 <parameter>-DENABLE_MINIBROWSER=ON</parameter>: This switch enables the
208 <application>Mini Browser</application> compilation and install.
209 </para>
210
211 <para>
212 <option>-DUSE_LIBNOTIFY=OFF</option>: Use this switch if you do not
213 have <application>libnotify</application> installed.
214 </para>
215
216 <para>
217 <option>-DUSE_SYSTEM_MALLOC=ON</option>: This switch enables building
218 against the system installed <application>malloc</application>.
219 </para>
220
221 <para>
222 <option>-DENABLE_GEOLOCATION=OFF</option>: Use this switch if you don't
223 want to install <xref linkend="geoclue2"/>.
224 </para>
225
226 <para>
227 <option>-DENABLE_GTKDOC=ON</option>: Use this switch if <xref
228 linkend="gtk-doc"/> is installed and you wish to rebuild and install the
229 API documentation.
230 </para>
231
232 </sect2>
233
234 <sect2 role="content">
235 <title>Contents</title>
236
237 <segmentedlist>
238 <segtitle>Installed Program</segtitle>
239 <segtitle>Installed Libraries</segtitle>
240 <segtitle>Installed Directories</segtitle>
241
242 <seglistitem>
243 <seg>
244 jsc and MiniBrowser
245 </seg>
246 <seg>
247 libjavascriptcoregtk-4.0.so and
248 libwebkit2gtk-4.0.so
249 </seg>
250 <seg>
251 /usr/include/webkitgtk-4.0,
252 /usr/lib{,exec}/webkit2gtk-4.0 and
253 /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0
254 </seg>
255 </seglistitem>
256 </segmentedlist>
257
258 <variablelist>
259 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
260 <?dbfo list-presentation="list"?>
261 <?dbhtml list-presentation="table"?>
262
263 <varlistentry id="jsc">
264 <term><command>jsc</command></term>
265 <listitem>
266 <para>
267 is a command-line utility that allows you to run JavaScript programs
268 outside of the context of a web browser.
269 </para>
270 <indexterm zone="webkitgtk jsc">
271 <primary sortas="b-jsc">jsc</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 <varlistentry id="MiniBrowser">
277 <term><command>MiniBrowser</command></term>
278 <listitem>
279 <para>
280 is a very simple graphical browser.
281 </para>
282 <indexterm zone="webkitgtk MiniBrowser">
283 <primary sortas="b-MiniBrowser">MiniBrowser</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
288 <varlistentry id="libjavascriptcoregtk-4.0">
289 <term><filename
290 class="libraryfile">libjavascriptcoregtk-4.0.so</filename></term>
291 <listitem>
292 <para>
293 contains core JavaScript API functions used by
294 <command>jsc</command> and <filename
295 class="libraryfile">libwebkit2gtk-4.0</filename>.
296 </para>
297 <indexterm zone="webkitgtk libjavascriptcoregtk-4.0">
298 <primary sortas="c-libjavascriptcoregtk-4.0">libjavascriptcoregtk-4.0.0.so</primary>
299 </indexterm>
300 </listitem>
301 </varlistentry>
302
303 <varlistentry id="libwebkit2gtk-4">
304 <term><filename class="libraryfile">libwebkit2gtk-4.0.so</filename></term>
305 <listitem>
306 <para>
307 contains the <application>WebKit2</application> API functions.
308 </para>
309 <indexterm zone="webkitgtk libwebkit2gtk-4">
310 <primary sortas="c-libwebkit2gtk-4">libwebkit2gtk-4.0.so</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 </variablelist>
316
317 </sect2>
318
319</sect1>
Note: See TracBrowser for help on using the repository browser.