wok annotate libwebkit/receipt @ rev 24889

grub2: sed command corrected
author Hans-G?nter Theisgen
date Sat Apr 02 17:34:21 2022 +0100 (2022-04-02)
parents 5d79829fa876
children a9a3de07bef2
rev   line source
mallory@3146 1 # SliTaz package receipt.
mallory@3146 2
mallory@3146 3 PACKAGE="libwebkit"
domcox@14105 4 VERSION="1.8.3"
mallory@3146 5 CATEGORY="network"
mallory@3146 6 SHORT_DESC="xHTML render library."
pankso@16258 7 MAINTAINER="devel@slitaz.org"
pascal@15482 8 LICENSE="LGPL2"
pankso@10801 9 SOURCE="webkit"
domcox@12888 10 TARBALL="$SOURCE-$VERSION.tar.xz"
pascal@20671 11 WEB_SITE="https://webkitgtk.org"
pascal@12892 12 WGET_URL="$WEB_SITE/releases/$TARBALL"
pankso@16258 13 HOST_ARCH="i486 arm"
pankso@10801 14
slaxemulator@5372 15 DEPENDS="gtk+ enchant libxslt expat gtk+ jpeg libpng libxml2 sqlite \
slaxemulator@5372 16 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \
pankso@10801 17 xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama \
pankso@10801 18 xorg-libXrandr xorg-libXrender xorg-libXt acl xorg-libXdamage libsoup \
pankso@12481 19 gcc-lib-base libtasn1 util-linux-uuid glib-networking"
pankso@16258 20 BUILD_DEPENDS="gtk+-dev enchant-dev libxslt-dev jpeg-dev libpng-dev \
pankso@16258 21 glib-dev sqlite-dev gnutls-dev xorg-libXdamage-dev acl-dev libsoup-dev \
pankso@16258 22 libxml2-dev libxcb-dev xcb-util-dev util-linux-uuid-dev zlib-dev \
pankso@16258 23 libtasn1-dev glib-networking-dev"
pankso@16258 24
pascal@24768 25 # What is the latest version available today?
pascal@24072 26 current_version()
pascal@24072 27 {
pascal@24072 28 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24072 29 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24072 30 }
pascal@24072 31
pankso@16258 32 # Handle cross compilation.
pankso@16258 33 case "$ARCH" in
pankso@16258 34 i?86)
pankso@16258 35 BUILD_DEPENDS="$BUILD_DEPENDS tar gettext m4 bison flex gperf
pankso@16258 36 autoconf automake gtk-doc libtool" ;;
pankso@16258 37 esac
slaxemulator@8530 38
mallory@3146 39 # Rules to configure and make the package.
mallory@3146 40 compile_rules()
mallory@3146 41 {
domcox@12888 42 # libwebkit does not like parallel builds.
domcox@12888 43 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/')
domcox@14105 44 # fix Bug 84526: webkit-gtk-1.8.0 fails to build with --disable-video
domcox@14105 45 # Build fix with newer bison 2.6
pankso@16258 46 if [ ! "$continue" ]; then
pankso@16258 47 for file_diff in $stuff/*.diff; do
pankso@16258 48 echo -n "Applying patch $(basename $file_diff)"
pankso@16258 49 patch -Np1 -i $file_diff > /dev/null
pankso@16258 50 status
pankso@16258 51 done
pankso@16258 52 patch -p0 < $stuff/CodeGeneratorGObject-bug-84526.patch || exit 1
pankso@16258 53 fi
pascal@24768 54 # Build fix with newer bison 3
pascal@24768 55 sed -i 's|%pure_parser|%define api.pure|' Source/WebCore/css/CSSGrammar.y
pascal@24768 56 sed -i '/\$(AM_V_at)rm -f/d' GNUmakefile* Source/WebCore/GNUmakefile*
domcox@14105 57 # Build
mallory@3146 58 ./configure \
slaxemulator@11247 59 --enable-introspection=no \
slaxemulator@8530 60 --enable-video=no \
slaxemulator@6466 61 --enable-jit=yes \
domcox@12888 62 --disable-webgl \
domcox@12888 63 --disable-geolocation \
slaxemulator@11247 64 --with-unicode-backend=glib \
slaxemulator@11247 65 --with-gtk=2.0 \
domcox@12888 66 --disable-gtk-doc \
slaxemulator@11247 67 $CONFIGURE_ARGS &&
pascal@15174 68 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing &&
pankso@16258 69 make install 2>&1 | \
pankso@16258 70 grep -Ev '(/usr/share/gtk-doc/html|Documentation/webkitgtk/version.xml)' &&
slaxemulator@8530 71 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
mallory@3146 72 }
mallory@3146 73
mallory@3146 74 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@3146 75 genpkg_rules()
mallory@3146 76 {
pankso@16258 77 mkdir -p $fs/usr/lib
pascal@15174 78 cp -a $install/usr/lib/*.so* $fs/usr/lib
mallory@3146 79 }