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 "e2a5bbd09a217eba096a2d1562143e35">
|
---|
10 | <!ENTITY webkitgtk-size "17 MB">
|
---|
11 | <!ENTITY webkitgtk-buildsize "845 MB (158 MB installed)">
|
---|
12 | <!ENTITY webkitgtk-time "22 SBU (using parallelism=4, 75 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 | &lfs84_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&webkitgtk-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&webkitgtk-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &webkitgtk-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &webkitgtk-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &webkitgtk-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &webkitgtk-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="cairo"/>,
|
---|
80 | <xref linkend="cmake"/>,
|
---|
81 | <xref linkend="gst10-plugins-base"/>,
|
---|
82 | <xref linkend="gst10-plugins-bad"/>,
|
---|
83 | <xref linkend="gtk2"/>,
|
---|
84 | <xref linkend="gtk3"/>,
|
---|
85 | <xref linkend="icu"/>,
|
---|
86 | <xref linkend="libgudev"/>,
|
---|
87 | <xref linkend="libsecret"/>,
|
---|
88 | <xref linkend="libsoup"/>,
|
---|
89 | <xref linkend="libwebp"/>,
|
---|
90 | <xref linkend="mesa"/>,
|
---|
91 | <xref linkend="openjpeg2"/>,
|
---|
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="enchant"/>,
|
---|
100 | <xref linkend="geoclue2"/>,
|
---|
101 | <xref linkend="gobject-introspection"/>,
|
---|
102 | <xref linkend="hicolor-icon-theme"/>, and
|
---|
103 | <xref linkend="libnotify"/>
|
---|
104 | </para>
|
---|
105 |
|
---|
106 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
107 | <para role="optional">
|
---|
108 | <xref linkend="gtk-doc"/>,
|
---|
109 | <xref linkend="harfbuzz"/>,
|
---|
110 | <xref linkend="llvm"/>,
|
---|
111 | <xref linkend="wayland"/>,
|
---|
112 | <ulink url="http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>,
|
---|
113 | <ulink url="http://xsltml.sourceforge.net/">MathML</ulink>, and
|
---|
114 | <ulink url="https://github.com/google/woff2">woff2</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 | <bridgehead renderas="sect3">Installation of
|
---|
126 | <application>WebKitGTK+</application></bridgehead>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | Install <application>WebKitGTK+</application> by running the
|
---|
130 | following commands:
|
---|
131 | </para>
|
---|
132 |
|
---|
133 | <screen><userinput>mkdir -vp build &&
|
---|
134 | cd build &&
|
---|
135 |
|
---|
136 | CFLAGS=-Wno-expansion-to-defined \
|
---|
137 | CXXFLAGS=-Wno-expansion-to-defined \
|
---|
138 | cmake -DCMAKE_BUILD_TYPE=Release \
|
---|
139 | -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
140 | -DCMAKE_SKIP_RPATH=ON \
|
---|
141 | -DPORT=GTK \
|
---|
142 | -DLIB_INSTALL_DIR=/usr/lib \
|
---|
143 | -DUSE_LIBHYPHEN=OFF \
|
---|
144 | -DENABLE_MINIBROWSER=ON \
|
---|
145 | -DUSE_WOFF2=OFF \
|
---|
146 | -Wno-dev -G Ninja .. &&
|
---|
147 | ninja</userinput></screen>
|
---|
148 |
|
---|
149 | <para>
|
---|
150 | This package does not have a working testsuite. However, there is a
|
---|
151 | usable basic graphical web browser in the build directory,
|
---|
152 | <application>build/bin/MiniBrowser</application>. If launching it fails,
|
---|
153 | there is a problem with the build.
|
---|
154 | </para>
|
---|
155 |
|
---|
156 | <note><para>
|
---|
157 | When installing, the Makefile does some additional compiling and linking.
|
---|
158 | If you do not have Xorg in /usr, the LIBRARY_PATH and PKG_CONFIG_PATH
|
---|
159 | variables need to be defined for the root user. If using sudo to assume
|
---|
160 | root, use the -E option to pass your current environment variables for the
|
---|
161 | install process.
|
---|
162 | </para></note>
|
---|
163 |
|
---|
164 | <para>
|
---|
165 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
166 | </para>
|
---|
167 |
|
---|
168 | <screen role="root"><userinput>ninja install &&
|
---|
169 |
|
---|
170 | install -vdm755 /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0 &&
|
---|
171 | install -vm644 ../Documentation/webkit2gtk-4.0/html/* \
|
---|
172 | /usr/share/gtk-doc/html/webkit2gtk-4.0 &&
|
---|
173 | install -vm644 ../Documentation/webkitdomgtk-4.0/html/* \
|
---|
174 | /usr/share/gtk-doc/html/webkitdomgtk-4.0</userinput></screen>
|
---|
175 |
|
---|
176 | </sect2>
|
---|
177 |
|
---|
178 | <sect2 role="commands">
|
---|
179 | <title>Command Explanations</title>
|
---|
180 |
|
---|
181 | <!-- <para>
|
---|
182 | <command>sed ... TextCheckerEnchant.cpp</command>: This command
|
---|
183 | is needed to allow the build to complete with enchant-2.x.
|
---|
184 | </para> -->
|
---|
185 |
|
---|
186 | <para>
|
---|
187 | <parameter>-DUSE_LIBHYPHEN=OFF</parameter>: This switch disables
|
---|
188 | default automatic hyphenation implementation. You need to install
|
---|
189 | <ulink
|
---|
190 | url="http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>,
|
---|
191 | if you wish to enable it (replacing OFF with ON or just removing
|
---|
192 | the switch).
|
---|
193 | </para>
|
---|
194 |
|
---|
195 | <para>
|
---|
196 | <parameter>-DENABLE_MINIBROWSER=ON</parameter>: This switch enables the
|
---|
197 | <application>Mini Browser</application> compilation and install.
|
---|
198 | </para>
|
---|
199 |
|
---|
200 | <para>
|
---|
201 | <option>-DUSE_LIBNOTIFY=OFF</option>: Use this switch if you do not
|
---|
202 | have <application>libnotify</application> installed.
|
---|
203 | </para>
|
---|
204 |
|
---|
205 | <para>
|
---|
206 | <option>-DUSE_SYSTEM_MALLOC=ON</option>: This switch enables building
|
---|
207 | against the system installed <application>malloc</application>.
|
---|
208 | </para>
|
---|
209 |
|
---|
210 | <para>
|
---|
211 | <option>-DENABLE_GEOLOCATION=OFF</option>: Use this switch if you don't
|
---|
212 | want to install <xref linkend="geoclue2"/>.
|
---|
213 | </para>
|
---|
214 |
|
---|
215 | <para>
|
---|
216 | <option>-DENABLE_GTKDOC=ON</option>: Use this switch if <xref
|
---|
217 | linkend="gtk-doc"/> is installed and you wish to rebuild and install the
|
---|
218 | API documentation.
|
---|
219 | </para>
|
---|
220 |
|
---|
221 | <para>
|
---|
222 | <option>-DUSE_WOFF2=ON</option>: Use this switch if the optional
|
---|
223 | package <ulink url="https://github.com/google/woff2">woff2</ulink> is installed.
|
---|
224 | </para>
|
---|
225 |
|
---|
226 | </sect2>
|
---|
227 |
|
---|
228 | <sect2 role="content">
|
---|
229 | <title>Contents</title>
|
---|
230 |
|
---|
231 | <segmentedlist>
|
---|
232 | <segtitle>Installed Program</segtitle>
|
---|
233 | <segtitle>Installed Libraries</segtitle>
|
---|
234 | <segtitle>Installed Directories</segtitle>
|
---|
235 |
|
---|
236 | <seglistitem>
|
---|
237 | <seg>
|
---|
238 | jsc,
|
---|
239 | MiniBrowser, and
|
---|
240 | WebKitWebDriver
|
---|
241 | </seg>
|
---|
242 | <seg>
|
---|
243 | libjavascriptcoregtk-4.0.so and
|
---|
244 | libwebkit2gtk-4.0.so
|
---|
245 | </seg>
|
---|
246 | <seg>
|
---|
247 | /usr/include/webkitgtk-4.0,
|
---|
248 | /usr/lib{,exec}/webkit2gtk-4.0, and
|
---|
249 | /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0
|
---|
250 | </seg>
|
---|
251 | </seglistitem>
|
---|
252 | </segmentedlist>
|
---|
253 |
|
---|
254 | <variablelist>
|
---|
255 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
256 | <?dbfo list-presentation="list"?>
|
---|
257 | <?dbhtml list-presentation="table"?>
|
---|
258 |
|
---|
259 | <varlistentry id="jsc">
|
---|
260 | <term><command>jsc</command></term>
|
---|
261 | <listitem>
|
---|
262 | <para>
|
---|
263 | is a command-line utility that allows you to run JavaScript programs
|
---|
264 | outside of the context of a web browser.
|
---|
265 | </para>
|
---|
266 | <indexterm zone="webkitgtk jsc">
|
---|
267 | <primary sortas="b-jsc">jsc</primary>
|
---|
268 | </indexterm>
|
---|
269 | </listitem>
|
---|
270 | </varlistentry>
|
---|
271 |
|
---|
272 | <varlistentry id="MiniBrowser">
|
---|
273 | <term><command>MiniBrowser</command></term>
|
---|
274 | <listitem>
|
---|
275 | <para>
|
---|
276 | is a very simple graphical browser.
|
---|
277 | </para>
|
---|
278 | <indexterm zone="webkitgtk MiniBrowser">
|
---|
279 | <primary sortas="b-MiniBrowser">MiniBrowser</primary>
|
---|
280 | </indexterm>
|
---|
281 | </listitem>
|
---|
282 | </varlistentry>
|
---|
283 |
|
---|
284 | <varlistentry id="WebKitWebDriver">
|
---|
285 | <term><command>WebKitWebDriver</command></term>
|
---|
286 | <listitem>
|
---|
287 | <para>
|
---|
288 | allows debugging and automation of web pages and browsers.
|
---|
289 | </para>
|
---|
290 | <indexterm zone="webkitgtk WebKitWebDriver">
|
---|
291 | <primary sortas="b-WebKitWebDriver">WebKitWebDriver</primary>
|
---|
292 | </indexterm>
|
---|
293 | </listitem>
|
---|
294 | </varlistentry>
|
---|
295 |
|
---|
296 | <varlistentry id="libjavascriptcoregtk-4.0">
|
---|
297 | <term><filename
|
---|
298 | class="libraryfile">libjavascriptcoregtk-4.0.so</filename></term>
|
---|
299 | <listitem>
|
---|
300 | <para>
|
---|
301 | contains core JavaScript API functions used by
|
---|
302 | <command>jsc</command> and <filename
|
---|
303 | class="libraryfile">libwebkit2gtk-4.0</filename>.
|
---|
304 | </para>
|
---|
305 | <indexterm zone="webkitgtk libjavascriptcoregtk-4.0">
|
---|
306 | <primary sortas="c-libjavascriptcoregtk-4.0">libjavascriptcoregtk-4.0.0.so</primary>
|
---|
307 | </indexterm>
|
---|
308 | </listitem>
|
---|
309 | </varlistentry>
|
---|
310 |
|
---|
311 | <varlistentry id="libwebkit2gtk-4">
|
---|
312 | <term><filename class="libraryfile">libwebkit2gtk-4.0.so</filename></term>
|
---|
313 | <listitem>
|
---|
314 | <para>
|
---|
315 | contains the <application>WebKit2</application> API functions.
|
---|
316 | </para>
|
---|
317 | <indexterm zone="webkitgtk libwebkit2gtk-4">
|
---|
318 | <primary sortas="c-libwebkit2gtk-4">libwebkit2gtk-4.0.so</primary>
|
---|
319 | </indexterm>
|
---|
320 | </listitem>
|
---|
321 | </varlistentry>
|
---|
322 |
|
---|
323 | </variablelist>
|
---|
324 |
|
---|
325 | </sect2>
|
---|
326 |
|
---|
327 | </sect1>
|
---|