[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 |
|
---|
[8dfc5c3] | 7 | <!ENTITY webkitgtk-download-http "https://webkitgtk.org/releases/webkitgtk-&webkitgtk-version;.tar.xz">
|
---|
[de4ed8e] | 8 | <!ENTITY webkitgtk-download-ftp " ">
|
---|
[bc13e000] | 9 | <!ENTITY webkitgtk-md5sum "264a22d7467deae606e42b6eb5dd65af">
|
---|
[016e770] | 10 | <!ENTITY webkitgtk-size "15 MB">
|
---|
| 11 | <!ENTITY webkitgtk-buildsize "1.2 GB (133 MB installed)">
|
---|
[bc13e000] | 12 | <!ENTITY webkitgtk-time "41 SBU (using parallelism=4, about 133 SBUs using one core)">
|
---|
[1a024c3c] | 13 | ]>
|
---|
| 14 |
|
---|
[de4ed8e] | 15 | <sect1 id="webkitgtk" xreflabel="WebKitGTK+-&webkitgtk-version;">
|
---|
| 16 | <?dbhtml filename="webkitgtk.html"?>
|
---|
[1a024c3c] | 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
[de4ed8e] | 23 | <title>WebKitGTK+-&webkitgtk-version;</title>
|
---|
[1a024c3c] | 24 |
|
---|
[de4ed8e] | 25 | <indexterm zone="webkitgtk">
|
---|
[1a024c3c] | 26 | <primary sortas="a-WebKitGTK+">WebKitGTK+</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to WebKitGTK+</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
[4026a19] | 33 | The <application>WebKitGTK+</application> package is a port of the
|
---|
| 34 | portable web rendering engine <application>WebKit</application> to the
|
---|
[1a024c3c] | 35 | <application>GTK+ 3</application> and <application>GTK+ 2</application>
|
---|
| 36 | platforms.
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
[12cb0eae] | 39 | &lfs81_checked;
|
---|
[1a024c3c] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
[de4ed8e] | 45 | Download (HTTP): <ulink url="&webkitgtk-download-http;"/>
|
---|
[1a024c3c] | 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
[de4ed8e] | 50 | Download (FTP): <ulink url="&webkitgtk-download-ftp;"/>
|
---|
[1a024c3c] | 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
[de4ed8e] | 55 | Download MD5 sum: &webkitgtk-md5sum;
|
---|
[1a024c3c] | 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
[de4ed8e] | 60 | Download size: &webkitgtk-size;
|
---|
[1a024c3c] | 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
[de4ed8e] | 65 | Estimated disk space required: &webkitgtk-buildsize;
|
---|
[1a024c3c] | 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
[de4ed8e] | 70 | Estimated build time: &webkitgtk-time;
|
---|
[1a024c3c] | 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">
|
---|
[4026a19] | 79 | <xref linkend="cairo"/>,
|
---|
[1a024c3c] | 80 | <xref linkend="cmake"/>,
|
---|
[9dfdf8b7] | 81 | <xref linkend="enchant"/>,
|
---|
[1a024c3c] | 82 | <xref linkend="gst10-plugins-base"/>,
|
---|
[ad930e67] | 83 | <xref linkend="gst10-plugins-bad"/>,
|
---|
[1a024c3c] | 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 |
|
---|
[b7a300f7] | 126 | <!-- Remove for 8.2 (or 9.0) release -->
|
---|
[560b86d] | 127 | <caution>
|
---|
| 128 | <para>
|
---|
| 129 | You must rebuild <application>Perl</application> with -Dusethreads
|
---|
| 130 | if LFS was built without that option. LFS made this change in
|
---|
| 131 | April 2017.
|
---|
| 132 | </para>
|
---|
| 133 | </caution>
|
---|
| 134 |
|
---|
[016e770] | 135 | <!-- <para>
|
---|
[4d185c9e] | 136 | First, fix a build issue with an invalid header path.
|
---|
[2acb826] | 137 | </para>
|
---|
| 138 |
|
---|
[4d185c9e] | 139 | <screen><userinput>sed -i '/Activity.h/s:WebCore/:&platform/:' Source/WebCore/platform/graphics/cairo/BackingStoreBackendCairoImpl.h</userinput></screen>
|
---|
[016e770] | 140 | -->
|
---|
[1a024c3c] | 141 | <para>
|
---|
| 142 | Install <application>WebKitGTK+</application> by running the
|
---|
| 143 | following commands:
|
---|
| 144 | </para>
|
---|
[6fe4f013] | 145 |
|
---|
[016e770] | 146 | <screen><userinput>mkdir -vp build &&
|
---|
[24dfdcd] | 147 | cd build &&
|
---|
[1a024c3c] | 148 |
|
---|
[b6a8577d] | 149 | CFLAGS=-Wno-expansion-to-defined \
|
---|
| 150 | CXXFLAGS=-Wno-expansion-to-defined \
|
---|
[42b7dab] | 151 | cmake -DCMAKE_BUILD_TYPE=Release \
|
---|
| 152 | -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 153 | -DCMAKE_SKIP_RPATH=ON \
|
---|
| 154 | -DPORT=GTK \
|
---|
| 155 | -DLIB_INSTALL_DIR=/usr/lib \
|
---|
[a78d8510] | 156 | -DUSE_LIBHYPHEN=OFF \
|
---|
[7c4f32b] | 157 | -DENABLE_MINIBROWSER=ON \
|
---|
[42b7dab] | 158 | -Wno-dev .. &&
|
---|
[1a024c3c] | 159 | make</userinput></screen>
|
---|
| 160 |
|
---|
| 161 | <para>
|
---|
[7c4f32b] | 162 | This package does not have a working testsuite. However, there is a
|
---|
| 163 | useable basic graphical web browser in the build directory,
|
---|
| 164 | <application>build/bin/MiniBrowser</application>. If launching it fails,
|
---|
| 165 | there is a problem with the build.
|
---|
[1a024c3c] | 166 | </para>
|
---|
| 167 |
|
---|
| 168 | <note><para>
|
---|
| 169 | When installing, the Makefile does some additional compiling and linking.
|
---|
| 170 | If you do not have Xorg in /usr, the LIBRARY_PATH and PKG_CONFIG_PATH
|
---|
| 171 | variables need to be defined for the root user. If using sudo to assume
|
---|
| 172 | root, use the -E option to pass your current environment variables for the
|
---|
| 173 | install process.
|
---|
| 174 | </para></note>
|
---|
| 175 |
|
---|
| 176 | <para>
|
---|
| 177 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 178 | </para>
|
---|
| 179 |
|
---|
| 180 | <screen role="root"><userinput>make install &&
|
---|
| 181 |
|
---|
[2c95b08] | 182 | install -vdm755 /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0 &&
|
---|
[24dfdcd] | 183 | install -vm644 ../Documentation/webkit2gtk-4.0/html/* \
|
---|
| 184 | /usr/share/gtk-doc/html/webkit2gtk-4.0 &&
|
---|
[de4ed8e] | 185 | install -vm644 ../Documentation/webkitdomgtk-4.0/html/* \
|
---|
[1a024c3c] | 186 | /usr/share/gtk-doc/html/webkitdomgtk-4.0</userinput></screen>
|
---|
| 187 |
|
---|
| 188 | </sect2>
|
---|
| 189 |
|
---|
| 190 | <sect2 role="commands">
|
---|
| 191 | <title>Command Explanations</title>
|
---|
| 192 |
|
---|
[016e770] | 193 | <!-- <para>
|
---|
[fabeff7] | 194 | <command>sed ... TextCheckerEnchant.cpp</command>: This command
|
---|
[af451f4] | 195 | is needed to allow the build to complete with enchant-2.x.
|
---|
[016e770] | 196 | </para> -->
|
---|
[fabeff7] | 197 |
|
---|
[a78d8510] | 198 | <para>
|
---|
| 199 | <parameter>-DUSE_LIBHYPHEN=OFF</parameter>: This switch disables
|
---|
| 200 | default automatic hyphenation implementation. You need to install
|
---|
| 201 | <ulink
|
---|
| 202 | url="http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>,
|
---|
| 203 | if you wish to enable it (replacing OFF with ON or just removing
|
---|
| 204 | the switch).
|
---|
| 205 | </para>
|
---|
| 206 |
|
---|
[7c4f32b] | 207 | <para>
|
---|
| 208 | <parameter>-DENABLE_MINIBROWSER=ON</parameter>: This switch enables the
|
---|
| 209 | <application>Mini Browser</application> compilation and install.
|
---|
| 210 | </para>
|
---|
| 211 |
|
---|
[b6a8577d] | 212 | <para>
|
---|
| 213 | <option>-DUSE_LIBNOTIFY=OFF</option>: Use this switch if you do not
|
---|
| 214 | have <application>libnotify</application> installed.
|
---|
| 215 | </para>
|
---|
| 216 |
|
---|
[1a024c3c] | 217 | <para>
|
---|
| 218 | <option>-DUSE_SYSTEM_MALLOC=ON</option>: This switch enables building
|
---|
| 219 | against the system installed <application>malloc</application>.
|
---|
| 220 | </para>
|
---|
| 221 |
|
---|
| 222 | <para>
|
---|
| 223 | <option>-DENABLE_GEOLOCATION=OFF</option>: Use this switch if you don't
|
---|
[560b86d] | 224 | want to install <xref linkend="geoclue2"/>.
|
---|
[1a024c3c] | 225 | </para>
|
---|
| 226 |
|
---|
| 227 | <para>
|
---|
| 228 | <option>-DENABLE_GTKDOC=ON</option>: Use this switch if <xref
|
---|
| 229 | linkend="gtk-doc"/> is installed and you wish to rebuild and install the
|
---|
| 230 | API documentation.
|
---|
| 231 | </para>
|
---|
| 232 |
|
---|
| 233 | </sect2>
|
---|
| 234 |
|
---|
| 235 | <sect2 role="content">
|
---|
| 236 | <title>Contents</title>
|
---|
| 237 |
|
---|
| 238 | <segmentedlist>
|
---|
| 239 | <segtitle>Installed Program</segtitle>
|
---|
| 240 | <segtitle>Installed Libraries</segtitle>
|
---|
| 241 | <segtitle>Installed Directories</segtitle>
|
---|
| 242 |
|
---|
| 243 | <seglistitem>
|
---|
| 244 | <seg>
|
---|
[4d185c9e] | 245 | jsc,
|
---|
| 246 | MiniBrowser, and
|
---|
| 247 | WebKitWebDriver <!-- New in 2.18.0 -->
|
---|
[1a024c3c] | 248 | </seg>
|
---|
| 249 | <seg>
|
---|
| 250 | libjavascriptcoregtk-4.0.so and
|
---|
| 251 | libwebkit2gtk-4.0.so
|
---|
| 252 | </seg>
|
---|
| 253 | <seg>
|
---|
| 254 | /usr/include/webkitgtk-4.0,
|
---|
[f0d9ee6] | 255 | /usr/lib{,exec}/webkit2gtk-4.0 and
|
---|
[24dfdcd] | 256 | /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0
|
---|
[1a024c3c] | 257 | </seg>
|
---|
| 258 | </seglistitem>
|
---|
| 259 | </segmentedlist>
|
---|
| 260 |
|
---|
| 261 | <variablelist>
|
---|
| 262 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 263 | <?dbfo list-presentation="list"?>
|
---|
| 264 | <?dbhtml list-presentation="table"?>
|
---|
| 265 |
|
---|
| 266 | <varlistentry id="jsc">
|
---|
| 267 | <term><command>jsc</command></term>
|
---|
| 268 | <listitem>
|
---|
| 269 | <para>
|
---|
| 270 | is a command-line utility that allows you to run JavaScript programs
|
---|
| 271 | outside of the context of a web browser.
|
---|
| 272 | </para>
|
---|
[de4ed8e] | 273 | <indexterm zone="webkitgtk jsc">
|
---|
[1a024c3c] | 274 | <primary sortas="b-jsc">jsc</primary>
|
---|
| 275 | </indexterm>
|
---|
| 276 | </listitem>
|
---|
| 277 | </varlistentry>
|
---|
| 278 |
|
---|
[7c4f32b] | 279 | <varlistentry id="MiniBrowser">
|
---|
| 280 | <term><command>MiniBrowser</command></term>
|
---|
| 281 | <listitem>
|
---|
| 282 | <para>
|
---|
| 283 | is a very simple graphical browser.
|
---|
| 284 | </para>
|
---|
| 285 | <indexterm zone="webkitgtk MiniBrowser">
|
---|
| 286 | <primary sortas="b-MiniBrowser">MiniBrowser</primary>
|
---|
| 287 | </indexterm>
|
---|
| 288 | </listitem>
|
---|
| 289 | </varlistentry>
|
---|
| 290 |
|
---|
[4d185c9e] | 291 | <varlistentry id="WebKitWebDriver">
|
---|
| 292 | <term><command>WebKitWebDriver</command></term>
|
---|
| 293 | <listitem>
|
---|
| 294 | <para>
|
---|
| 295 | allows debugging and automation of web pages and browsers.
|
---|
| 296 | </para>
|
---|
| 297 | <indexterm zone="webkitgtk WebKitWebDriver">
|
---|
| 298 | <primary sortas="b-WebKitWebDriver">WebKitWebDriver</primary>
|
---|
| 299 | </indexterm>
|
---|
| 300 | </listitem>
|
---|
| 301 | </varlistentry>
|
---|
| 302 |
|
---|
[1a024c3c] | 303 | <varlistentry id="libjavascriptcoregtk-4.0">
|
---|
| 304 | <term><filename
|
---|
| 305 | class="libraryfile">libjavascriptcoregtk-4.0.so</filename></term>
|
---|
| 306 | <listitem>
|
---|
| 307 | <para>
|
---|
| 308 | contains core JavaScript API functions used by
|
---|
| 309 | <command>jsc</command> and <filename
|
---|
| 310 | class="libraryfile">libwebkit2gtk-4.0</filename>.
|
---|
| 311 | </para>
|
---|
[de4ed8e] | 312 | <indexterm zone="webkitgtk libjavascriptcoregtk-4.0">
|
---|
[1a024c3c] | 313 | <primary sortas="c-libjavascriptcoregtk-4.0">libjavascriptcoregtk-4.0.0.so</primary>
|
---|
| 314 | </indexterm>
|
---|
| 315 | </listitem>
|
---|
| 316 | </varlistentry>
|
---|
| 317 |
|
---|
| 318 | <varlistentry id="libwebkit2gtk-4">
|
---|
| 319 | <term><filename class="libraryfile">libwebkit2gtk-4.0.so</filename></term>
|
---|
| 320 | <listitem>
|
---|
| 321 | <para>
|
---|
| 322 | contains the <application>WebKit2</application> API functions.
|
---|
| 323 | </para>
|
---|
[de4ed8e] | 324 | <indexterm zone="webkitgtk libwebkit2gtk-4">
|
---|
[1a024c3c] | 325 | <primary sortas="c-libwebkit2gtk-4">libwebkit2gtk-4.0.so</primary>
|
---|
| 326 | </indexterm>
|
---|
| 327 | </listitem>
|
---|
| 328 | </varlistentry>
|
---|
| 329 |
|
---|
| 330 | </variablelist>
|
---|
| 331 |
|
---|
| 332 | </sect2>
|
---|
| 333 |
|
---|
| 334 | </sect1>
|
---|