Introduction to WebKitGTK+
The WebKitGTK+ is the port of the
portable web rendering engine WebKit to the GTK+
3 and/or GTK+ 2 platforms.
This package is known to build and work properly using an LFS-7.7
platform.
Package Information
-
Download (HTTP): http://webkitgtk.org/releases/webkitgtk-2.4.8.tar.xz
-
Download MD5 sum: bcdcef8e1ba28dbd5bb05f86c79f76b8
-
Download size: 9.4 MB
-
Estimated disk space required: 1.5 GB (both built)
-
Estimated build time: 44 SBU (using parallelism=4, both
built, webkitgtk-3.0 takes a little longer than
webkitgtk-1.0)
WebKitGTK+ Dependencies
Required
gst-plugins-base-1.4.5, GTK+-2.24.26 or
GTK+-3.14.8, ICU-54.1, libsecret-0.18, libsoup-2.48.1, libwebp-0.4.2,
MesaLib-10.4.5, Ruby-2.2.0, SQLite-3.8.8.2, udev-extras (from eudev) (for GUdev)
and Which-2.20
Note
WebKit2 links
againstGTK+ 2 (even if
GTK+ 3 is being used), in order
to be able to use NPAPI plugins such as Adobe Flash.
Recommended
enchant-1.6.0, GeoClue-0.12.0, gobject-introspection-1.42.0,
hicolor-icon-theme-0.14
Optional
GTK-Doc-1.21, Harfbuzz-0.9.38, LLVM-3.5.1, GeoClue2, and
MathML
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/webkitgtk
Installation of WebKitGTK+
If you have not installed GTK-Doc-1.21,
fix a bug that will cause make
install to fail:
sed -i '/generate-gtkdoc --rebase/s:^:# :' \
GNUmakefile.in
Upstream standard now is to link this package against GTK+ 3. However, for backward compatibility,
manu users need also another instance, linked to GTK+ 2. Both can be installed in the same
system, without problem. However, some packages can alternatively
be linked to either one. Here, both build methods are presented and
recommended to be built, but if you know which one you need, just
jump to the respective part.
Build and install WebKitGTK+
against GTK+ 3
Install WebKitGTK+ by running the
following commands:
mkdir -vp build-3 &&
cp -a Documentation build-3 &&
cd build-3 &&
../configure --prefix=/usr --enable-introspection &&
make
This package does not have a working testsuite. However, there are
two useable basic graphical web browsers in the build directory,
Programs/GtkLauncher and
Programs/MiniBrowser. If launching
any one fails, there is a problem with the build.
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
Finally, leave the buid directory:
cd ..
Build and install WebKitGTK+
against GTK+ 2
Install WebKitGTK+ by running the
following commands:
mkdir -vp build-1
If you have built and installed the package against GTK+ 3. skip the following command, because
the previous docummentation also applies here:
cp -a Documentation build-1
Now, change into the build directory and effectively start the
build and install:
cd build-1 &&
../configure --prefix=/usr --with-gtk=2.0 --disable-webkit2 &&
make
This package does not have a working testsuite. However, there is
one useable basic graphical web browser in the build directory,
Programs/GtkLauncher. If launching
it fails, there is a problem with the build.
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
Finally, leave the buid directory:
cd ..