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.9
platform.
Package Information
-
Download (HTTP): http://webkitgtk.org/releases/webkitgtk-2.4.9.tar.xz
-
Download MD5 sum: 312fd29eb7f5970660c6a64b8bf8420e
-
Download size: 9.4 MB
-
Estimated disk space required: 1.6 GB (both built)
-
Estimated build time: 40 SBU (using parallelism=4, both
built, webkitgtk-3.0 takes a little longer than
webkitgtk-1.0)
WebKitGTK+ Dependencies
Required
gst-plugins-base-1.6.3, GTK+-2.24.29 or
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
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.46.0,
hicolor-icon-theme-0.15
Optional
GTK-Doc-1.24, Harfbuzz-1.1.3, LLVM-3.7.1, GeoClue2, and
MathML
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/webkitgtk
Installation of WebKitGTK+
If you have not installed GTK-Doc-1.24,
fix a bug that will cause make
install to fail:
sed -e '/generate-gtkdoc --rebase/s:^:# :' \
-i GNUmakefile.in
Upstream standard now is to link this package against GTK+ 3. However, for backward compatibility,
many users need also another instance, linked to GTK+ 2. Both can be installed in the same
system, without any problems. 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 ..