[099ebaf] | 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 |
|
---|
[45ada554] | 7 | <!ENTITY webkitgtk-download-http "http://webkitgtk.org/releases/webkit-&webkitgtk-version;.tar.xz">
|
---|
[099ebaf] | 8 | <!ENTITY webkitgtk-download-ftp " ">
|
---|
[45ada554] | 9 | <!ENTITY webkitgtk-md5sum "f7bd0bd4f323039f15e19c82a9a8313c">
|
---|
| 10 | <!ENTITY webkitgtk-size "7.7 MB">
|
---|
| 11 | <!ENTITY webkitgtk-buildsize "700 MB">
|
---|
| 12 | <!ENTITY webkitgtk-time "30 SBU">
|
---|
[099ebaf] | 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 |
|
---|
[4f1a8e5] | 32 | <para>
|
---|
| 33 | The <application>WebKitGTK+</application> package is the port of the
|
---|
| 34 | portable web rendering engine <application>WebKit</application> to the
|
---|
| 35 | <application>GTK+</application> platform.
|
---|
| 36 | </para>
|
---|
[099ebaf] | 37 |
|
---|
[8057fc4] | 38 | &lfs72_checked;
|
---|
[18d8af99] | 39 |
|
---|
[099ebaf] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[4f1a8e5] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&webkitgtk-download-http;"/>
|
---|
| 45 | </para>
|
---|
[099ebaf] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[4f1a8e5] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&webkitgtk-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[099ebaf] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[4f1a8e5] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &webkitgtk-md5sum;
|
---|
| 55 | </para>
|
---|
[099ebaf] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[4f1a8e5] | 58 | <para>
|
---|
| 59 | Download size: &webkitgtk-size;
|
---|
| 60 | </para>
|
---|
[099ebaf] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[4f1a8e5] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &webkitgtk-buildsize;
|
---|
| 65 | </para>
|
---|
[099ebaf] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[4f1a8e5] | 68 | <para>
|
---|
| 69 | Estimated build time: &webkitgtk-time;
|
---|
| 70 | </para>
|
---|
[099ebaf] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
| 73 |
|
---|
[45ada554] | 74 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 75 | <itemizedlist spacing="compact">
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>
|
---|
| 78 | Required patch:
|
---|
[2895b89d] | 79 | <ulink url="&patch-root;/webkit-&webkitgtk-version;-bison-1.patch"/>
|
---|
[45ada554] | 80 | </para>
|
---|
| 81 | </listitem>
|
---|
| 82 | </itemizedlist>
|
---|
| 83 |
|
---|
[099ebaf] | 84 | <bridgehead renderas="sect3">WebKitGTK+ Dependencies</bridgehead>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[4f1a8e5] | 87 | <para role="required">
|
---|
[45ada554] | 88 | <xref linkend="geoclue"/>,
|
---|
[4f1a8e5] | 89 | <xref linkend="gperf"/>,
|
---|
[45ada554] | 90 | <xref linkend="gst-plugins-base"/>,
|
---|
| 91 | <xref linkend="gtk3"/> or <xref linkend="gtk2"/>,
|
---|
[4f1a8e5] | 92 | <xref linkend="icu"/>,
|
---|
| 93 | <xref linkend="libxslt"/>,
|
---|
| 94 | <xref linkend="libsoup"/>,
|
---|
[45ada554] | 95 | <xref linkend="sqlite"/> and
|
---|
| 96 | <xref linkend="which"/>
|
---|
[4f1a8e5] | 97 | </para>
|
---|
[57aae596] | 98 |
|
---|
[45ada554] | 99 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 100 | <para role="recommended">
|
---|
[4c2be438] | 101 | <xref linkend="gobject-introspection"/>
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
[099ebaf] | 104 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[4f1a8e5] | 105 | <para role="optional">
|
---|
| 106 | <xref linkend="curl"/>,
|
---|
| 107 | <xref linkend="enchant"/>,
|
---|
| 108 | <xref linkend="gtk-doc"/> and
|
---|
[a2912ff] | 109 | <ulink url="http://xsltml.sourceforge.net/">MathML</ulink>
|
---|
[4f1a8e5] | 110 | </para>
|
---|
| 111 |
|
---|
| 112 | <para condition="html" role="usernotes">
|
---|
| 113 | User Notes: <ulink url="&blfs-wiki;/webkitgtk"/>
|
---|
| 114 | </para>
|
---|
[099ebaf] | 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 | <sect2 role="installation">
|
---|
| 118 | <title>Installation of WebKitGTK+</title>
|
---|
| 119 |
|
---|
[eedd7058] | 120 | <para>
|
---|
[826ddf4] | 121 | If you have <application>pkg-config 0.23</application> or older installed
|
---|
[eedd7058] | 122 | fix a bug in the configure script that will stop it detecting
|
---|
| 123 | <application>Gstreamer</application> correctly:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
| 126 | <screen><userinput>sed -i 's#=GST#=$GST#' configure</userinput></screen>
|
---|
| 127 |
|
---|
| 128 | <para>
|
---|
| 129 | If you have not installed <xref linkend="gtk-doc"/>, fix a bug that will
|
---|
| 130 | cause <command>make install</command> to fail:
|
---|
| 131 | </para>
|
---|
| 132 |
|
---|
| 133 | <screen><userinput>sed -i '/generate-gtkdoc --rebase/s:^:# :' GNUmakefile.in</userinput></screen>
|
---|
| 134 |
|
---|
[4f1a8e5] | 135 | <para>
|
---|
[45ada554] | 136 | <application>WebKitGTK+</application> takes a long time to compile, so if you
|
---|
[4ac4aea] | 137 | have a multicore CPU it can be useful to speed up the build by running
|
---|
| 138 | make with multiple jobs.
|
---|
[4f1a8e5] | 139 | </para>
|
---|
[39ed0a6e] | 140 |
|
---|
[4f1a8e5] | 141 | <para>
|
---|
[50f6ac1] | 142 | If you want to run make with just one core, install
|
---|
[45ada554] | 143 | <application>WebKitGTK+</application> by running the following commands:
|
---|
[4f1a8e5] | 144 | </para>
|
---|
[099ebaf] | 145 |
|
---|
[45ada554] | 146 | <screen><userinput>patch -Np1 -i ../webkitgtk-&webkitgtk-version;-bison-1.patch &&
|
---|
| 147 | ./configure --prefix=/usr \
|
---|
| 148 | --libexecdir=/usr/lib/WebKit \
|
---|
| 149 | --enable-introspection &&
|
---|
[099ebaf] | 150 | make</userinput></screen>
|
---|
| 151 |
|
---|
[4ac4aea] | 152 | <para>
|
---|
[50f6ac1] | 153 | If you have a multicore CPU and want to run make with multiple jobs
|
---|
[45ada554] | 154 | running in parallel, install <application>WebKitGTK+</application> with the
|
---|
[50f6ac1] | 155 | following commands:
|
---|
[4ac4aea] | 156 | </para>
|
---|
| 157 |
|
---|
[45ada554] | 158 | <screen><userinput>patch -Np1 -i ../webkitgtk-&webkitgtk-version;-bison-1.patch &&
|
---|
| 159 | ./configure --prefix=/usr \
|
---|
| 160 | --libexecdir=/usr/lib/WebKit \
|
---|
| 161 | --enable-introspection &&
|
---|
[50f6ac1] | 162 | error_count=0
|
---|
[4ac4aea] | 163 | until make -j$(getconf _NPROCESSORS_ONLN)
|
---|
[50f6ac1] | 164 | do
|
---|
| 165 | if (( $((error_count++)) > 4 ))
|
---|
| 166 | then
|
---|
| 167 | echo Too Many Errors
|
---|
| 168 | break
|
---|
| 169 | fi
|
---|
| 170 | done
|
---|
| 171 | unset error_count</userinput></screen>
|
---|
[4ac4aea] | 172 |
|
---|
| 173 | <para>
|
---|
| 174 | This package does not have a working testsuite.
|
---|
| 175 | </para>
|
---|
[099ebaf] | 176 |
|
---|
[4f1a8e5] | 177 | <para>
|
---|
| 178 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 179 | </para>
|
---|
[099ebaf] | 180 |
|
---|
| 181 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 182 | </sect2>
|
---|
| 183 |
|
---|
| 184 | <sect2 role="commands">
|
---|
| 185 | <title>Command Explanations</title>
|
---|
| 186 |
|
---|
[4ac4aea] | 187 | <para>
|
---|
| 188 | <option>--enable-introspection</option>: This option enables support for
|
---|
[45ada554] | 189 | <application>GObject Introspection</application> and is required for a
|
---|
[a2912ff] | 190 | <application>GNOME</application> Desktop. If you don't have
|
---|
| 191 | <application>Gobject Introspection</application> installed and don't want
|
---|
[50f6ac1] | 192 | to install <application>GNOME</application> remove this option.
|
---|
[4ac4aea] | 193 | </para>
|
---|
| 194 |
|
---|
| 195 | <para>
|
---|
[50f6ac1] | 196 | <command>error_count=0; until make ...</command>: Sadly
|
---|
[4ac4aea] | 197 | there are race conditions in the makefiles that will cause the build to
|
---|
| 198 | fail if you run make with multiple jobs. This simple hack works around
|
---|
[50f6ac1] | 199 | that problem by using <command>until</command> to keep running
|
---|
| 200 | <command>make</command> until it succeeds. The variable
|
---|
| 201 | <envar>error_count</envar> is incremented each time an error occurs and is
|
---|
| 202 | checked to ensure that no more than 5 errors occur. This is so that if an
|
---|
| 203 | error occurs that is <emphasis>not</emphasis> due to a race condition then
|
---|
| 204 | it will not keep repeating <command>make</command> forever.
|
---|
| 205 | <command>$(getconf _NPROCESSORS_ONLN)</command> prints the number of cores
|
---|
| 206 | your computer seems to have. If you would prefer, you can use any positive
|
---|
| 207 | integer such as 4.
|
---|
[4ac4aea] | 208 | </para>
|
---|
| 209 |
|
---|
[4f1a8e5] | 210 | <para>
|
---|
[45ada554] | 211 | <option>--enable-webkit2</option>: This switch enables building of
|
---|
| 212 | <application>WebKit2</application> libraries which some applications
|
---|
| 213 | like <application>DevHelp</application> can use and which will probably
|
---|
| 214 | be used in future releases of <application>GNOME</application> Desktop.
|
---|
| 215 | </para>
|
---|
| 216 |
|
---|
| 217 | <para>
|
---|
| 218 | <parameter>--with-gtk=2.0</parameter>: This option forces
|
---|
| 219 | <application>WebKitGTK+</application> to compile against
|
---|
[a2912ff] | 220 | <application>GTK+ 2</application>, even if
|
---|
| 221 | <application>GTK+ 3</application> is also installed. With
|
---|
| 222 | <application>GTK+ 2</application>, everything
|
---|
[45ada554] | 223 | <application>WebKitGTK+</application> installs is suffixed with 1.0. When it
|
---|
[a2912ff] | 224 | is compiled against <application>GTK+ 3</application> everything it
|
---|
[4f1a8e5] | 225 | installs is suffixed with 3.0. Both versions can be installed alongside
|
---|
| 226 | one another with no namespace conflicts.
|
---|
| 227 | </para>
|
---|
| 228 |
|
---|
[e05cd03f] | 229 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[45ada554] | 230 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
| 231 |
|
---|
[099ebaf] | 232 | </sect2>
|
---|
| 233 |
|
---|
| 234 | <sect2 role="content">
|
---|
| 235 | <title>Contents</title>
|
---|
| 236 |
|
---|
| 237 | <segmentedlist>
|
---|
| 238 | <segtitle>Installed Program</segtitle>
|
---|
| 239 | <segtitle>Installed Library</segtitle>
|
---|
| 240 | <segtitle>Installed Directories</segtitle>
|
---|
| 241 |
|
---|
| 242 | <seglistitem>
|
---|
[4f1a8e5] | 243 | <seg>
|
---|
[45ada554] | 244 | jsc-1 or jsc-3
|
---|
[4f1a8e5] | 245 | </seg>
|
---|
| 246 | <seg>
|
---|
[45ada554] | 247 | libjavascriptcoregtk-1.0.so and libwebkit-1.0.so or
|
---|
| 248 | libjavascriptcoregtk-3.0.so and libwebkit-3.0.so and
|
---|
| 249 | optionaly libwebkit2gtk-3.0.so
|
---|
[4f1a8e5] | 250 | </seg>
|
---|
| 251 | <seg>
|
---|
| 252 | /usr/include/webkit-1.0 and /usr/share/webkit-1.0 or
|
---|
[45ada554] | 253 | /usr/include/webkit-3.0 and /usr/share/webkit-3.0 and
|
---|
| 254 | optionaly /usr/lib/WebKit
|
---|
[4f1a8e5] | 255 | </seg>
|
---|
[099ebaf] | 256 | </seglistitem>
|
---|
| 257 | </segmentedlist>
|
---|
| 258 |
|
---|
| 259 | <variablelist>
|
---|
| 260 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 261 | <?dbfo list-presentation="list"?>
|
---|
| 262 | <?dbhtml list-presentation="table"?>
|
---|
| 263 |
|
---|
| 264 | <varlistentry id="jsc">
|
---|
[d57804d] | 265 | <term><command>jsc-1</command> or <command>jsc-3</command></term>
|
---|
[099ebaf] | 266 | <listitem>
|
---|
[4f1a8e5] | 267 | <para>
|
---|
| 268 | is a command-line utility that allows you to run JavaScript programs
|
---|
| 269 | outside of the context of a web browser.
|
---|
| 270 | </para>
|
---|
[099ebaf] | 271 | <indexterm zone="webkitgtk jsc">
|
---|
| 272 | <primary sortas="b-jsc">jsc</primary>
|
---|
| 273 | </indexterm>
|
---|
| 274 | </listitem>
|
---|
| 275 | </varlistentry>
|
---|
| 276 |
|
---|
[45ada554] | 277 | <varlistentry id="libjavascriptcoregtk-1.0">
|
---|
| 278 | <term><filename
|
---|
| 279 | class="libraryfile">libjavascriptcoregtk-1.0.so</filename></term>
|
---|
[099ebaf] | 280 | <listitem>
|
---|
[4f1a8e5] | 281 | <para>
|
---|
[45ada554] | 282 | contains core JavaScript API functions used by <command>jsc-1</command>
|
---|
| 283 | and <filename class="libraryfile">libwebkitgtk-1.0.so</filename>.
|
---|
[4f1a8e5] | 284 | </para>
|
---|
[45ada554] | 285 | <indexterm zone="webkitgtk libjavascriptcoregtk-1.0">
|
---|
| 286 | <primary sortas="c-libjavascriptcoregtk-1.0">libjavascriptcoregtk-1.0.so</primary>
|
---|
[099ebaf] | 287 | </indexterm>
|
---|
| 288 | </listitem>
|
---|
| 289 | </varlistentry>
|
---|
| 290 |
|
---|
[45ada554] | 291 | <varlistentry id="libwebkitgtk-1.0">
|
---|
| 292 | <term><filename class="libraryfile">libwebkitgtk-1.0.so</filename></term>
|
---|
[d57804d] | 293 | <listitem>
|
---|
[4f1a8e5] | 294 | <para>
|
---|
[45ada554] | 295 | contains the <application>WebKitGTK+</application> API functions for
|
---|
| 296 | <application>GTK+ 2</application>.
|
---|
[4f1a8e5] | 297 | </para>
|
---|
[45ada554] | 298 | <indexterm zone="webkitgtk libwebkitgtk-1.0">
|
---|
| 299 | <primary sortas="c-libwebkitgtk-1.0">libwebkitgtk-1.0.so</primary>
|
---|
[d57804d] | 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
| 303 |
|
---|
[45ada554] | 304 | <varlistentry id="libjavascriptcoregtk-3.0">
|
---|
[d57804d] | 305 | <term><filename
|
---|
[45ada554] | 306 | class="libraryfile">libjavascriptcoregtk-3.0.so</filename></term>
|
---|
[d57804d] | 307 | <listitem>
|
---|
[4f1a8e5] | 308 | <para>
|
---|
[45ada554] | 309 | contains core JavaScript API functions used by <command>jsc-3</command>
|
---|
| 310 | and <filename class="libraryfile">libwebkitgtk-3.0.so</filename>.
|
---|
[4f1a8e5] | 311 | </para>
|
---|
[45ada554] | 312 | <indexterm zone="webkitgtk libjavascriptcoregtk-3.0">
|
---|
| 313 | <primary sortas="c-libjavascriptcoregtk-3.0">libjavascriptcoregtk-3.0.so</primary>
|
---|
[d57804d] | 314 | </indexterm>
|
---|
| 315 | </listitem>
|
---|
| 316 | </varlistentry>
|
---|
| 317 |
|
---|
[45ada554] | 318 | <varlistentry id="libwebkitgtk-3.0">
|
---|
| 319 | <term><filename class="libraryfile">libwebkitgtk-3.0.so</filename></term>
|
---|
[d57804d] | 320 | <listitem>
|
---|
[4f1a8e5] | 321 | <para>
|
---|
[45ada554] | 322 | contains the <application>WebKitGTK+</application> API functions for
|
---|
| 323 | <application>GTK+ 3</application>.
|
---|
[4f1a8e5] | 324 | </para>
|
---|
[45ada554] | 325 | <indexterm zone="webkitgtk libwebkitgtk-3.0">
|
---|
| 326 | <primary sortas="c-libwebkitgtk-3.0">libwebkitgtk-3.0.so</primary>
|
---|
| 327 | </indexterm>
|
---|
| 328 | </listitem>
|
---|
| 329 | </varlistentry>
|
---|
| 330 |
|
---|
| 331 | <varlistentry id="libwebkit2gtk-3.0">
|
---|
| 332 | <term><filename class="libraryfile">libwebkit2gtk-3.0.so</filename></term>
|
---|
| 333 | <listitem>
|
---|
| 334 | <para>
|
---|
| 335 | contains the <application>WebKit2</application> API functions.
|
---|
| 336 | </para>
|
---|
| 337 | <indexterm zone="webkitgtk libwebkit2gtk-3.0">
|
---|
| 338 | <primary sortas="c-libwebkit2gtk-3.0">libwebkit2gtk-3.0.so</primary>
|
---|
[d57804d] | 339 | </indexterm>
|
---|
| 340 | </listitem>
|
---|
| 341 | </varlistentry>
|
---|
[a2912ff] | 342 |
|
---|
[099ebaf] | 343 | </variablelist>
|
---|
[a2912ff] | 344 |
|
---|
[099ebaf] | 345 | </sect2>
|
---|
[a2912ff] | 346 |
|
---|
[099ebaf] | 347 | </sect1>
|
---|