wok-next annotate webkit2gtk/receipt @ rev 20212

Up consonance (0.5.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 04 18:41:56 2017 +0100 (2017-11-04)
parents
children 6477d7f70481
rev   line source
al@19893 1 # SliTaz package receipt v2.
al@19893 2
al@19893 3 PACKAGE="webkit2gtk"
al@19893 4 VERSION="2.16.6"
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@19893 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/x/webkitgtk.html"
al@19893 11
al@19893 12 TARBALL="webkitgtk-$VERSION.tar.xz"
al@19893 13 WGET_URL="http://webkitgtk.org/releases/$TARBALL"
al@19893 14
al@19893 15 BUILD_DEPENDS="cmake gperf perl python ruby-dev cairo-dev gnutls-dev gtk+3-dev \
al@19893 16 harfbuzz-icu-dev libjpeg-turbo-dev libsoup-dev libxslt-dev libsecret-dev \
al@19893 17 libwebp-dev mesa-dev gtk+-dev enchant-dev gst1-plugins-base-dev \
al@19893 18 libnotify-dev gettext"
al@19893 19 SPLIT="webkit2gtk-dev"
al@19893 20
al@19893 21 compile_rules() {
al@19893 22 mkdir -p build &&
al@19893 23 cd build &&
al@19893 24
al@19893 25 CFLAGS=-Wno-expansion-to-defined \
al@19893 26 CXXFLAGS=-Wno-expansion-to-defined \
al@19893 27 cmake \
al@19893 28 -DCMAKE_BUILD_TYPE=Release \
al@19893 29 -DCMAKE_INSTALL_PREFIX=/usr \
al@19893 30 -DCMAKE_SKIP_RPATH=ON \
al@19893 31 -DPORT=GTK \
al@19893 32 -DLIB_INSTALL_DIR=/usr/lib \
al@19893 33 -DUSE_LIBHYPHEN=OFF \
al@19893 34 -DENABLE_MINIBROWSER=ON \
al@19893 35 -Wno-dev \
al@19893 36 \
al@19893 37 -DENABLE_GEOLOCATION=OFF \
al@19893 38 -DENABLE_QUARTZ_TARGET=OFF \
al@19893 39 -DENABLE_WAYLAND_TARGET=OFF \
al@19893 40 -DENABLE_INTROSPECTION=OFF \
al@19893 41 .. &&
al@19893 42 make &&
al@19893 43 make install || return 1
al@19893 44
al@19893 45 for i in 2 dom; do
al@19893 46 j="$install/usr/share/gtk-doc/html/webkit${i}gtk-4.0"
al@19893 47 mkdir -p $j
al@19893 48 cp -a ../Documentation/webkit${i}gtk-4.0/html/* $j
al@19893 49 done
al@19893 50 }
al@19893 51
al@19893 52 genpkg_rules() {
al@19893 53 case $PACKAGE in
al@19893 54 webkit2gtk)
al@19893 55 copy @std
al@19893 56 DEPENDS="atk cairo enchant fontconfig freetype gdk-pixbuf glib \
al@19893 57 gst1-plugins-base gstreamer1 gtk+ gtk+3 icu libgcrypt libharfbuzz \
al@19893 58 libharfbuzz-icu libicu libjpeg-turbo libnotify libpng16 libsecret \
al@19893 59 libsoup libsqlite3 libwebp libxml2 libxslt mesa mesa-libegl pango \
al@19893 60 xorg-libX11 xorg-libXcomposite xorg-libXdamage xorg-libXrender \
al@19893 61 xorg-libXt zlib"
al@19893 62 ;;
al@19893 63 *-dev)
al@19893 64 copy @dev
al@19893 65 DEPENDS="webkit2gtk glib-dev gtk+3-dev libsoup-dev"
al@19893 66 ;;
al@19893 67 esac
al@19893 68 }