wok-next view libwebkit/receipt @ rev 20280
remove cyrus-sasl-pam, libsasl-without-ldap, enlightenment-pam, enlightenment-backgrounds, libcap-pam
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 08 14:41:47 2017 +0100 (2017-11-08) |
parents | 2809ecb8c754 |
children | 191c68e928af |
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"
13 HOST_ARCH="i486 arm"
15 BUILD_DEPENDS="gtk+-dev enchant-dev libxslt-dev jpeg-dev libpng-dev \
16 glib-dev sqlite3-dev gnutls-dev xorg-libXdamage-dev acl-dev libsoup-dev \
17 libxml2-dev libxcb-dev xcb-util-dev util-linux-uuid-dev zlib-dev \
18 libtasn1-dev glib-networking-dev xorg-libXt-dev"
19 SPLIT="libwebkit libwebkit-dev webkit-web-inspector"
21 # Handle cross compilation.
22 case "$ARCH" in
23 i?86)
24 BUILD_DEPENDS="$BUILD_DEPENDS tar gettext m4 bison flex gperf
25 autoconf automake gtk-doc libtool" ;;
26 esac
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 export CXXFLAGS="$CXXFLAGS -std=gnu++98"
32 # libwebkit does not like parallel builds.
33 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/')
34 # fix Bug 84526: webkit-gtk-1.8.0 fails to build with --disable-video
35 # Build fix with newer bison 2.6
36 if [ ! "$continue" ]; then
37 for file_diff in $stuff/*.diff; do
38 echo -n "Applying patch $(basename $file_diff)"
39 patch -Np1 -i $file_diff > /dev/null
40 status
41 done
42 patch -p0 < $stuff/CodeGeneratorGObject-bug-84526.patch || exit 1
43 fi
44 # Build
45 ./configure \
46 --enable-introspection=no \
47 --enable-video=no \
48 --enable-jit=yes \
49 --disable-webgl \
50 --disable-geolocation \
51 --with-unicode-backend=glib \
52 --with-gtk=2.0 \
53 --disable-gtk-doc \
54 $CONFIGURE_ARGS &&
55 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing &&
56 make install 2>&1 | \
57 grep -Ev '(/usr/share/gtk-doc/html|Documentation/webkitgtk/version.xml)' &&
58 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 case $PACKAGE in
65 libwebkit)
66 DEPENDS="gtk+ enchant libxslt expat gtk+ jpeg libpng libxml2 \
67 sqlite3 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \
68 xorg-libXcomposite xorg-libXcursor xorg-libXdmcp \
69 xorg-libXext xorg-libXfixes xorg-libXinerama \
70 xorg-libXrandr xorg-libXrender xorg-libXt acl \
71 xorg-libXdamage libsoup gcc-lib-base libtasn1 \
72 util-linux-uuid glib-networking"
73 mkdir -p $fs/usr/lib
74 cp -a $install/usr/lib/*.so* $fs/usr/lib
75 ;;
76 libwebkit-dev)
77 CAT="development|devel files for libwebkit"
78 DEPENDS="libwebkit libsoup-dev enchant-dev libtasn1-dev sqlite3-dev"
79 mkdir -p $fs/usr/lib $fs/usr/share
80 cp -a $install/usr/lib/*.*a $fs/usr/lib
81 # ARM: no pkg-config, include or gir files
82 case "$ARCH" in
83 i?86)
84 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
85 cp -a $install/usr/include $fs/usr
86 cp -a $install/usr/share/webkitgtk-1.0 $fs/usr/share
87 # webkitgtk-1.0.pc
88 if [ -f $fs/usr/lib/pkgconfig/webkit-1.0.pc ]; then
89 ln -sf /usr/lib/pkgconfig/webkit-1.0.pc \
90 $fs/usr/lib/pkgconfig/webkitgtk-1.0.pc
91 fi ;;
92 esac
93 ;;
94 webkit-web-inspector)
95 CAT="network|Webkit development tools"
96 DEPENDS="libwebkit"
97 mkdir -p $fs/usr/share
98 cp -a $install/usr/bin $fs/usr/
99 cp -a $install/usr/share/webkitgtk-1.0 $fs/usr/share
100 ;;
101 esac
102 }