wok view libwebkit/receipt @ rev 14461

Up: geany (1.23)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Apr 27 02:56:24 2013 +0200 (2013-04-27)
parents b242093530f9
children c07c17f1c70b
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 SOURCE="webkit"
9 TARBALL="$SOURCE-$VERSION.tar.xz"
10 WEB_SITE="http://webkitgtk.org"
11 WGET_URL="$WEB_SITE/releases/$TARBALL"
13 DEPENDS="gtk+ enchant libxslt expat gtk+ jpeg libpng libxml2 sqlite \
14 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \
15 xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama \
16 xorg-libXrandr xorg-libXrender xorg-libXt acl xorg-libXdamage libsoup \
17 gcc-lib-base libtasn1 util-linux-uuid glib-networking"
18 BUILD_DEPENDS="gtk+-dev enchant enchant-dev gperf libxslt-dev jpeg-dev \
19 libpng-dev glib-dev autoconf automake gnutls-dev sqlite-dev libtool \
20 m4 bison flex xorg-libXdamage-dev acl-dev libsoup-dev libxml2-dev \
21 libxcb-dev xcb-util-dev util-linux-uuid-dev zlib-dev libtasn1-dev \
22 gobject-introspection-dev tar gettext glib-networking-dev gtk-doc"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 # libwebkit does not like parallel builds.
29 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/')
30 # fix Bug 84526: webkit-gtk-1.8.0 fails to build with --disable-video
31 # Build fix with newer bison 2.6
32 for file_diff in $stuff/*.diff; do
33 echo -n "Applying patch $(basename $file_diff)"
34 patch -Np1 -i $file_diff > /dev/null
35 status
36 done
37 # Build
38 patch -p0 < $stuff/CodeGeneratorGObject-bug-84526.patch || exit 1
39 ./configure \
40 --prefix=/usr \
41 --infodir=/usr/share/info \
42 --mandir=/usr/share/man \
43 --enable-introspection=no \
44 --enable-video=no \
45 --enable-jit=yes \
46 --disable-webgl \
47 --disable-geolocation \
48 --with-unicode-backend=glib \
49 --with-gtk=2.0 \
50 --disable-gtk-doc \
51 $CONFIGURE_ARGS &&
52 make all stamp-po && make DESTDIR=$DESTDIR install &&
53 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/lib $fs/usr/bin
60 [ -d $_pkg/usr/lib/girepository-1.0 ] && cp -a $_pkg/usr/lib/girepository-1.0 $fs/usr/lib
61 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
62 }