wok-6.x view librsvg/receipt @ rev 12797

fltk-2.0.x: fix compile_rules with LD_LIBRARY_PATH
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 18 10:17:05 2012 +0200 (2012-05-18)
parents a2c8aeb4d439
children 053c07e0ffa5
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 DEPENDS="cairo freetype libxml2 pango fontconfig libcroco libgsf xcb-util \
9 libgio atk gdk-pixbuf xorg-libXinerama xorg-libXcursor xorg-libXcomposite xorg-libXext \
10 xorg-libXdamage"
11 BUILD_DEPENDS="$DEPENDS libffi-dev pkg-config cairo-dev freetype-dev libxml2-dev pango-dev \
12 fontconfig-dev gdk-pixbuf-dev libcroco-dev glib-dev libpng-dev gtk+-dev perl expat-dev"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WEB_SITE="http://librsvg.sourceforge.net/"
15 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --disable-static \
23 $CONFIGURE_ARGS &&
24 make && make install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/lib
31 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
32 cp -a $_pkg/usr/lib/gtk-2.0 $fs/usr/lib
33 cp -a $_pkg/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib
35 # remove *.*a files
36 find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \;
37 find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.*a" -exec rm -f {} \;
38 }
40 # Pre and post install commands for Tazpkg.
41 post_install()
42 {
43 echo -n "Updating gdk pixbuf loaders cache file..."
44 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
45 status
46 }
48 post_remove()
49 {
50 echo -n "Updating gdk pixbuf loaders cache file..."
51 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
52 status
53 }