[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 " ">
|
---|
[f2d585bd] | 9 | <!ENTITY webkitgtk-md5sum "c8291af0c5102fff1f73e67f0bff6c87">
|
---|
[8252e757] | 10 | <!ENTITY webkitgtk-size "21 MB">
|
---|
[f2d585bd] | 11 | <!ENTITY webkitgtk-buildsize "832 MB (121 MB installed)">
|
---|
[17ae4374] | 12 | <!ENTITY webkitgtk-time "24 SBU (using parallelism=4, estimated 79 SBU 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 |
|
---|
[ee369e0] | 39 | &lfs10_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"/>,
|
---|
| 81 | <xref linkend="gst10-plugins-base"/>,
|
---|
[ad930e67] | 82 | <xref linkend="gst10-plugins-bad"/>,
|
---|
[1a024c3c] | 83 | <xref linkend="gtk3"/>,
|
---|
| 84 | <xref linkend="icu"/>,
|
---|
[f175d6f6] | 85 | <xref linkend="libgudev"/>,
|
---|
[1a024c3c] | 86 | <xref linkend="libsecret"/>,
|
---|
| 87 | <xref linkend="libsoup"/>,
|
---|
| 88 | <xref linkend="libwebp"/>,
|
---|
[7a395d1] | 89 | <xref linkend="mesa"/>,
|
---|
[2367283] | 90 | <xref linkend="openjpeg2"/>,
|
---|
[1a024c3c] | 91 | <xref linkend="ruby"/>,
|
---|
[206913a] | 92 | <xref linkend="sqlite"/>, and
|
---|
[1a024c3c] | 93 | <xref linkend="which"/>
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
[fddab91] | 97 | <para role="recommended">
|
---|
[decb6bc5] | 98 | <xref linkend="enchant"/>,
|
---|
[560b86d] | 99 | <xref linkend="geoclue2"/>,
|
---|
[1a024c3c] | 100 | <xref linkend="gobject-introspection"/>,
|
---|
[206913a] | 101 | <xref linkend="hicolor-icon-theme"/>, and
|
---|
[b6a8577d] | 102 | <xref linkend="libnotify"/>
|
---|
[4026a19] | 103 | </para>
|
---|
[1a024c3c] | 104 |
|
---|
| 105 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[fddab91] | 106 | <para role="optional">
|
---|
[0940157] | 107 | <xref linkend="bubblewrap"/>,
|
---|
[1a024c3c] | 108 | <xref linkend="gtk-doc"/>,
|
---|
| 109 | <xref linkend="harfbuzz"/>,
|
---|
[47d5a9e5] | 110 | <xref linkend="wayland"/>,
|
---|
| 111 | <xref linkend="woff2"/>,
|
---|
[9851978] | 112 | <ulink url="https://ccache.dev/">ccache</ulink>,
|
---|
[f858bd7] | 113 | <ulink url="http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>,
|
---|
[12b10249] | 114 | <ulink url="http://xsltml.sourceforge.net/">MathML</ulink>,
|
---|
| 115 | <ulink url="https://github.com/WebPlatformForEmbedded/libwpe">libwpe</ulink>,
|
---|
| 116 | <ulink url="https://github.com/Igalia/WPEBackend-fdo">WPEBackend-fdo</ulink>, and
|
---|
| 117 | <ulink url="https://github.com/flatpak/xdg-dbus-proxy">xdg-dbus-proxy</ulink>
|
---|
[1a024c3c] | 118 | </para>
|
---|
| 119 |
|
---|
| 120 | <para condition="html" role="usernotes">
|
---|
| 121 | User Notes: <ulink url="&blfs-wiki;/webkitgtk"/>
|
---|
| 122 | </para>
|
---|
| 123 | </sect2>
|
---|
| 124 |
|
---|
| 125 | <sect2 role="installation">
|
---|
| 126 | <title>Installation of WebKitGTK+</title>
|
---|
| 127 |
|
---|
| 128 | <bridgehead renderas="sect3">Installation of
|
---|
| 129 | <application>WebKitGTK+</application></bridgehead>
|
---|
| 130 |
|
---|
[17ae4374] | 131 | <!--
|
---|
[ac4aa90b] | 132 | <para>First, ensure backward compatibility with the latest version of icu:</para>
|
---|
[d3757fbd] | 133 |
|
---|
[ac4aa90b] | 134 | <screen><userinput>echo 'add_compile_definitions("U_DEFINE_FALSE_AND_TRUE=1")' >> Source/WTF/wtf/CMakeLists.txt</userinput></screen>
|
---|
[17ae4374] | 135 | -->
|
---|
[d3757fbd] | 136 |
|
---|
[1a024c3c] | 137 | <para>
|
---|
| 138 | Install <application>WebKitGTK+</application> by running the
|
---|
| 139 | following commands:
|
---|
| 140 | </para>
|
---|
[6fe4f013] | 141 |
|
---|
[8252e757] | 142 | <screen revision="systemd"><userinput>mkdir -vp build &&
|
---|
[24dfdcd] | 143 | cd build &&
|
---|
[1a024c3c] | 144 |
|
---|
[42b7dab] | 145 | cmake -DCMAKE_BUILD_TYPE=Release \
|
---|
| 146 | -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 147 | -DCMAKE_SKIP_RPATH=ON \
|
---|
| 148 | -DPORT=GTK \
|
---|
| 149 | -DLIB_INSTALL_DIR=/usr/lib \
|
---|
[a78d8510] | 150 | -DUSE_LIBHYPHEN=OFF \
|
---|
[7c4f32b] | 151 | -DENABLE_MINIBROWSER=ON \
|
---|
[f858bd7] | 152 | -DUSE_WOFF2=OFF \
|
---|
[12b10249] | 153 | -DUSE_WPE_RENDERER=OFF \
|
---|
| 154 | -DENABLE_BUBBLEWRAP_SANDBOX=OFF \
|
---|
| 155 | -Wno-dev -G Ninja .. &&
|
---|
[4291c1e] | 156 | ninja</userinput></screen>
|
---|
[1a024c3c] | 157 |
|
---|
[8252e757] | 158 | <screen revision="sysv"><userinput>mkdir -vp build &&
|
---|
| 159 | cd build &&
|
---|
| 160 |
|
---|
| 161 | cmake -DCMAKE_BUILD_TYPE=Release \
|
---|
| 162 | -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 163 | -DCMAKE_SKIP_RPATH=ON \
|
---|
| 164 | -DPORT=GTK \
|
---|
| 165 | -DLIB_INSTALL_DIR=/usr/lib \
|
---|
| 166 | -DUSE_LIBHYPHEN=OFF \
|
---|
| 167 | -DENABLE_MINIBROWSER=ON \
|
---|
| 168 | -DUSE_WOFF2=OFF \
|
---|
| 169 | -DUSE_WPE_RENDERER=OFF \
|
---|
| 170 | -DUSE_SYSTEMD=OFF \
|
---|
| 171 | -DENABLE_BUBBLEWRAP_SANDBOX=OFF \
|
---|
| 172 | -Wno-dev -G Ninja .. &&
|
---|
| 173 | ninja</userinput></screen>
|
---|
| 174 |
|
---|
[1a024c3c] | 175 | <para>
|
---|
[7c4f32b] | 176 | This package does not have a working testsuite. However, there is a
|
---|
[c69b5e72] | 177 | usable basic graphical web browser in the build directory,
|
---|
[7c4f32b] | 178 | <application>build/bin/MiniBrowser</application>. If launching it fails,
|
---|
| 179 | there is a problem with the build.
|
---|
[1a024c3c] | 180 | </para>
|
---|
| 181 |
|
---|
| 182 | <note><para>
|
---|
| 183 | When installing, the Makefile does some additional compiling and linking.
|
---|
| 184 | If you do not have Xorg in /usr, the LIBRARY_PATH and PKG_CONFIG_PATH
|
---|
| 185 | variables need to be defined for the root user. If using sudo to assume
|
---|
| 186 | root, use the -E option to pass your current environment variables for the
|
---|
| 187 | install process.
|
---|
| 188 | </para></note>
|
---|
| 189 |
|
---|
| 190 | <para>
|
---|
| 191 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 192 | </para>
|
---|
| 193 |
|
---|
[4291c1e] | 194 | <screen role="root"><userinput>ninja install &&
|
---|
[1a024c3c] | 195 |
|
---|
[2c95b08] | 196 | install -vdm755 /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0 &&
|
---|
[24dfdcd] | 197 | install -vm644 ../Documentation/webkit2gtk-4.0/html/* \
|
---|
| 198 | /usr/share/gtk-doc/html/webkit2gtk-4.0 &&
|
---|
[de4ed8e] | 199 | install -vm644 ../Documentation/webkitdomgtk-4.0/html/* \
|
---|
[1a024c3c] | 200 | /usr/share/gtk-doc/html/webkitdomgtk-4.0</userinput></screen>
|
---|
| 201 | </sect2>
|
---|
| 202 |
|
---|
| 203 | <sect2 role="commands">
|
---|
| 204 | <title>Command Explanations</title>
|
---|
| 205 |
|
---|
[016e770] | 206 | <!-- <para>
|
---|
[fabeff7] | 207 | <command>sed ... TextCheckerEnchant.cpp</command>: This command
|
---|
[af451f4] | 208 | is needed to allow the build to complete with enchant-2.x.
|
---|
[016e770] | 209 | </para> -->
|
---|
[fabeff7] | 210 |
|
---|
[a78d8510] | 211 | <para>
|
---|
| 212 | <parameter>-DUSE_LIBHYPHEN=OFF</parameter>: This switch disables
|
---|
| 213 | default automatic hyphenation implementation. You need to install
|
---|
| 214 | <ulink
|
---|
| 215 | url="http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</ulink>,
|
---|
| 216 | if you wish to enable it (replacing OFF with ON or just removing
|
---|
| 217 | the switch).
|
---|
| 218 | </para>
|
---|
| 219 |
|
---|
[7c4f32b] | 220 | <para>
|
---|
[8252e757] | 221 | <parameter>-DENABLE_MINIBROWSER=ON</parameter>: This switch enables
|
---|
| 222 | compiling and installing the MiniBrowser.
|
---|
[7c4f32b] | 223 | </para>
|
---|
| 224 |
|
---|
[aa41434] | 225 | <para>
|
---|
| 226 | <parameter>-DUSE_WPE_RENDERER=OFF</parameter>: Remove this switch if the optional
|
---|
| 227 | packages <ulink url="https://github.com/WebPlatformForEmbedded/libwpe">libwpe</ulink> and
|
---|
| 228 | <ulink url="https://github.com/Igalia/WPEBackend-fdo">WPEBackend-fdo</ulink> are installed.
|
---|
| 229 | </para>
|
---|
| 230 |
|
---|
| 231 | <para>
|
---|
[8252e757] | 232 | <parameter>-DENABLE_BUBBLEWRAP_SANDBOX=OFF</parameter>: Remove this
|
---|
| 233 | switch if the optional packages <xref linkend="bubblewrap"/> and
|
---|
[0940157] | 234 | <ulink url="https://github.com/flatpak/xdg-dbus-proxy">xdg-dbus-proxy</ulink>
|
---|
| 235 | are installed.
|
---|
[aa41434] | 236 | </para>
|
---|
[8252e757] | 237 |
|
---|
| 238 | <para revision="sysv">
|
---|
| 239 | <parameter>-DUSE_SYSTEMD=OFF</parameter>: This switch disables using the
|
---|
| 240 | systemd journal for logging errors and debugging information since it
|
---|
| 241 | is not available on SysV systems.
|
---|
| 242 | </para>
|
---|
[aa41434] | 243 |
|
---|
[b6a8577d] | 244 | <para>
|
---|
| 245 | <option>-DUSE_LIBNOTIFY=OFF</option>: Use this switch if you do not
|
---|
| 246 | have <application>libnotify</application> installed.
|
---|
| 247 | </para>
|
---|
| 248 |
|
---|
[1a024c3c] | 249 | <para>
|
---|
| 250 | <option>-DUSE_SYSTEM_MALLOC=ON</option>: This switch enables building
|
---|
| 251 | against the system installed <application>malloc</application>.
|
---|
| 252 | </para>
|
---|
| 253 |
|
---|
| 254 | <para>
|
---|
| 255 | <option>-DENABLE_GEOLOCATION=OFF</option>: Use this switch if you don't
|
---|
[560b86d] | 256 | want to install <xref linkend="geoclue2"/>.
|
---|
[1a024c3c] | 257 | </para>
|
---|
| 258 |
|
---|
| 259 | <para>
|
---|
| 260 | <option>-DENABLE_GTKDOC=ON</option>: Use this switch if <xref
|
---|
| 261 | linkend="gtk-doc"/> is installed and you wish to rebuild and install the
|
---|
| 262 | API documentation.
|
---|
| 263 | </para>
|
---|
| 264 |
|
---|
[f858bd7] | 265 | <para>
|
---|
| 266 | <option>-DUSE_WOFF2=ON</option>: Use this switch if the optional
|
---|
[1f61010e] | 267 | package <xref linkend="woff2"/> is installed. This adds additional
|
---|
| 268 | support for fonts.
|
---|
[f858bd7] | 269 | </para>
|
---|
| 270 |
|
---|
[1a024c3c] | 271 | </sect2>
|
---|
| 272 |
|
---|
| 273 | <sect2 role="content">
|
---|
| 274 | <title>Contents</title>
|
---|
| 275 |
|
---|
| 276 | <segmentedlist>
|
---|
| 277 | <segtitle>Installed Program</segtitle>
|
---|
| 278 | <segtitle>Installed Libraries</segtitle>
|
---|
| 279 | <segtitle>Installed Directories</segtitle>
|
---|
| 280 |
|
---|
| 281 | <seglistitem>
|
---|
| 282 | <seg>
|
---|
[da1575a] | 283 | <!-- Moved to /usr/libexec/webkit2gtk-4.0, so shouldn't appear here
|
---|
[4d185c9e] | 284 | jsc,
|
---|
[da1575a] | 285 | MiniBrowser, and -->
|
---|
[4291c1e] | 286 | WebKitWebDriver
|
---|
[1a024c3c] | 287 | </seg>
|
---|
| 288 | <seg>
|
---|
| 289 | libjavascriptcoregtk-4.0.so and
|
---|
| 290 | libwebkit2gtk-4.0.so
|
---|
| 291 | </seg>
|
---|
| 292 | <seg>
|
---|
| 293 | /usr/include/webkitgtk-4.0,
|
---|
[206913a] | 294 | /usr/lib{,exec}/webkit2gtk-4.0, and
|
---|
[24dfdcd] | 295 | /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0
|
---|
[1a024c3c] | 296 | </seg>
|
---|
| 297 | </seglistitem>
|
---|
| 298 | </segmentedlist>
|
---|
| 299 |
|
---|
| 300 | <variablelist>
|
---|
| 301 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 302 | <?dbfo list-presentation="list"?>
|
---|
| 303 | <?dbhtml list-presentation="table"?>
|
---|
| 304 |
|
---|
[da1575a] | 305 | <!--
|
---|
[1a024c3c] | 306 | <varlistentry id="jsc">
|
---|
| 307 | <term><command>jsc</command></term>
|
---|
| 308 | <listitem>
|
---|
| 309 | <para>
|
---|
| 310 | is a command-line utility that allows you to run JavaScript programs
|
---|
| 311 | outside of the context of a web browser.
|
---|
| 312 | </para>
|
---|
[de4ed8e] | 313 | <indexterm zone="webkitgtk jsc">
|
---|
[1a024c3c] | 314 | <primary sortas="b-jsc">jsc</primary>
|
---|
| 315 | </indexterm>
|
---|
| 316 | </listitem>
|
---|
| 317 | </varlistentry>
|
---|
| 318 |
|
---|
[7c4f32b] | 319 | <varlistentry id="MiniBrowser">
|
---|
| 320 | <term><command>MiniBrowser</command></term>
|
---|
| 321 | <listitem>
|
---|
| 322 | <para>
|
---|
| 323 | is a very simple graphical browser.
|
---|
| 324 | </para>
|
---|
| 325 | <indexterm zone="webkitgtk MiniBrowser">
|
---|
| 326 | <primary sortas="b-MiniBrowser">MiniBrowser</primary>
|
---|
| 327 | </indexterm>
|
---|
| 328 | </listitem>
|
---|
| 329 | </varlistentry>
|
---|
[da1575a] | 330 | -->
|
---|
[4d185c9e] | 331 | <varlistentry id="WebKitWebDriver">
|
---|
| 332 | <term><command>WebKitWebDriver</command></term>
|
---|
| 333 | <listitem>
|
---|
| 334 | <para>
|
---|
| 335 | allows debugging and automation of web pages and browsers.
|
---|
| 336 | </para>
|
---|
| 337 | <indexterm zone="webkitgtk WebKitWebDriver">
|
---|
| 338 | <primary sortas="b-WebKitWebDriver">WebKitWebDriver</primary>
|
---|
| 339 | </indexterm>
|
---|
| 340 | </listitem>
|
---|
| 341 | </varlistentry>
|
---|
| 342 |
|
---|
[1a024c3c] | 343 | <varlistentry id="libjavascriptcoregtk-4.0">
|
---|
| 344 | <term><filename
|
---|
| 345 | class="libraryfile">libjavascriptcoregtk-4.0.so</filename></term>
|
---|
| 346 | <listitem>
|
---|
| 347 | <para>
|
---|
| 348 | contains core JavaScript API functions used by
|
---|
| 349 | <command>jsc</command> and <filename
|
---|
| 350 | class="libraryfile">libwebkit2gtk-4.0</filename>.
|
---|
| 351 | </para>
|
---|
[de4ed8e] | 352 | <indexterm zone="webkitgtk libjavascriptcoregtk-4.0">
|
---|
[1a024c3c] | 353 | <primary sortas="c-libjavascriptcoregtk-4.0">libjavascriptcoregtk-4.0.0.so</primary>
|
---|
| 354 | </indexterm>
|
---|
| 355 | </listitem>
|
---|
| 356 | </varlistentry>
|
---|
| 357 |
|
---|
| 358 | <varlistentry id="libwebkit2gtk-4">
|
---|
| 359 | <term><filename class="libraryfile">libwebkit2gtk-4.0.so</filename></term>
|
---|
| 360 | <listitem>
|
---|
| 361 | <para>
|
---|
| 362 | contains the <application>WebKit2</application> API functions.
|
---|
| 363 | </para>
|
---|
[de4ed8e] | 364 | <indexterm zone="webkitgtk libwebkit2gtk-4">
|
---|
[1a024c3c] | 365 | <primary sortas="c-libwebkit2gtk-4">libwebkit2gtk-4.0.so</primary>
|
---|
| 366 | </indexterm>
|
---|
| 367 | </listitem>
|
---|
| 368 | </varlistentry>
|
---|
| 369 |
|
---|
| 370 | </variablelist>
|
---|
| 371 |
|
---|
| 372 | </sect2>
|
---|
| 373 |
|
---|
| 374 | </sect1>
|
---|