contrib/webkit/Pkgfile

58 lines
1.3 KiB
Plaintext
Raw Normal View History

2009-11-22 17:01:12 +01:00
# Description: Small, efficient and fast rendering engine for Web Browsers.
2010-01-28 10:23:28 +01:00
# URL: http://www.webkitgtk.org/
2009-11-22 17:01:12 +01:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Brett Goulder, predatorfreak at dcaf-security dot org
2012-11-05 04:50:43 +01:00
# Depends on: enchant gst-plugins-base gtk3 icu libsoup glu ruby gperf
# Nice to have: geoclue
2009-11-22 17:01:12 +01:00
name=webkit
2012-11-05 04:50:43 +01:00
version=1.10.1
2012-11-05 10:42:51 +01:00
release=2
2012-11-05 04:50:43 +01:00
source=(http://webkitgtk.org/releases/webkitgtk-$version.tar.xz
gtkdoc-rebase-remove.patch)
2009-11-22 17:01:12 +01:00
build() {
2012-11-05 04:50:43 +01:00
cd webkitgtk-$version
2012-11-05 10:42:51 +01:00
mkdir build-gtk2 build-gtk3
2009-11-22 17:01:12 +01:00
patch -p1 -i $SRC/gtkdoc-rebase-remove.patch
if [ -z "$(pkginfo -i | grep '^geoclue ')" ]; then
local config='--disable-geolocation'
fi
2012-11-05 10:42:51 +01:00
cd build-gtk2
../configure $config \
--prefix=/usr \
--enable-video \
--with-font-backend=freetype \
--disable-gtk-doc \
--disable-silent-rules \
--enable-jit \
--with-unicode-backend=icu \
--libexecdir=/usr/lib/webkitgtk2 \
--with-gtk=2.0 \
--disable-webkit2
make -j1
make -j1 DESTDIR=$PKG install
cd ../build-gtk3
../configure $config \
2009-11-22 17:01:12 +01:00
--prefix=/usr \
--enable-video \
--with-font-backend=freetype \
--disable-gtk-doc \
2012-11-05 04:50:43 +01:00
--disable-silent-rules \
2009-11-22 17:01:12 +01:00
--enable-jit \
2012-11-05 10:42:51 +01:00
--with-unicode-backend=icu \
--libexecdir=/usr/lib/webkitgtk3
2009-11-22 17:01:12 +01:00
2012-11-05 04:50:43 +01:00
make -j1
make -j1 DESTDIR=$PKG install
2012-11-05 10:42:51 +01:00
rm -r $PKG/usr/share/locale
2009-11-22 17:01:12 +01:00
}