wok-next view webkit2gtk/receipt @ rev 21727

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