wok-current view librsvg/receipt @ rev 19167
abiword: add suggested
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 29 10:13:52 2016 +0200 (2016-05-29) |
parents | 9e01bc6321ea |
children | 8407f9c3f9be |
line source
1 # SliTaz package receipt.
3 PACKAGE="librsvg"
4 VERSION="2.34.2"
5 CATEGORY="x-window"
6 SHORT_DESC="SVG Rendering Library"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://librsvg.sourceforge.net/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="cairo freetype libxml2 pango fontconfig libcroco xcb-util libgsf \
15 libgio gdk-pixbuf xorg-libXinerama xorg-libXcursor xorg-libXcomposite \
16 xorg-libXext xorg-libXdamage"
17 BUILD_DEPENDS="libffi-dev cairo-dev freetype-dev libxml2-dev pango-dev \
18 fontconfig-dev gdk-pixbuf-dev libcroco-dev glib-dev libpng-dev expat-dev"
20 # Handle cross compilation
21 case "$ARCH" in
22 i?86) BUILD_DEPENDS="gtk+-dev perl libgsf" ;;
23 esac
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure \
29 --disable-static \
30 $CONFIGURE_ARGS LIBCROCO_CFLAGS="-I/cross/$ARCH/sysroot/usr/include" &&
31 make && make install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
39 [ -d "$install/usr/lib/gtk-2.0" ] && \
40 cp -a $install/usr/lib/gtk-2.0 $fs/usr/lib
41 cp -a $install/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib
43 # remove *.*a files
44 [ -d "$install/usr/lib/gtk-2.0" ] && \
45 find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \;
46 find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.*a" -exec rm -f {} \;
47 }
49 # Pre and post install commands for Tazpkg.
50 post_install()
51 {
52 [ -z "$quiet" ] && echo -en "\nUpdating gdk pixbuf loaders cache file..."
53 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
54 status
55 }