wok-current view webkitgtk/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | a23978bfa665 |
children | d97d78e26e6d |
line source
1 # SliTaz package receipt.
3 PACKAGE="webkitgtk"
4 VERSION="2.4.11"
5 CATEGORY="network"
6 SHORT_DESC="xHTML render library."
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="LGPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://webkitgtk.org"
11 WGET_URL="$WEB_SITE/releases/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="gtk+ enchant libxslt expat gtk+ jpeg libpng libxml2 sqlite \
15 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \
16 xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama \
17 xorg-libXrandr xorg-libXrender xorg-libXt acl xorg-libXdamage libsoup \
18 gcc-lib-base libtasn1 util-linux-uuid glib-networking harfbuzz-icu \
19 libegl-mesa libwebp libsecret gstreamer-1.0 gst-plugins-base-1.0 libatomic"
20 BUILD_DEPENDS="autoconf automake115 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 ruby-dev icu-dev harfbuzz-icu-dev mesa-dev \
24 libglu-mesa-dev libglw-mesa-dev libegl-mesa libwebp-dev libsecret-dev \
25 gstreamer-1.0-dev gst-plugins-base-1.0-dev"
27 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
31 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
32 }
34 # Handle cross compilation.
35 case "$ARCH" in
36 i?86)
37 BUILD_DEPENDS="$BUILD_DEPENDS tar gettext m4 bison flex gperf
38 autoconf automake115 gtk-doc libtool" ;;
39 esac
41 # Rules to configure and make the package.
42 compile_rules()
43 {
44 # libwebkit does not like parallel builds.
45 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/')
47 # Patch with new icu
48 patch -p1 < $stuff/webkitgtk-JSStringRef-typedef.patch
49 patch -p1 < $stuff/webkitgtk-fix-platform-graphics.patch
50 # see https://bugs.gentoo.org/751943
51 patch -p1 < $stuff/webkitgtk-fix-icu.patch
52 patch -p1 < $stuff/webkitgtk-fix-icu-2.patch
53 # fix abs
54 patch -p1 < $stuff/webkitgtk-fix-abs.patch
55 # Fix toRenderBox see https://bugs.gentoo.org/579350
56 patch -p1 < $stuff/webkitgtk-fix-renderbox.patch
57 # Patch with new glib / enchant-2
58 # see https://aur.archlinux.org/cgit/aur.git/tree/?h=webkitgtk
59 patch -p1 < $stuff/webkitgtk-fix-enchant2.patch
60 patch -p1 < $stuff/webkitgtk-fix-glib-2.68.0.patch
62 # Build fix
63 patch -p1 < $stuff/webkitgtk-fix-glib-min.patch
65 # Build fix with newer bison 3
66 sed -i 's|%pure_parser|%define api.pure|' Source/WebCore/css/CSSGrammar.y.in
67 patch -p1 < $stuff/webkitgtk-fix-grammar.patch
69 # Silence harmless warnings
70 export CFLAGS="$CFLAGS -Wno-error=deprecated-declarations \
71 -Wno-error=format-security -Wno-unused-local-typedefs"
72 export CXXFLAGS="$CXXFLAGS -Wno-unused-local-typedefs \
73 -Wno-error=deprecated-declarations -Wno-error=format-security"
75 # Build
76 ./configure \
77 --enable-introspection=no \
78 --enable-video=yes \
79 --enable-jit=yes \
80 --enable-webgl \
81 --disable-geolocation \
82 --enable-silent-rules \
83 --with-gtk=2.0 \
84 --disable-webkit2 \
85 --disable-gtk-doc \
86 $CONFIGURE_ARGS &&
88 # https://bugzilla.gnome.org/show_bug.cgi?id=655517
89 sed -i 's| -shared | -Wl,-O1,--as-needed\0|g' libtool
91 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing &&
92 make install 2>&1 | \
93 grep -Ev '(/usr/share/gtk-doc/html|Documentation/webkitgtk/version.xml)' &&
94 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
95 }
97 # Rules to gen a SliTaz package suitable for Tazpkg.
98 genpkg_rules()
99 {
100 mkdir -p $fs/usr/lib
101 cp -a $install/usr/lib/*.so* $fs/usr/lib
102 }