wok-current view libwebkit/receipt @ rev 19958
slim-theme: disable pngquant (thanks Ceel for report)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri May 19 05:31:35 2017 +0300 (2017-05-19) |
parents | 8d6f480bf664 |
children | 6e8b1bcb30e2 |
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="devel@slitaz.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"
13 HOST_ARCH="i486 arm"
15 DEPENDS="gtk+ enchant libxslt expat gtk+ jpeg libpng libxml2 sqlite \
16 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \
17 xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama \
18 xorg-libXrandr xorg-libXrender xorg-libXt acl xorg-libXdamage libsoup \
19 gcc-lib-base libtasn1 util-linux-uuid glib-networking"
20 BUILD_DEPENDS="gtk+-dev enchant-dev libxslt-dev jpeg-dev libpng-dev \
21 glib-dev sqlite-dev gnutls-dev xorg-libXdamage-dev acl-dev libsoup-dev \
22 libxml2-dev libxcb-dev xcb-util-dev util-linux-uuid-dev zlib-dev \
23 libtasn1-dev glib-networking-dev"
25 # Handle cross compilation.
26 case "$ARCH" in
27 i?86)
28 BUILD_DEPENDS="$BUILD_DEPENDS tar gettext m4 bison flex gperf
29 autoconf automake gtk-doc libtool" ;;
30 esac
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 # libwebkit does not like parallel builds.
36 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/')
37 # fix Bug 84526: webkit-gtk-1.8.0 fails to build with --disable-video
38 # Build fix with newer bison 2.6
39 if [ ! "$continue" ]; then
40 for file_diff in $stuff/*.diff; do
41 echo -n "Applying patch $(basename $file_diff)"
42 patch -Np1 -i $file_diff > /dev/null
43 status
44 done
45 patch -p0 < $stuff/CodeGeneratorGObject-bug-84526.patch || exit 1
46 fi
47 # Build
48 ./configure \
49 --enable-introspection=no \
50 --enable-video=no \
51 --enable-jit=yes \
52 --disable-webgl \
53 --disable-geolocation \
54 --with-unicode-backend=glib \
55 --with-gtk=2.0 \
56 --disable-gtk-doc \
57 $CONFIGURE_ARGS &&
58 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing &&
59 make install 2>&1 | \
60 grep -Ev '(/usr/share/gtk-doc/html|Documentation/webkitgtk/version.xml)' &&
61 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
62 }
64 # Rules to gen a SliTaz package suitable for Tazpkg.
65 genpkg_rules()
66 {
67 mkdir -p $fs/usr/lib
68 cp -a $install/usr/lib/*.so* $fs/usr/lib
69 }