wok annotate libwebkit/receipt @ rev 16185
Up: xterm (303)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Sun Mar 30 16:16:55 2014 +0000 (2014-03-30) |
parents | 63230fad92f1 |
children | e62fe73c97ae |
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@10801 | 7 MAINTAINER="mallory@sweetpeople.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@10801 | 13 |
slaxemulator@5372 | 14 DEPENDS="gtk+ enchant libxslt expat gtk+ jpeg libpng libxml2 sqlite \ |
slaxemulator@5372 | 15 xorg-libICE xorg-libSM xorg-libX11 xorg-libXau xorg-libXcomposite \ |
pankso@10801 | 16 xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama \ |
pankso@10801 | 17 xorg-libXrandr xorg-libXrender xorg-libXt acl xorg-libXdamage libsoup \ |
pankso@12481 | 18 gcc-lib-base libtasn1 util-linux-uuid glib-networking" |
slaxemulator@5372 | 19 BUILD_DEPENDS="gtk+-dev enchant enchant-dev gperf libxslt-dev jpeg-dev \ |
slaxemulator@5372 | 20 libpng-dev glib-dev autoconf automake gnutls-dev sqlite-dev libtool \ |
slaxemulator@5372 | 21 m4 bison flex xorg-libXdamage-dev acl-dev libsoup-dev libxml2-dev \ |
pankso@12481 | 22 libxcb-dev xcb-util-dev util-linux-uuid-dev zlib-dev libtasn1-dev \ |
domcox@12888 | 23 gobject-introspection-dev tar gettext glib-networking-dev gtk-doc" |
slaxemulator@8530 | 24 |
mallory@3146 | 25 # Rules to configure and make the package. |
mallory@3146 | 26 compile_rules() |
mallory@3146 | 27 { |
mallory@3146 | 28 cd $src |
domcox@12888 | 29 # libwebkit does not like parallel builds. |
domcox@12888 | 30 export MAKEFLAGS=$(echo $MAKEFLAGS | sed 's/-j[0-9]*/-j1/') |
domcox@14105 | 31 # fix Bug 84526: webkit-gtk-1.8.0 fails to build with --disable-video |
domcox@14105 | 32 # Build fix with newer bison 2.6 |
domcox@14105 | 33 for file_diff in $stuff/*.diff; do |
domcox@14105 | 34 echo -n "Applying patch $(basename $file_diff)" |
domcox@14105 | 35 patch -Np1 -i $file_diff > /dev/null |
domcox@14105 | 36 status |
domcox@14105 | 37 done |
domcox@14105 | 38 # Build |
domcox@14105 | 39 patch -p0 < $stuff/CodeGeneratorGObject-bug-84526.patch || exit 1 |
mallory@3146 | 40 ./configure \ |
mallory@3146 | 41 --prefix=/usr \ |
mallory@3146 | 42 --infodir=/usr/share/info \ |
mallory@3146 | 43 --mandir=/usr/share/man \ |
slaxemulator@11247 | 44 --enable-introspection=no \ |
slaxemulator@8530 | 45 --enable-video=no \ |
slaxemulator@6466 | 46 --enable-jit=yes \ |
domcox@12888 | 47 --disable-webgl \ |
domcox@12888 | 48 --disable-geolocation \ |
slaxemulator@11247 | 49 --with-unicode-backend=glib \ |
slaxemulator@11247 | 50 --with-gtk=2.0 \ |
domcox@12888 | 51 --disable-gtk-doc \ |
slaxemulator@11247 | 52 $CONFIGURE_ARGS && |
pascal@15174 | 53 make all stamp-po 2>&1 | grep -v Source/WebCore/dom/testing && |
pascal@15175 | 54 make DESTDIR=$DESTDIR install 2>&1 | grep -Ev '(/usr/share/gtk-doc/html|Documentation/webkitgtk/version.xml)' && |
slaxemulator@8530 | 55 cp -a $src/Programs/GtkLauncher $DESTDIR/usr/bin |
mallory@3146 | 56 } |
mallory@3146 | 57 |
mallory@3146 | 58 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@3146 | 59 genpkg_rules() |
mallory@3146 | 60 { |
jozee@5027 | 61 mkdir -p $fs/usr/lib $fs/usr/bin |
pascal@15174 | 62 [ -d $install/usr/lib/girepository-1.0 ] && cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib |
pascal@15174 | 63 cp -a $install/usr/lib/*.so* $fs/usr/lib |
mallory@3146 | 64 } |