wok-next view libwebkit/receipt @ rev 20621

Add: fluxcomp, ldns, libndp, libnsl, nghttp2; up: directfb, libevent, libnl, libsoup, links, neon, serf
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Apr 25 13:24:59 2018 +0300 (2018-04-25)
parents c4e53a39395a
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libwebkit"
4 VERSION="1.8.3"
5 CATEGORY="network"
6 SHORT_DESC="xHTML render library."
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="LGPL2"
9 SOURCE="webkit"
10 TARBALL="$SOURCE-$VERSION.tar.xz"
11 WEB_SITE="http://webkitgtk.org"
12 WGET_URL="$WEB_SITE/releases/$TARBALL"
14 BUILD_DEPENDS="gtk+-dev enchant-dev libxslt-dev jpeg-dev libpng16-dev \
15 glib-dev sqlite3-dev gnutls-dev xorg-libXdamage-dev acl-dev libsoup-dev \
16 libxml2-dev xorg-libxcb-dev xorg-xcb-util-dev util-linux-uuid-dev zlib-dev \
17 libtasn1-dev glib-networking xorg-libXt-dev"
18 SPLIT="libwebkit libwebkit-dev webkit-web-inspector"
20 # Handle cross compilation.
21 case "$ARCH" in
22 i?86)
23 BUILD_DEPENDS="$BUILD_DEPENDS tar gettext m4 bison flex gperf
24 autoconf automake gtk-doc libtool" ;;
25 esac
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export CXXFLAGS="$CXXFLAGS -std=gnu++98"
31 # libwebkit does not like parallel builds.
32 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/')
33 # fix Bug 84526: webkit-gtk-1.8.0 fails to build with --disable-video
34 # Build
35 ./configure \
36 --enable-introspection=no \
37 --enable-video=no \
38 --enable-jit=yes \
39 --disable-webgl \
40 --disable-geolocation \
41 --with-unicode-backend=glib \
42 --with-gtk=2.0 \
43 --disable-gtk-doc \
44 $CONFIGURE_ARGS &&
45 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing &&
46 make install 2>&1 | \
47 grep -Ev '(/usr/share/gtk-doc/html|Documentation/webkitgtk/version.xml)' &&
48 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 case $PACKAGE in
55 libwebkit)
56 DEPENDS="gtk+ enchant libxslt expat gtk+ jpeg libpng16 libxml2 \
57 sqlite3 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \
58 xorg-libXcomposite xorg-libXcursor xorg-libXdmcp \
59 xorg-libXext xorg-libXfixes xorg-libXinerama \
60 xorg-libXrandr xorg-libXrender xorg-libXt acl \
61 xorg-libXdamage libsoup gcc-lib-base libtasn1 \
62 util-linux-uuid glib-networking"
63 mkdir -p $fs/usr/lib
64 cp -a $install/usr/lib/*.so* $fs/usr/lib
65 ;;
66 libwebkit-dev)
67 CAT="development|devel files for libwebkit"
68 DEPENDS="libwebkit libsoup-dev enchant-dev libtasn1-dev \
69 sqlite3-dev xorg-libXt-dev"
70 mkdir -p $fs/usr/lib $fs/usr/share
71 cp -a $install/usr/lib/*.*a $fs/usr/lib
72 # ARM: no pkg-config, include or gir files
73 case "$ARCH" in
74 i?86)
75 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
76 cp -a $install/usr/include $fs/usr
77 cp -a $install/usr/share/webkitgtk-1.0 $fs/usr/share
78 # webkitgtk-1.0.pc
79 if [ -f $fs/usr/lib/pkgconfig/webkit-1.0.pc ]; then
80 ln -sf /usr/lib/pkgconfig/webkit-1.0.pc \
81 $fs/usr/lib/pkgconfig/webkitgtk-1.0.pc
82 fi ;;
83 esac
84 ;;
85 webkit-web-inspector)
86 CAT="network|Webkit development tools"
87 DEPENDS="libwebkit"
88 mkdir -p $fs/usr/share
89 cp -a $install/usr/bin $fs/usr/
90 cp -a $install/usr/share/webkitgtk-1.0 $fs/usr/share
91 ;;
92 esac
93 }