wok view libwebkit/receipt @ rev 24504
updated dwm (6.0 -> 6.3)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Feb 20 11:26:24 2022 +0100 (2022-02-20) |
parents | 6e8b1bcb30e2 |
children | 37dc4a16deb5 |
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="https://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 current_version()
26 {
27 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
28 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
29 }
31 # Handle cross compilation.
32 case "$ARCH" in
33 i?86)
34 BUILD_DEPENDS="$BUILD_DEPENDS tar gettext m4 bison flex gperf
35 autoconf automake gtk-doc libtool" ;;
36 esac
38 # Rules to configure and make the package.
39 compile_rules()
40 {
41 # libwebkit does not like parallel builds.
42 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/')
43 # fix Bug 84526: webkit-gtk-1.8.0 fails to build with --disable-video
44 # Build fix with newer bison 2.6
45 if [ ! "$continue" ]; then
46 for file_diff in $stuff/*.diff; do
47 echo -n "Applying patch $(basename $file_diff)"
48 patch -Np1 -i $file_diff > /dev/null
49 status
50 done
51 patch -p0 < $stuff/CodeGeneratorGObject-bug-84526.patch || exit 1
52 fi
53 # Build
54 ./configure \
55 --enable-introspection=no \
56 --enable-video=no \
57 --enable-jit=yes \
58 --disable-webgl \
59 --disable-geolocation \
60 --with-unicode-backend=glib \
61 --with-gtk=2.0 \
62 --disable-gtk-doc \
63 $CONFIGURE_ARGS &&
64 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing &&
65 make install 2>&1 | \
66 grep -Ev '(/usr/share/gtk-doc/html|Documentation/webkitgtk/version.xml)' &&
67 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
68 }
70 # Rules to gen a SliTaz package suitable for Tazpkg.
71 genpkg_rules()
72 {
73 mkdir -p $fs/usr/lib
74 cp -a $install/usr/lib/*.so* $fs/usr/lib
75 }