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