wok-next view webkit2gtk/receipt @ rev 21063

Up gdbm (1.18.1)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Dec 05 13:28:22 2018 +0200 (2018-12-05)
parents f48456621a9d
children 5669e8b3be70
line source
1 # SliTaz package receipt v2.
3 PACKAGE="webkit2gtk"
4 VERSION="2.16.6"
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"
16 BUILD_DEPENDS="cmake gperf perl python ruby-dev cairo-dev gnutls-dev gtk3-dev \
17 harfbuzz-icu-dev libjpeg-turbo-dev libsoup-dev libxslt-dev libsecret-dev \
18 libwebp-dev mesa-dev gtk2-dev enchant-dev gst1-plugins-base-dev \
19 libnotify-dev gettext-dev sqlite3-dev xorg-libXt-dev"
20 SPLIT="$PACKAGE-dev"
22 CFLAGS="${CFLAGS/-Os/-O2}"
23 CXXFLAGS="${CXXFLAGS/-Os/-O2}"
24 LDFLAGS="${LDFLAGS/-Os/-O2}"
26 compile_rules() {
27 fix math
28 mkdir build
29 cd build
31 CFLAGS=-Wno-expansion-to-defined \
32 CXXFLAGS=-Wno-expansion-to-defined \
33 cmake \
34 -DCMAKE_BUILD_TYPE=Release \
35 -DCMAKE_INSTALL_PREFIX=/usr \
36 -DCMAKE_SKIP_RPATH=ON \
37 -DPORT=GTK \
38 -DLIB_INSTALL_DIR=/usr/lib \
39 -DUSE_LIBHYPHEN=OFF \
40 -DENABLE_MINIBROWSER=ON \
41 -Wno-dev \
42 \
43 -DENABLE_GEOLOCATION=OFF \
44 -DENABLE_QUARTZ_TARGET=OFF \
45 -DENABLE_WAYLAND_TARGET=OFF \
46 -DENABLE_INTROSPECTION=OFF \
47 .. &&
48 make &&
49 make install || return 1
51 for i in 2 dom; do
52 j="$install/usr/share/gtk-doc/html/webkit${i}gtk-4.0"
53 mkdir -p $j
54 cp -a ../Documentation/webkit${i}gtk-4.0/html/* $j
55 done
56 }
58 genpkg_rules() {
59 case $PACKAGE in
60 webkit2gtk)
61 copy @std
62 DEPENDS="atk cairo enchant fontconfig freetype gdk-pixbuf glib \
63 gst1-plugins-base gstreamer1 gtk2 gtk3 icu libgcrypt libharfbuzz \
64 libharfbuzz-icu libicu libjpeg-turbo libnotify libpng16 libsecret \
65 libsoup libsqlite3 libwebp libxml2 libxslt mesa mesa-libegl pango \
66 xorg-libX11 xorg-libXcomposite xorg-libXdamage xorg-libXrender \
67 xorg-libXt zlib"
68 ;;
69 *-dev)
70 copy @dev
71 DEPENDS="webkit2gtk glib-dev gtk3-dev libsoup-dev"
72 ;;
73 esac
74 }