[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 |
|
---|
[264db1d] | 7 | <!-- This is the 2.8.x and later version of webkit -->
|
---|
[de4ed8e] | 8 | <!ENTITY webkitgtk-download-http "http://webkitgtk.org/releases/webkitgtk-&webkitgtk-version;.tar.xz">
|
---|
| 9 | <!ENTITY webkitgtk-download-ftp " ">
|
---|
[b6a8577d] | 10 | <!ENTITY webkitgtk-md5sum "2276087cd4b8b82bce2fad5e846cdc74">
|
---|
[560b86d] | 11 | <!ENTITY webkitgtk-size "14 MB">
|
---|
[252ae3a] | 12 | <!ENTITY webkitgtk-buildsize "1.1 GB (115 MB installed)">
|
---|
[b6a8577d] | 13 | <!ENTITY webkitgtk-time "34 SBU (using parallelism=4, approximately 108 SBUs using one core)">
|
---|
[1a024c3c] | 14 | ]>
|
---|
| 15 |
|
---|
[de4ed8e] | 16 | <sect1 id="webkitgtk" xreflabel="WebKitGTK+-&webkitgtk-version;">
|
---|
| 17 | <?dbhtml filename="webkitgtk.html"?>
|
---|
[1a024c3c] | 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
[de4ed8e] | 24 | <title>WebKitGTK+-&webkitgtk-version;</title>
|
---|
[1a024c3c] | 25 |
|
---|
[de4ed8e] | 26 | <indexterm zone="webkitgtk">
|
---|
[1a024c3c] | 27 | <primary sortas="a-WebKitGTK+">WebKitGTK+</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to WebKitGTK+</title>
|
---|
| 32 |
|
---|
| 33 | <para>
|
---|
[4026a19] | 34 | The <application>WebKitGTK+</application> package is a port of the
|
---|
| 35 | portable web rendering engine <application>WebKit</application> to the
|
---|
[1a024c3c] | 36 | <application>GTK+ 3</application> and <application>GTK+ 2</application>
|
---|
| 37 | platforms.
|
---|
| 38 | </para>
|
---|
| 39 |
|
---|
[e28509c] | 40 | &lfs80_checked;
|
---|
[1a024c3c] | 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
[de4ed8e] | 46 | Download (HTTP): <ulink url="&webkitgtk-download-http;"/>
|
---|
[1a024c3c] | 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
[de4ed8e] | 51 | Download (FTP): <ulink url="&webkitgtk-download-ftp;"/>
|
---|
[1a024c3c] | 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
[de4ed8e] | 56 | Download MD5 sum: &webkitgtk-md5sum;
|
---|
[1a024c3c] | 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
[de4ed8e] | 61 | Download size: &webkitgtk-size;
|
---|
[1a024c3c] | 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
[de4ed8e] | 66 | Estimated disk space required: &webkitgtk-buildsize;
|
---|
[1a024c3c] | 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>
|
---|
[de4ed8e] | 71 | Estimated build time: &webkitgtk-time;
|
---|
[1a024c3c] | 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">
|
---|
[4026a19] | 80 | <xref linkend="cairo"/>,
|
---|
[1a024c3c] | 81 | <xref linkend="cmake"/>,
|
---|
[9dfdf8b7] | 82 | <xref linkend="enchant"/>,
|
---|
[1a024c3c] | 83 | <xref linkend="gst10-plugins-base"/>,
|
---|
| 84 | <xref linkend="gtk2"/>,
|
---|
| 85 | <xref linkend="gtk3"/>,
|
---|
| 86 | <xref linkend="icu"/>,
|
---|
[f175d6f6] | 87 | <xref linkend="libgudev"/>,
|
---|
[1a024c3c] | 88 | <xref linkend="libsecret"/>,
|
---|
| 89 | <xref linkend="libsoup"/>,
|
---|
| 90 | <xref linkend="libwebp"/>,
|
---|
[7a395d1] | 91 | <xref linkend="mesa"/>,
|
---|
[1a024c3c] | 92 | <xref linkend="ruby"/>,
|
---|
[f175d6f6] | 93 | <xref linkend="sqlite"/> and
|
---|
[1a024c3c] | 94 | <xref linkend="which"/>
|
---|
| 95 | </para>
|
---|
| 96 |
|
---|
| 97 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[fddab91] | 98 | <para role="recommended">
|
---|
[560b86d] | 99 | <xref linkend="geoclue2"/>,
|
---|
[1a024c3c] | 100 | <xref linkend="gobject-introspection"/>,
|
---|
| 101 | <xref linkend="hicolor-icon-theme"/>
|
---|
[b6a8577d] | 102 | <xref linkend="libnotify"/>
|
---|
[4026a19] | 103 | </para>
|
---|
[1a024c3c] | 104 |
|
---|
| 105 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[fddab91] | 106 | <para role="optional">
|
---|
[1a024c3c] | 107 | <xref linkend="gtk-doc"/>,
|
---|
| 108 | <xref linkend="harfbuzz"/>,
|
---|
| 109 | <xref linkend="llvm"/>,
|
---|
[4026a19] | 110 | <xref linkend="wayland"/>,
|
---|
[560b86d] | 111 | <ulink url="http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>, and
|
---|
[1a024c3c] | 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 |
|
---|
[560b86d] | 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 |
|
---|
[2acb826] | 134 | <para>
|
---|
| 135 | First, fix a build issue with <application>ICU</application> >= 59:
|
---|
| 136 | </para>
|
---|
| 137 |
|
---|
[298fc093] | 138 | <screen><userinput>sed -i 's/unsigned short/char16_t/' \
|
---|
[2acb826] | 139 | Source/JavaScriptCore/API/JSStringRef.h \
|
---|
[298fc093] | 140 | Source/WebKit2/Shared/API/c/WKString.h &&
|
---|
| 141 |
|
---|
[d537949] | 142 | sed -i '/stdbool.h/ a#include <uchar.h>' \
|
---|
| 143 | Source/JavaScriptCore/API/JSBase.h</userinput></screen>
|
---|
[2acb826] | 144 |
|
---|
[1a024c3c] | 145 | <para>
|
---|
| 146 | Install <application>WebKitGTK+</application> by running the
|
---|
| 147 | following commands:
|
---|
| 148 | </para>
|
---|
[6fe4f013] | 149 |
|
---|
[0e107e3] | 150 | <screen><userinput>mkdir -vp build &&
|
---|
[24dfdcd] | 151 | cd build &&
|
---|
[1a024c3c] | 152 |
|
---|
[b6a8577d] | 153 | CFLAGS=-Wno-expansion-to-defined \
|
---|
| 154 | CXXFLAGS=-Wno-expansion-to-defined \
|
---|
[42b7dab] | 155 | cmake -DCMAKE_BUILD_TYPE=Release \
|
---|
| 156 | -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 157 | -DCMAKE_SKIP_RPATH=ON \
|
---|
| 158 | -DPORT=GTK \
|
---|
| 159 | -DLIB_INSTALL_DIR=/usr/lib \
|
---|
[a78d8510] | 160 | -DUSE_LIBHYPHEN=OFF \
|
---|
[7c4f32b] | 161 | -DENABLE_MINIBROWSER=ON \
|
---|
[42b7dab] | 162 | -Wno-dev .. &&
|
---|
[1a024c3c] | 163 | make</userinput></screen>
|
---|
| 164 |
|
---|
| 165 | <para>
|
---|
[7c4f32b] | 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.
|
---|
[1a024c3c] | 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 &&
|
---|
| 185 |
|
---|
[2c95b08] | 186 | install -vdm755 /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0 &&
|
---|
[24dfdcd] | 187 | install -vm644 ../Documentation/webkit2gtk-4.0/html/* \
|
---|
| 188 | /usr/share/gtk-doc/html/webkit2gtk-4.0 &&
|
---|
[de4ed8e] | 189 | install -vm644 ../Documentation/webkitdomgtk-4.0/html/* \
|
---|
[1a024c3c] | 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 |
|
---|
[a78d8510] | 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 |
|
---|
[7c4f32b] | 206 | <para>
|
---|
| 207 | <parameter>-DENABLE_MINIBROWSER=ON</parameter>: This switch enables the
|
---|
| 208 | <application>Mini Browser</application> compilation and install.
|
---|
| 209 | </para>
|
---|
| 210 |
|
---|
[b6a8577d] | 211 | <para>
|
---|
| 212 | <option>-DUSE_LIBNOTIFY=OFF</option>: Use this switch if you do not
|
---|
| 213 | have <application>libnotify</application> installed.
|
---|
| 214 | </para>
|
---|
| 215 |
|
---|
[1a024c3c] | 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
|
---|
[560b86d] | 223 | want to install <xref linkend="geoclue2"/>.
|
---|
[1a024c3c] | 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>
|
---|
[7c4f32b] | 244 | jsc and MiniBrowser
|
---|
[1a024c3c] | 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,
|
---|
[f0d9ee6] | 252 | /usr/lib{,exec}/webkit2gtk-4.0 and
|
---|
[24dfdcd] | 253 | /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0
|
---|
[1a024c3c] | 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>
|
---|
[de4ed8e] | 270 | <indexterm zone="webkitgtk jsc">
|
---|
[1a024c3c] | 271 | <primary sortas="b-jsc">jsc</primary>
|
---|
| 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
[7c4f32b] | 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 |
|
---|
[1a024c3c] | 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>
|
---|
[de4ed8e] | 297 | <indexterm zone="webkitgtk libjavascriptcoregtk-4.0">
|
---|
[1a024c3c] | 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>
|
---|
[de4ed8e] | 309 | <indexterm zone="webkitgtk libwebkit2gtk-4">
|
---|
[1a024c3c] | 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>
|
---|