wok annotate libwebkit-video/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
rev   line source
pascal@11624 1 # SliTaz package receipt.
pascal@11624 2
pascal@11624 3 PACKAGE="libwebkit-video"
psychomaniak@16866 4 VERSION="1.8.3"
pascal@11624 5 CATEGORY="network"
pascal@11624 6 SHORT_DESC="xHTML render library."
pascal@11624 7 MAINTAINER="mallory@sweetpeople.org"
pascal@15482 8 LICENSE="LGPL2"
psychomaniak@16866 9 SOURCE="webkit"
domcox@12890 10 TARBALL="$SOURCE-$VERSION.tar.xz"
pascal@20671 11 WEB_SITE="https://webkitgtk.org"
pascal@12892 12 WGET_URL="$WEB_SITE/releases/$TARBALL"
pascal@18802 13 PROVIDE="libwebkit"
pascal@11624 14
pascal@11624 15 DEPENDS="gtk+ enchant libxslt expat gtk+ jpeg libpng libxml2 sqlite \
pascal@11624 16 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \
pascal@11624 17 xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama \
pascal@11624 18 xorg-libXrandr xorg-libXrender xorg-libXt acl xorg-libXdamage libsoup \
domcox@14107 19 gcc-lib-base libtasn1 util-linux-uuid glib-networking gst-plugins-base"
pascal@11624 20 BUILD_DEPENDS="gtk+-dev enchant enchant-dev gperf libxslt-dev jpeg-dev \
pascal@11624 21 libpng-dev glib-dev autoconf automake gnutls-dev sqlite-dev libtool \
pascal@11624 22 m4 bison flex xorg-libXdamage-dev acl-dev libsoup-dev libxml2-dev \
pankso@12481 23 libxcb-dev xcb-util-dev util-linux-uuid-dev zlib-dev libtasn1-dev \
domcox@14491 24 gobject-introspection-dev tar gettext glib-networking-dev gtk-doc \
psychomaniak@16891 25 gstreamer-dev gst-plugins-base-dev"
domcox@14107 26 SUGGESTED="gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-ffmpeg"
pascal@11624 27
pascal@24768 28 # What is the latest version available today?
pascal@24072 29 current_version()
pascal@24072 30 {
pascal@24072 31 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24072 32 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24072 33 }
pascal@24072 34
pascal@11624 35 # Rules to configure and make the package.
pascal@11624 36 compile_rules()
pascal@11624 37 {
pascal@11624 38 cd $src
domcox@12890 39 # libwebkit does not like parallel builds.
domcox@12890 40 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/')
psychomaniak@16866 41 # Build fix with newer bison 2.6
psychomaniak@16866 42 for file_diff in $stuff/*.diff; do
psychomaniak@16866 43 echo -n "Applying patch $(basename $file_diff)"
psychomaniak@16866 44 patch -Np1 -i $file_diff > /dev/null
psychomaniak@16866 45 status
psychomaniak@16866 46 done
psychomaniak@16866 47 touch Documentation/webkitgtk/version.xml
pascal@24768 48 # Build fix with newer bison 3
pascal@24768 49 sed -i 's|%pure_parser|%define api.pure|' Source/WebCore/css/CSSGrammar.y
pascal@24768 50 sed -i '/\$(AM_V_at)rm -f/d' GNUmakefile* Source/WebCore/GNUmakefile*
domcox@14107 51 # Build
pascal@11624 52 ./configure \
pascal@11624 53 --prefix=/usr \
pascal@11624 54 --infodir=/usr/share/info \
pascal@11624 55 --mandir=/usr/share/man \
pascal@11624 56 --enable-introspection=no \
pascal@11624 57 --enable-video=yes \
pascal@11624 58 --enable-jit=yes \
domcox@12890 59 --disable-webgl \
domcox@12890 60 --disable-geolocation \
pascal@11624 61 --with-unicode-backend=glib \
pascal@11624 62 --with-gtk=2.0 \
domcox@14107 63 --disable-webkit2 \
psychomaniak@16892 64 --disable-gtk-doc-html \
pascal@11624 65 $CONFIGURE_ARGS &&
pascal@14492 66 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing &&
pascal@14492 67 make DESTDIR=$DESTDIR install 2>&1 | grep -v /usr/share/gtk-doc/html/ &&
pascal@11624 68 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
pascal@11624 69 }
pascal@11624 70
pascal@11624 71 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11624 72 genpkg_rules()
pascal@11624 73 {
pascal@11624 74 mkdir -p $fs/usr/lib $fs/usr/bin
pascal@15482 75 [ -d $install/usr/lib/girepository-1.0 ] &&
pascal@15482 76 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
pascal@15482 77 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@11624 78 }