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 "24a25ccc30a7914ae50922aedf24b7bc">
|
---|
10 | <!ENTITY webkitgtk2-size "9.5 MB">
|
---|
11 | <!ENTITY webkitgtk2-buildsize "1.5 GB (both built)">
|
---|
12 | <!ENTITY webkitgtk2-time "80 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 |
|
---|
19 | <title>WebKitGTK+-&webkitgtk2-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="webkitgtk2">
|
---|
22 | <primary sortas="a-WebKitGTK+">WebKitGTK+</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to WebKitGTK+</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | The <application>WebKitGTK+</application> is the port of the portable
|
---|
30 | web rendering engine <application>WebKit</application> to the
|
---|
31 | <application>GTK+ 3</application> and <application>GTK+ 2</application>
|
---|
32 | platforms.
|
---|
33 | </para>
|
---|
34 |
|
---|
35 | &lfs7a_checked;
|
---|
36 |
|
---|
37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
38 | <itemizedlist spacing="compact">
|
---|
39 | <listitem>
|
---|
40 | <para>
|
---|
41 | Download (HTTP): <ulink url="&webkitgtk2-download-http;"/>
|
---|
42 | </para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>
|
---|
46 | Download (FTP): <ulink url="&webkitgtk2-download-ftp;"/>
|
---|
47 | </para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>
|
---|
51 | Download MD5 sum: &webkitgtk2-md5sum;
|
---|
52 | </para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>
|
---|
56 | Download size: &webkitgtk2-size;
|
---|
57 | </para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>
|
---|
61 | Estimated disk space required: &webkitgtk2-buildsize;
|
---|
62 | </para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>
|
---|
66 | Estimated build time: &webkitgtk2-time;
|
---|
67 | </para>
|
---|
68 | </listitem>
|
---|
69 | </itemizedlist>
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
72 | <itemizedlist spacing="compact">
|
---|
73 | <listitem>
|
---|
74 | <para>
|
---|
75 | Required patch if using gcc-6 or later
|
---|
76 | <ulink url="&patch-root;/webkitgtk-&webkitgtk2-version;-gcc6-1.patch"/>
|
---|
77 | </para>
|
---|
78 | </listitem>
|
---|
79 | </itemizedlist>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect3">WebKitGTK+ Dependencies</bridgehead>
|
---|
82 |
|
---|
83 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
84 | <para role="required">
|
---|
85 | <xref linkend="gst10-plugins-base"/>,
|
---|
86 | <xref linkend="gtk3"/> or
|
---|
87 | <xref linkend="gtk2"/> or both,
|
---|
88 | <xref linkend="icu"/>,
|
---|
89 | <xref linkend="libgudev"/>,
|
---|
90 | <xref linkend="libsecret"/>,
|
---|
91 | <xref linkend="libsoup"/>,
|
---|
92 | <xref linkend="libwebp"/>,
|
---|
93 | <xref linkend="mesa"/>,
|
---|
94 | <xref linkend="ruby"/>,
|
---|
95 | <xref linkend="sqlite"/> and
|
---|
96 | <xref linkend="which"/>
|
---|
97 | </para>
|
---|
98 |
|
---|
99 | <note>
|
---|
100 | <para>
|
---|
101 | Note that WebKit2 links against <application>GTK+ 2</application>
|
---|
102 | (even if <application>GTK+ 3</application> is being used) in order
|
---|
103 | to be able to use NPAPI plugins such as Adobe Flash.
|
---|
104 | </para>
|
---|
105 | </note>
|
---|
106 |
|
---|
107 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
108 | <para role="recommended">
|
---|
109 | <xref linkend="enchant"/>,
|
---|
110 | <xref linkend="geoclue2"/> or
|
---|
111 | <xref linkend="geoclue"/>,
|
---|
112 | <xref linkend="gobject-introspection"/> and
|
---|
113 | <xref linkend="hicolor-icon-theme"/>
|
---|
114 | </para>
|
---|
115 |
|
---|
116 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
117 | <para role="optional">
|
---|
118 | <xref linkend="gtk-doc"/>,
|
---|
119 | <xref linkend="llvm"/> and
|
---|
120 | <ulink url="http://xsltml.sourceforge.net/">MathML</ulink>
|
---|
121 | </para>
|
---|
122 |
|
---|
123 | <para condition="html" role="usernotes">
|
---|
124 | User Notes: <ulink url="&blfs-wiki;/webkitgtk"/>
|
---|
125 | </para>
|
---|
126 |
|
---|
127 | <!-- <caution>
|
---|
128 | <para>
|
---|
129 | The BLFS systemd development team is looking into archiving this
|
---|
130 | package due to ease of maintenance and incompatibility with GCC6.
|
---|
131 | </para>
|
---|
132 | </caution>-->
|
---|
133 |
|
---|
134 | </sect2>
|
---|
135 |
|
---|
136 | <sect2 role="installation">
|
---|
137 | <title>Installation of WebKitGTK+</title>
|
---|
138 |
|
---|
139 | <para>
|
---|
140 | If you have not installed <xref linkend="gtk-doc"/>, fix a bug that will
|
---|
141 | cause <command>make install</command> to fail:
|
---|
142 | </para>
|
---|
143 |
|
---|
144 | <screen><userinput>sed -i '/generate-gtkdoc --rebase/s:^:# :' GNUmakefile.in</userinput></screen>
|
---|
145 |
|
---|
146 | <para>
|
---|
147 | Fix a couple of compiler issues when built with GCC-6.1:
|
---|
148 | </para>
|
---|
149 |
|
---|
150 | <screen><userinput>patch -Np1 -i ../webkitgtk-&webkitgtk2-version;-gcc6-1.patch</userinput></screen>
|
---|
151 |
|
---|
152 | <note>
|
---|
153 | <para>
|
---|
154 | Unless noted otherwise, the packages depending on this package
|
---|
155 | expect it to be built against <application>GTK+ 3</application>.
|
---|
156 | </para>
|
---|
157 | </note>
|
---|
158 |
|
---|
159 | <para>
|
---|
160 | To build <application>WebKitGTK+</application> against
|
---|
161 | <application>GTK+ 3</application>, run the following
|
---|
162 | commands:
|
---|
163 | </para>
|
---|
164 |
|
---|
165 | <screen><userinput>mkdir build3 &&
|
---|
166 | pushd build3 &&
|
---|
167 | CFLAGS="-fno-delete-null-pointer-checks" \
|
---|
168 | CXXFLAGS="-fno-delete-null-pointer-checks" \
|
---|
169 | ../configure --prefix=/usr --enable-introspection &&
|
---|
170 | make &&
|
---|
171 | popd</userinput></screen>
|
---|
172 |
|
---|
173 | <para>
|
---|
174 | To build <application>WebKitGTK+</application> against
|
---|
175 | <application>GTK+ 2</application>, run the following
|
---|
176 | commands:
|
---|
177 | </para>
|
---|
178 |
|
---|
179 | <screen><userinput>mkdir build2 &&
|
---|
180 | pushd build2 &&
|
---|
181 | CFLAGS="-fno-delete-null-pointer-checks" \
|
---|
182 | CXXFLAGS="-fno-delete-null-pointer-checks" \
|
---|
183 | ../configure --prefix=/usr --with-gtk=2.0 --disable-webkit2 &&
|
---|
184 | make &&
|
---|
185 | popd</userinput></screen>
|
---|
186 |
|
---|
187 | <para>
|
---|
188 | This package does not have a working testsuite. However, there are two
|
---|
189 | useable basic graphical web browsers in the build directory,
|
---|
190 | <application>Programs/GtkLauncher</application> and
|
---|
191 | <application>Programs/MiniBrowser</application>. If launching any one
|
---|
192 | fails, there is a problem with the build.
|
---|
193 | </para>
|
---|
194 |
|
---|
195 | <para>
|
---|
196 | If you have built the package against <application>GTK+ 3</application>,
|
---|
197 | install it by running the following commands as the <systemitem
|
---|
198 | class="username">root</systemitem> user:
|
---|
199 | </para>
|
---|
200 |
|
---|
201 | <screen role="root"><userinput>make -C build3 install &&
|
---|
202 | rm -rf /usr/share/gtk-doc/html/webkit{,dom}gtk-3.0 &&
|
---|
203 | if [ -e /usr/share/gtk-doc/html/webkitdomgtk ]; then
|
---|
204 | mv -v /usr/share/gtk-doc/html/webkitdomgtk{,-3.0}
|
---|
205 | fi
|
---|
206 | if [ -e /usr/share/gtk-doc/html/webkitgtk ]; then
|
---|
207 | mv -v /usr/share/gtk-doc/html/webkitgtk{,-3.0}
|
---|
208 | fi</userinput></screen>
|
---|
209 |
|
---|
210 | <para>
|
---|
211 | If you have built the package against <application>GTK+ 2</application>,
|
---|
212 | install it by running the following commands as the <systemitem
|
---|
213 | class="username">root</systemitem> user:
|
---|
214 | </para>
|
---|
215 |
|
---|
216 | <screen role="root"><userinput>make -C build2 install &&
|
---|
217 | rm -rf /usr/share/gtk-doc/html/webkit{,dom}gtk-1.0 &&
|
---|
218 | if [ -e /usr/share/gtk-doc/html/webkitdomgtk ]; then
|
---|
219 | mv -v /usr/share/gtk-doc/html/webkitdomgtk{,-1.0}
|
---|
220 | fi
|
---|
221 | if [ -e /usr/share/gtk-doc/html/webkitgtk ]; then
|
---|
222 | mv -v /usr/share/gtk-doc/html/webkitgtk{,-1.0}
|
---|
223 | fi</userinput></screen>
|
---|
224 |
|
---|
225 | </sect2>
|
---|
226 |
|
---|
227 | <sect2 role="commands">
|
---|
228 | <title>Command Explanations</title>
|
---|
229 |
|
---|
230 | <para>
|
---|
231 | <parameter>--enable-introspection</parameter>: This switch enables
|
---|
232 | <application>Gobject Introspection</application> bindings and is
|
---|
233 | required if building <application>GNOME</application> Desktop.
|
---|
234 | Remove if you don't have <application>Gobject
|
---|
235 | Introspection</application> installed or you don't want to install
|
---|
236 | <application>GNOME</application>. It is not needed if building
|
---|
237 | against <application>GTK+ 2</application>, although it can be used
|
---|
238 | if desired.
|
---|
239 | </para>
|
---|
240 |
|
---|
241 | <para>
|
---|
242 | <parameter>--with-gtk=2.0 --disable-webkit2</parameter>: These switches
|
---|
243 | force <application>WebKitGTK+</application> to compile against
|
---|
244 | <application>GTK+ 2</application>, even if
|
---|
245 | <application>GTK+ 3</application> is also installed.
|
---|
246 | </para>
|
---|
247 |
|
---|
248 | <para>
|
---|
249 | <option>--disable-geolocation</option>: Use this switch if you don't
|
---|
250 | want to install <xref linkend="geoclue"/> or
|
---|
251 | <xref linkend="geoclue2"/>.
|
---|
252 | </para>
|
---|
253 |
|
---|
254 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
255 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
256 |
|
---|
257 | </sect2>
|
---|
258 |
|
---|
259 | <sect2 role="content">
|
---|
260 | <title>Contents</title>
|
---|
261 |
|
---|
262 | <segmentedlist>
|
---|
263 | <segtitle>Installed Programs</segtitle>
|
---|
264 | <segtitle>Installed Libraries</segtitle>
|
---|
265 | <segtitle>Installed Directories</segtitle>
|
---|
266 |
|
---|
267 | <seglistitem>
|
---|
268 | <seg>
|
---|
269 | jsc-3 <emphasis>or</emphasis> jsc-1
|
---|
270 | </seg>
|
---|
271 | <seg>
|
---|
272 | libjavascriptcoregtk-3.0.so,
|
---|
273 | libwebkit2gtk-3.0.so and
|
---|
274 | libwebkitgtk-3.0.so <emphasis>or</emphasis>
|
---|
275 | libjavascriptcoregtk-1.0.so and
|
---|
276 | libwebkitgtk-1.0.so
|
---|
277 | </seg>
|
---|
278 | <seg>
|
---|
279 | /usr/include/webkitgtk-3.0,
|
---|
280 | /usr/lib/webkit2gtk-3.0,
|
---|
281 | /usr/share/gtk-doc/html/webkitgtk-3.0,
|
---|
282 | /usr/share/gtk-doc/html/webkitdomgtk-3.0,
|
---|
283 | /usr/share/gtk-doc/html/webkit2gtk and
|
---|
284 | /usr/share/webkitgtk-3.0 <emphasis>or</emphasis>
|
---|
285 | /usr/include/webkit-1.0,
|
---|
286 | /usr/share/gtk-doc/html/webkitgtk-1.0,
|
---|
287 | /usr/share/gtk-doc/html/webkitdomgtk-1.0 and
|
---|
288 | /usr/share/webkit-1.0
|
---|
289 | </seg>
|
---|
290 | </seglistitem>
|
---|
291 | </segmentedlist>
|
---|
292 |
|
---|
293 | <variablelist>
|
---|
294 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
295 | <?dbfo list-presentation="list"?>
|
---|
296 | <?dbhtml list-presentation="table"?>
|
---|
297 |
|
---|
298 | <varlistentry id="jsc-3">
|
---|
299 | <term><command>jsc-3</command></term>
|
---|
300 | <listitem>
|
---|
301 | <para>
|
---|
302 | is a command-line utility that allows you to run JavaScript programs
|
---|
303 | outside of the context of a web browser linked against
|
---|
304 | <filename class="libraryfile">libjavascriptcoregtk-3.0.so</filename>.
|
---|
305 | </para>
|
---|
306 | <indexterm zone="webkitgtk2 jsc-3">
|
---|
307 | <primary sortas="b-jsc-3">jsc-3</primary>
|
---|
308 | </indexterm>
|
---|
309 | </listitem>
|
---|
310 | </varlistentry>
|
---|
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 linked against
|
---|
318 | <filename class="libraryfile">libjavascriptcoregtk-1.0.so</filename>.
|
---|
319 | </para>
|
---|
320 | <indexterm zone="webkitgtk2 jsc-1">
|
---|
321 | <primary sortas="b-jsc-1">jsc-1</primary>
|
---|
322 | </indexterm>
|
---|
323 | </listitem>
|
---|
324 | </varlistentry>
|
---|
325 |
|
---|
326 | <varlistentry id="libjavascriptcoregtk-3.0">
|
---|
327 | <term><filename
|
---|
328 | class="libraryfile">libjavascriptcoregtk-3.0.so</filename></term>
|
---|
329 | <listitem>
|
---|
330 | <para>
|
---|
331 | contains core JavaScript API functions used by <command>jsc-3</command>
|
---|
332 | and <filename class="libraryfile">libwebkitgtk-3.0.so</filename>.
|
---|
333 | </para>
|
---|
334 | <indexterm zone="webkitgtk2 libjavascriptcoregtk-3.0">
|
---|
335 | <primary sortas="c-libjavascriptcoregtk-3.0">libjavascriptcoregtk-3.0.so</primary>
|
---|
336 | </indexterm>
|
---|
337 | </listitem>
|
---|
338 | </varlistentry>
|
---|
339 |
|
---|
340 | <varlistentry id="libwebkitgtk-3.0">
|
---|
341 | <term><filename class="libraryfile">libwebkitgtk-3.0.so</filename></term>
|
---|
342 | <listitem>
|
---|
343 | <para>
|
---|
344 | contains the <application>WebKitGTK+</application> API functions for
|
---|
345 | <application>GTK+ 3</application>.
|
---|
346 | </para>
|
---|
347 | <indexterm zone="webkitgtk2 libwebkitgtk-3.0">
|
---|
348 | <primary sortas="c-libwebkitgtk-3.0">libwebkitgtk-3.0.so</primary>
|
---|
349 | </indexterm>
|
---|
350 | </listitem>
|
---|
351 | </varlistentry>
|
---|
352 |
|
---|
353 | <varlistentry id="libwebkit2gtk-3.0">
|
---|
354 | <term><filename class="libraryfile">libwebkit2gtk-3.0.so</filename></term>
|
---|
355 | <listitem>
|
---|
356 | <para>
|
---|
357 | contains the <application>WebKit2</application> API functions.
|
---|
358 | </para>
|
---|
359 | <indexterm zone="webkitgtk2 libwebkit2gtk-3.0">
|
---|
360 | <primary sortas="c-libwebkit2gtk-3.0">libwebkit2gtk-3.0.so</primary>
|
---|
361 | </indexterm>
|
---|
362 | </listitem>
|
---|
363 | </varlistentry>
|
---|
364 |
|
---|
365 | <varlistentry id="libjavascriptcoregtk-1.0">
|
---|
366 | <term><filename
|
---|
367 | class="libraryfile">libjavascriptcoregtk-1.0.so</filename></term>
|
---|
368 | <listitem>
|
---|
369 | <para>
|
---|
370 | contains core JavaScript API functions used by <command>jsc-1</command>
|
---|
371 | and <filename class="libraryfile">libwebkitgtk-1.0.so</filename>.
|
---|
372 | </para>
|
---|
373 | <indexterm zone="webkitgtk2 libjavascriptcoregtk-1.0">
|
---|
374 | <primary sortas="c-libjavascriptcoregtk-1.0">libjavascriptcoregtk-1.0.so</primary>
|
---|
375 | </indexterm>
|
---|
376 | </listitem>
|
---|
377 | </varlistentry>
|
---|
378 |
|
---|
379 | <varlistentry id="libwebkitgtk-1.0">
|
---|
380 | <term><filename class="libraryfile">libwebkitgtk-1.0.so</filename></term>
|
---|
381 | <listitem>
|
---|
382 | <para>
|
---|
383 | contains the <application>WebKitGTK+</application> API functions for
|
---|
384 | <application>GTK+ 2</application>.
|
---|
385 | </para>
|
---|
386 | <indexterm zone="webkitgtk2 libwebkitgtk-1.0">
|
---|
387 | <primary sortas="c-libwebkitgtk-1.0">libwebkitgtk-1.0.so</primary>
|
---|
388 | </indexterm>
|
---|
389 | </listitem>
|
---|
390 | </varlistentry>
|
---|
391 |
|
---|
392 | </variablelist>
|
---|
393 |
|
---|
394 | </sect2>
|
---|
395 |
|
---|
396 | </sect1>
|
---|