wok-6.x view libwebkit/receipt @ rev 16018
Add gritz
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 05 17:48:08 2014 +0000 (2014-03-05) |
parents | 63230fad92f1 |
children | e62fe73c97ae |
line source
1 # SliTaz package receipt.
3 PACKAGE="libwebkit"
4 VERSION="1.8.3"
5 CATEGORY="network"
6 SHORT_DESC="xHTML render library."
7 MAINTAINER="mallory@sweetpeople.org"
8 LICENSE="LGPL2"
9 SOURCE="webkit"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="http://webkitgtk.org"
12 WGET_URL="$WEB_SITE/releases/$TARBALL"
14 DEPENDS="gtk+ enchant libxslt expat gtk+ jpeg libpng libxml2 sqlite \
15 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \
16 xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama \
17 xorg-libXrandr xorg-libXrender xorg-libXt acl xorg-libXdamage libsoup \
18 gcc-lib-base libtasn1 util-linux-uuid glib-networking"
19 BUILD_DEPENDS="gtk+-dev enchant enchant-dev gperf libxslt-dev jpeg-dev \
20 libpng-dev glib-dev autoconf automake gnutls-dev sqlite-dev libtool \
21 m4 bison flex xorg-libXdamage-dev acl-dev libsoup-dev libxml2-dev \
22 libxcb-dev xcb-util-dev util-linux-uuid-dev zlib-dev libtasn1-dev \
23 gobject-introspection-dev tar gettext glib-networking-dev gtk-doc"
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
29 # libwebkit does not like parallel builds.
30 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/')
31 # fix Bug 84526: webkit-gtk-1.8.0 fails to build with --disable-video
32 # Build fix with newer bison 2.6
33 for file_diff in $stuff/*.diff; do
34 echo -n "Applying patch $(basename $file_diff)"
35 patch -Np1 -i $file_diff > /dev/null
36 status
37 done
38 # Build
39 patch -p0 < $stuff/CodeGeneratorGObject-bug-84526.patch || exit 1
40 ./configure \
41 --prefix=/usr \
42 --infodir=/usr/share/info \
43 --mandir=/usr/share/man \
44 --enable-introspection=no \
45 --enable-video=no \
46 --enable-jit=yes \
47 --disable-webgl \
48 --disable-geolocation \
49 --with-unicode-backend=glib \
50 --with-gtk=2.0 \
51 --disable-gtk-doc \
52 $CONFIGURE_ARGS &&
53 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing &&
54 make DESTDIR=$DESTDIR install 2>&1 | grep -Ev '(/usr/share/gtk-doc/html|Documentation/webkitgtk/version.xml)' &&
55 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/usr/lib $fs/usr/bin
62 [ -d $install/usr/lib/girepository-1.0 ] && cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
63 cp -a $install/usr/lib/*.so* $fs/usr/lib
64 }