wok-next annotate webkit2gtk/receipt @ rev 21722

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents 82b613cfd1e0
children
rev   line source
al@19893 1 # SliTaz package receipt v2.
al@19893 2
al@19893 3 PACKAGE="webkit2gtk"
al@21156 4 VERSION="2.22.5"
al@19893 5 CATEGORY="network"
al@19893 6 SHORT_DESC="Port of web rendering engine WebKit to the GTK+ platform"
al@19893 7 MAINTAINER="al.bobylev@gmail.com"
al@19893 8 LICENSE="custom"
al@19893 9 WEB_SITE="https://webkitgtk.org/"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/webkitgtk.html"
al@20888 11 REPOLOGY="webkitgtk"
al@19893 12
al@19893 13 TARBALL="webkitgtk-$VERSION.tar.xz"
al@19893 14 WGET_URL="http://webkitgtk.org/releases/$TARBALL"
al@21156 15 TARBALL_SHA1="809b067a1672a81a4ce31363a0872c668cc72953"
al@19893 16
al@21156 17 BUILD_DEPENDS="cmake ninja gperf perl python ruby-dev cairo-dev gnutls-dev \
al@21156 18 gtk3-dev harfbuzz-icu-dev libjpeg-turbo-dev libsoup-dev libxslt-dev \
al@21156 19 libsecret-dev libwebp-dev mesa-dev gtk2-dev enchant-dev gst1-plugins-base-dev \
al@21156 20 libnotify-dev gettext-dev sqlite3-dev libxt-dev woff2-dev"
al@21156 21 SPLIT="$PACKAGE-dev $PACKAGE-lang"
al@19893 22
al@21156 23 DEPENDS_std="atk enchant fontconfig freetype gdk-pixbuf glib gst1-plugins-base \
al@21156 24 gstreamer1 gtk2 gtk3 icu libcairo libgcrypt libharfbuzz libharfbuzz-icu libicu \
al@21156 25 libjpeg-turbo libnotify libpng libsecret libsoup libsqlite3 libtasn1 libwebp \
al@21156 26 libx11 libxcomposite libxdamage libxml2 libxslt mesa mesa-libegl pango woff2 \
al@21156 27 zlib"
al@21156 28 DEPENDS_dev="$PACKAGE glib-dev gtk3-dev libsoup-dev"
al@20902 29
al@19893 30 compile_rules() {
al@21156 31 CFLAGS="${CFLAGS/-Os/-O2}"
al@21156 32 CXXFLAGS="${CXXFLAGS/-Os/-O2}"
al@21156 33 LDFLAGS="${LDFLAGS/-Os/-O2}"
al@21156 34
al@21156 35 # use ld.gold instead of ld.bfd
al@21156 36 my_ld_orig="$(readlink /usr/bin/ld)"
al@21156 37 ln -sf "$(readlink /usr/bin/ld.gold)" /usr/bin/ld
al@21156 38
al@21156 39 mkdir -p build
al@21156 40 cd build
al@19893 41
al@19893 42 CFLAGS=-Wno-expansion-to-defined \
al@19893 43 CXXFLAGS=-Wno-expansion-to-defined \
al@19893 44 cmake \
al@19893 45 -DCMAKE_BUILD_TYPE=Release \
al@19893 46 -DCMAKE_INSTALL_PREFIX=/usr \
al@19893 47 -DCMAKE_SKIP_RPATH=ON \
al@19893 48 -DPORT=GTK \
al@19893 49 -DLIB_INSTALL_DIR=/usr/lib \
al@19893 50 -DUSE_LIBHYPHEN=OFF \
al@19893 51 -DENABLE_MINIBROWSER=ON \
al@19893 52 -Wno-dev \
al@19893 53 \
al@19893 54 -DENABLE_GEOLOCATION=OFF \
al@19893 55 -DENABLE_QUARTZ_TARGET=OFF \
al@19893 56 -DENABLE_WAYLAND_TARGET=OFF \
al@19893 57 -DENABLE_INTROSPECTION=OFF \
al@21156 58 -G Ninja \
al@19893 59 .. &&
al@21156 60 ninja -j1 &&
al@21156 61 ninja -j1 install || return 1
al@19893 62
al@19893 63 for i in 2 dom; do
al@19893 64 j="$install/usr/share/gtk-doc/html/webkit${i}gtk-4.0"
al@19893 65 mkdir -p $j
al@21156 66 cp -r ../Documentation/webkit${i}gtk-4.0/html/* $j
al@19893 67 done
al@21156 68
al@21156 69 # revert ld (anyway we working in AUFS and it will revert automatically)
al@21156 70 ln -sf "$my_ld_orig" /usr/bin/ld
al@19893 71 }