wok-next annotate libwebkit/receipt @ rev 18627
syslinux/taziso/showfavinfo: show receipt
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 24 14:51:11 2015 +0100 (2015-11-24) |
parents | 8d6f480bf664 |
children | 27faa9329de6 |
rev | line source |
---|---|
mallory@3146 | 1 # SliTaz package receipt. |
mallory@3146 | 2 |
mallory@3146 | 3 PACKAGE="libwebkit" |
domcox@14105 | 4 VERSION="1.8.3" |
mallory@3146 | 5 CATEGORY="network" |
mallory@3146 | 6 SHORT_DESC="xHTML render library." |
pankso@16258 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15482 | 8 LICENSE="LGPL2" |
pankso@10801 | 9 SOURCE="webkit" |
domcox@12888 | 10 TARBALL="$SOURCE-$VERSION.tar.xz" |
samuel_trassare@11907 | 11 WEB_SITE="http://webkitgtk.org" |
pascal@12892 | 12 WGET_URL="$WEB_SITE/releases/$TARBALL" |
pankso@16258 | 13 HOST_ARCH="i486 arm" |
pankso@10801 | 14 |
slaxemulator@5372 | 15 DEPENDS="gtk+ enchant libxslt expat gtk+ jpeg libpng libxml2 sqlite \ |
slaxemulator@5372 | 16 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \ |
pankso@10801 | 17 xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama \ |
pankso@10801 | 18 xorg-libXrandr xorg-libXrender xorg-libXt acl xorg-libXdamage libsoup \ |
pankso@12481 | 19 gcc-lib-base libtasn1 util-linux-uuid glib-networking" |
pankso@16258 | 20 BUILD_DEPENDS="gtk+-dev enchant-dev libxslt-dev jpeg-dev libpng-dev \ |
pankso@16258 | 21 glib-dev sqlite-dev gnutls-dev xorg-libXdamage-dev acl-dev libsoup-dev \ |
pankso@16258 | 22 libxml2-dev libxcb-dev xcb-util-dev util-linux-uuid-dev zlib-dev \ |
pankso@16258 | 23 libtasn1-dev glib-networking-dev" |
pankso@16258 | 24 |
pankso@16258 | 25 # Handle cross compilation. |
pankso@16258 | 26 case "$ARCH" in |
pankso@16258 | 27 i?86) |
pankso@16258 | 28 BUILD_DEPENDS="$BUILD_DEPENDS tar gettext m4 bison flex gperf |
pankso@16258 | 29 autoconf automake gtk-doc libtool" ;; |
pankso@16258 | 30 esac |
slaxemulator@8530 | 31 |
mallory@3146 | 32 # Rules to configure and make the package. |
mallory@3146 | 33 compile_rules() |
mallory@3146 | 34 { |
domcox@12888 | 35 # libwebkit does not like parallel builds. |
domcox@12888 | 36 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/') |
domcox@14105 | 37 # fix Bug 84526: webkit-gtk-1.8.0 fails to build with --disable-video |
domcox@14105 | 38 # Build fix with newer bison 2.6 |
pankso@16258 | 39 if [ ! "$continue" ]; then |
pankso@16258 | 40 for file_diff in $stuff/*.diff; do |
pankso@16258 | 41 echo -n "Applying patch $(basename $file_diff)" |
pankso@16258 | 42 patch -Np1 -i $file_diff > /dev/null |
pankso@16258 | 43 status |
pankso@16258 | 44 done |
pankso@16258 | 45 patch -p0 < $stuff/CodeGeneratorGObject-bug-84526.patch || exit 1 |
pankso@16258 | 46 fi |
domcox@14105 | 47 # Build |
mallory@3146 | 48 ./configure \ |
slaxemulator@11247 | 49 --enable-introspection=no \ |
slaxemulator@8530 | 50 --enable-video=no \ |
slaxemulator@6466 | 51 --enable-jit=yes \ |
domcox@12888 | 52 --disable-webgl \ |
domcox@12888 | 53 --disable-geolocation \ |
slaxemulator@11247 | 54 --with-unicode-backend=glib \ |
slaxemulator@11247 | 55 --with-gtk=2.0 \ |
domcox@12888 | 56 --disable-gtk-doc \ |
slaxemulator@11247 | 57 $CONFIGURE_ARGS && |
pascal@15174 | 58 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing && |
pankso@16258 | 59 make install 2>&1 | \ |
pankso@16258 | 60 grep -Ev '(/usr/share/gtk-doc/html|Documentation/webkitgtk/version.xml)' && |
slaxemulator@8530 | 61 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin |
mallory@3146 | 62 } |
mallory@3146 | 63 |
mallory@3146 | 64 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@3146 | 65 genpkg_rules() |
mallory@3146 | 66 { |
pankso@16258 | 67 mkdir -p $fs/usr/lib |
pascal@15174 | 68 cp -a $install/usr/lib/*.so* $fs/usr/lib |
mallory@3146 | 69 } |