wok view libwebkit-video/receipt @ rev 25231

updated python-pytz (2019.3 -> 2021.3)
author Hans-G?nter Theisgen
date Wed Jul 13 17:07:13 2022 +0100 (2022-07-13)
parents 5d79829fa876
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libwebkit-video"
4 VERSION="1.8.3"
5 CATEGORY="network"
6 SHORT_DESC="xHTML render library."
7 MAINTAINER="mallory@sweetpeople.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 PROVIDE="libwebkit"
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 gst-plugins-base"
20 BUILD_DEPENDS="gtk+-dev enchant enchant-dev gperf libxslt-dev jpeg-dev \
21 libpng-dev glib-dev autoconf automake gnutls-dev sqlite-dev libtool \
22 m4 bison flex xorg-libXdamage-dev acl-dev libsoup-dev libxml2-dev \
23 libxcb-dev xcb-util-dev util-linux-uuid-dev zlib-dev libtasn1-dev \
24 gobject-introspection-dev tar gettext glib-networking-dev gtk-doc \
25 gstreamer-dev gst-plugins-base-dev"
26 SUGGESTED="gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-ffmpeg"
28 # What is the latest version available today?
29 current_version()
30 {
31 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
32 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
33 }
35 # Rules to configure and make the package.
36 compile_rules()
37 {
38 cd $src
39 # libwebkit does not like parallel builds.
40 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/')
41 # Build fix with newer bison 2.6
42 for file_diff in $stuff/*.diff; do
43 echo -n "Applying patch $(basename $file_diff)"
44 patch -Np1 -i $file_diff > /dev/null
45 status
46 done
47 touch Documentation/webkitgtk/version.xml
48 # Build fix with newer bison 3
49 sed -i 's|%pure_parser|%define api.pure|' Source/WebCore/css/CSSGrammar.y
50 sed -i '/\$(AM_V_at)rm -f/d' GNUmakefile* Source/WebCore/GNUmakefile*
51 # Build
52 ./configure \
53 --prefix=/usr \
54 --infodir=/usr/share/info \
55 --mandir=/usr/share/man \
56 --enable-introspection=no \
57 --enable-video=yes \
58 --enable-jit=yes \
59 --disable-webgl \
60 --disable-geolocation \
61 --with-unicode-backend=glib \
62 --with-gtk=2.0 \
63 --disable-webkit2 \
64 --disable-gtk-doc-html \
65 $CONFIGURE_ARGS &&
66 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing &&
67 make DESTDIR=$DESTDIR install 2>&1 | grep -v /usr/share/gtk-doc/html/ &&
68 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
69 }
71 # Rules to gen a SliTaz package suitable for Tazpkg.
72 genpkg_rules()
73 {
74 mkdir -p $fs/usr/lib $fs/usr/bin
75 [ -d $install/usr/lib/girepository-1.0 ] &&
76 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
77 cp -a $install/usr/lib/*.so* $fs/usr/lib
78 }