WebKitGTK+-2.10.7

Introduction to WebKitGTK+

The WebKitGTK+ is the port of the portable web rendering engine WebKit to the GTK+ 3 and GTK+ 2 platforms.

This package is known to build and work properly using an LFS-7.9 platform.

Package Information

  • Download (HTTP): http://webkitgtk.org/releases/webkitgtk-2.10.7.tar.xz

  • Download MD5 sum: 84832b9d8329413b4f1d87df5f7e8efe

  • Download size: 11 MB

  • Estimated disk space required: 1016 MB (105 MB installed)

  • Estimated build time: 35 SBU (using parallelism=4, estimated 88+ SBU using 1 core)

WebKitGTK+ Dependencies

Required

CMake-3.4.3, gst-plugins-base-1.6.3, GTK+-2.24.29, GTK+-3.18.7, ICU-56.1, libgudev-230, libsecret-0.18.4, libsoup-2.52.2, libwebp-0.5.0, Mesa-11.1.2, Ruby-2.3.0, SQLite-3.11.0 and Which-2.21

Recommended

Optional

GTK-Doc-1.24, Harfbuzz-1.1.3, libnotify-0.7.6, LLVM-3.7.1, Hyphen, GeoClue2, and MathML

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/webkitgtk

Installation of WebKitGTK+

Installation of WebKitGTK+

Install WebKitGTK+ by running the following commands:

sed -e 's/“/\"/' -e 's/”/\"/' \
    -i Source/WebCore/xml/XMLViewer.{css,js} &&

sed -i "s#isnan#std::&#g" Source/JavaScriptCore/runtime/Options.cpp &&

mkdir -vp build &&
cd        build &&

cmake -DCMAKE_BUILD_TYPE=Release  \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DCMAKE_SKIP_RPATH=ON       \
      -DPORT=GTK                  \
      -DLIB_INSTALL_DIR=/usr/lib  \
      -DUSE_LIBHYPHEN=OFF         \
      -DENABLE_MINIBROWSER=ON     \
      -Wno-dev .. &&
make

This package does not have a working testsuite. However, there is a useable basic graphical web browser in the build directory, build/bin/MiniBrowser. If launching it fails, there is a problem with the build.

[Note]

Note

When installing, the Makefile does some additional compiling and linking. If you do not have Xorg in /usr, the LIBRARY_PATH and PKG_CONFIG_PATH variables need to be defined for the root user. If using sudo to assume root, use the -E option to pass your current environment variables for the install process.

Now, as the root user:

make install &&

install -vdm755 /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0 &&
install -vm644  ../Documentation/webkit2gtk-4.0/html/*   \
                /usr/share/gtk-doc/html/webkit2gtk-4.0       &&
install -vm644  ../Documentation/webkitdomgtk-4.0/html/* \
                /usr/share/gtk-doc/html/webkitdomgtk-4.0

Command Explanations

sed -i ...: The first sed fixes typos in two source code files, the second fixes a build failure caused by a glibc-2.23 change.

-DUSE_LIBHYPHEN=OFF: This switch disables default automatic hyphenation implementation. You need to install Hyphen, if you wish to enable it (replacing OFF with ON or just removing the switch).

-DENABLE_MINIBROWSER=ON: This switch enables the Mini Browser compilation and install.

-DUSE_SYSTEM_MALLOC=ON: This switch enables building against the system installed malloc.

-DENABLE_GEOLOCATION=OFF: Use this switch if you don't want to install GeoClue-0.12.0 or GeoClue2.

-DENABLE_GTKDOC=ON: Use this switch if GTK-Doc-1.24 is installed and you wish to rebuild and install the API documentation.

Contents

Installed Program: jsc and MiniBrowser
Installed Libraries: libjavascriptcoregtk-4.0.so and libwebkit2gtk-4.0.so
Installed Directories: /usr/include/webkitgtk-4.0, /usr/lib{,exec}/webkit2gtk-4.0 and /usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0

Short Descriptions

jsc

is a command-line utility that allows you to run JavaScript programs outside of the context of a web browser.

MiniBrowser

is a very simple graphical browser.

libjavascriptcoregtk-4.0.so

contains core JavaScript API functions used by jsc and libwebkit2gtk-4.0.

libwebkit2gtk-4.0.so

contains the WebKit2 API functions.

Last updated on 2016-02-23 15:21:23 -0800