wok-next view libwebkit/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents 7eb047d2b438
children c4e53a39395a
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 libpng16-dev \
16 glib-dev sqlite3-dev gnutls-dev xorg-libXdamage-dev acl-dev libsoup-dev \
17 libxml2-dev xorg-libxcb-dev xorg-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
36 ./configure \
37 --enable-introspection=no \
38 --enable-video=no \
39 --enable-jit=yes \
40 --disable-webgl \
41 --disable-geolocation \
42 --with-unicode-backend=glib \
43 --with-gtk=2.0 \
44 --disable-gtk-doc \
45 $CONFIGURE_ARGS &&
46 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing &&
47 make install 2>&1 | \
48 grep -Ev '(/usr/share/gtk-doc/html|Documentation/webkitgtk/version.xml)' &&
49 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 case $PACKAGE in
56 libwebkit)
57 DEPENDS="gtk+ enchant libxslt expat gtk+ jpeg libpng16 libxml2 \
58 sqlite3 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau \
59 xorg-libXcomposite xorg-libXcursor xorg-libXdmcp \
60 xorg-libXext xorg-libXfixes xorg-libXinerama \
61 xorg-libXrandr xorg-libXrender xorg-libXt acl \
62 xorg-libXdamage libsoup gcc-lib-base libtasn1 \
63 util-linux-uuid glib-networking"
64 mkdir -p $fs/usr/lib
65 cp -a $install/usr/lib/*.so* $fs/usr/lib
66 ;;
67 libwebkit-dev)
68 CAT="development|devel files for libwebkit"
69 DEPENDS="libwebkit libsoup-dev enchant-dev libtasn1-dev \
70 sqlite3-dev xorg-libXt-dev"
71 mkdir -p $fs/usr/lib $fs/usr/share
72 cp -a $install/usr/lib/*.*a $fs/usr/lib
73 # ARM: no pkg-config, include or gir files
74 case "$ARCH" in
75 i?86)
76 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
77 cp -a $install/usr/include $fs/usr
78 cp -a $install/usr/share/webkitgtk-1.0 $fs/usr/share
79 # webkitgtk-1.0.pc
80 if [ -f $fs/usr/lib/pkgconfig/webkit-1.0.pc ]; then
81 ln -sf /usr/lib/pkgconfig/webkit-1.0.pc \
82 $fs/usr/lib/pkgconfig/webkitgtk-1.0.pc
83 fi ;;
84 esac
85 ;;
86 webkit-web-inspector)
87 CAT="network|Webkit development tools"
88 DEPENDS="libwebkit"
89 mkdir -p $fs/usr/share
90 cp -a $install/usr/bin $fs/usr/
91 cp -a $install/usr/share/webkitgtk-1.0 $fs/usr/share
92 ;;
93 esac
94 }