wok-next view libwebkit/receipt @ rev 15175
gcompris: update LDFLAGS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 16 12:16:09 2013 +0000 (2013-08-16) |
parents | c07c17f1c70b |
children | 8d6f480bf664 |
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 2>&1 | grep -v Source/WebCore/dom/testing &&
53 make DESTDIR=$DESTDIR install 2>&1 | grep -Ev '(/usr/share/gtk-doc/html|Documentation/webkitgtk/version.xml)' &&
54 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/lib $fs/usr/bin
61 [ -d $install/usr/lib/girepository-1.0 ] && cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
62 cp -a $install/usr/lib/*.so* $fs/usr/lib
63 }