wok-current view libwebkit/receipt @ rev 25713

Up abiword (3.0.5), libwmf (0.2.13), fix wv url
author Stanislas Leduc <shann@slitaz.org>
date Fri Jun 14 11:35:21 2024 +0000 (2 months ago)
parents 3ad63c8fc2f9
children
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 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 libsoup248 \
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 libsoup248-dev \
22 libxml2-dev libxcb-dev xcb-util-dev util-linux-uuid-dev zlib-dev \
23 libtasn1-dev glib-networking gcc49"
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*
59 export PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/lib/libsoup248/pkgconfig"
60 # LIBSOUP_LIBS="-L/usr/libsoup248 -lsoup-2.4" \
61 # LIBSOUP_CFLAGS="-I/usr/libsoup248/include/libsoup-2.4" \
64 # Adjust API_VERSION to avoid clash with webkitgtk
65 patch -p1 < $stuff/libwebkit-version.patch
67 # Build
68 ./configure \
69 CC=gcc-49 \
70 CXX=g++-49 \
71 --libdir=/usr/lib \
72 --enable-introspection=no \
73 --enable-video=no \
74 --enable-jit=yes \
75 --disable-webgl \
76 --disable-geolocation \
77 --with-unicode-backend=glib \
78 --with-gtk=2.0 \
79 --disable-gtk-doc \
80 $CONFIGURE_ARGS &&
81 make -j4 all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing &&
82 make -j4 install 2>&1 | \
83 grep -Ev '(/usr/share/gtk-doc/html|Documentation/webkitgtk/version.xml)' &&
84 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
85 }
87 # Rules to gen a SliTaz package suitable for Tazpkg.
88 genpkg_rules()
89 {
90 mkdir -p $fs/usr/lib
91 cp -a $install/usr/lib/*.so* $fs/usr/lib
92 }