wok view libwebkit/receipt @ rev 25545

Add pom1
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 15 16:15:09 2023 +0000 (20 months ago)
parents 5d79829fa876
children a9a3de07bef2
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 # What is the latest version available today?
26 current_version()
27 {
28 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
29 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
30 }
32 # Handle cross compilation.
33 case "$ARCH" in
34 i?86)
35 BUILD_DEPENDS="$BUILD_DEPENDS tar gettext m4 bison flex gperf
36 autoconf automake gtk-doc libtool" ;;
37 esac
39 # Rules to configure and make the package.
40 compile_rules()
41 {
42 # libwebkit does not like parallel builds.
43 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/')
44 # fix Bug 84526: webkit-gtk-1.8.0 fails to build with --disable-video
45 # Build fix with newer bison 2.6
46 if [ ! "$continue" ]; then
47 for file_diff in $stuff/*.diff; do
48 echo -n "Applying patch $(basename $file_diff)"
49 patch -Np1 -i $file_diff > /dev/null
50 status
51 done
52 patch -p0 < $stuff/CodeGeneratorGObject-bug-84526.patch || exit 1
53 fi
54 # Build fix with newer bison 3
55 sed -i 's|%pure_parser|%define api.pure|' Source/WebCore/css/CSSGrammar.y
56 sed -i '/\$(AM_V_at)rm -f/d' GNUmakefile* Source/WebCore/GNUmakefile*
57 # Build
58 ./configure \
59 --enable-introspection=no \
60 --enable-video=no \
61 --enable-jit=yes \
62 --disable-webgl \
63 --disable-geolocation \
64 --with-unicode-backend=glib \
65 --with-gtk=2.0 \
66 --disable-gtk-doc \
67 $CONFIGURE_ARGS &&
68 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing &&
69 make install 2>&1 | \
70 grep -Ev '(/usr/share/gtk-doc/html|Documentation/webkitgtk/version.xml)' &&
71 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
72 }
74 # Rules to gen a SliTaz package suitable for Tazpkg.
75 genpkg_rules()
76 {
77 mkdir -p $fs/usr/lib
78 cp -a $install/usr/lib/*.so* $fs/usr/lib
79 }