wok view librsvg/receipt @ rev 8740
add libsqlite
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Feb 19 21:47:26 2011 +0100 (2011-02-19) |
parents | 47f1b21bacb9 |
children | c58122baf96a |
line source
1 # SliTaz package receipt.
3 PACKAGE="librsvg"
4 VERSION="2.32.1"
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 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="http://ftp.gnome.org/pub/GNOME/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --infodir=/usr/share/info \
24 --mandir=/usr/share/man \
25 --disable-static \
26 $CONFIGURE_ARGS &&
27 make && make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib
34 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
35 cp -a $_pkg/usr/lib/gtk-2.0 $fs/usr/lib
36 cp -a $_pkg/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib
38 # remove *.*a files
39 find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \;
40 find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.*a" -exec rm -f {} \;
41 }
43 # Pre and post install commands for Tazpkg.
44 post_install()
45 {
46 echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..."
47 if [ ! -d $1/etc/gtk-2.0 ]; then
48 mkdir -p $1/etc/gtk-2.0
49 fi
50 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders
51 }
53 post_remove()
54 {
55 echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..."
56 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders
57 }