wok annotate librsvg/receipt @ rev 12284
graphviz: try a fix (xorg-dev as bdep)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 15 16:18:24 2012 +0200 (2012-04-15) |
parents | a2c8aeb4d439 |
children | 053c07e0ffa5 |
rev | line source |
---|---|
erjo@3554 | 1 # SliTaz package receipt. |
erjo@3554 | 2 |
erjo@3554 | 3 PACKAGE="librsvg" |
slaxemulator@11409 | 4 VERSION="2.34.2" |
slaxemulator@6677 | 5 CATEGORY="x-window" |
erjo@3554 | 6 SHORT_DESC="SVG Rendering Library" |
erjo@3554 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@5003 | 8 DEPENDS="cairo freetype libxml2 pango fontconfig libcroco libgsf xcb-util \ |
slaxemulator@6677 | 9 libgio atk gdk-pixbuf xorg-libXinerama xorg-libXcursor xorg-libXcomposite xorg-libXext \ |
pascal@5003 | 10 xorg-libXdamage" |
erjo@11476 | 11 BUILD_DEPENDS="$DEPENDS libffi-dev pkg-config cairo-dev freetype-dev libxml2-dev pango-dev \ |
slaxemulator@6677 | 12 fontconfig-dev gdk-pixbuf-dev libcroco-dev glib-dev libpng-dev gtk+-dev perl expat-dev" |
erjo@3554 | 13 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
erjo@3554 | 14 WEB_SITE="http://librsvg.sourceforge.net/" |
slaxemulator@11409 | 15 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL" |
erjo@3554 | 16 |
erjo@3554 | 17 # Rules to configure and make the package. |
erjo@3554 | 18 compile_rules() |
erjo@3554 | 19 { |
erjo@3554 | 20 cd $src |
erjo@3554 | 21 ./configure \ |
slaxemulator@6677 | 22 --disable-static \ |
erjo@3554 | 23 $CONFIGURE_ARGS && |
slaxemulator@10213 | 24 make && make install |
erjo@3554 | 25 } |
erjo@3554 | 26 |
erjo@3554 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@3554 | 28 genpkg_rules() |
erjo@3554 | 29 { |
pankso@4161 | 30 mkdir -p $fs/usr/lib |
erjo@3554 | 31 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
erjo@3554 | 32 cp -a $_pkg/usr/lib/gtk-2.0 $fs/usr/lib |
slaxemulator@6677 | 33 cp -a $_pkg/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib |
pankso@4161 | 34 |
erjo@3554 | 35 # remove *.*a files |
erjo@3554 | 36 find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \; |
slaxemulator@6678 | 37 find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.*a" -exec rm -f {} \; |
erjo@3554 | 38 } |
erjo@3554 | 39 |
slaxemulator@7770 | 40 # Pre and post install commands for Tazpkg. |
slaxemulator@7770 | 41 post_install() |
slaxemulator@7770 | 42 { |
gokhlayeh@11958 | 43 echo -n "Updating gdk pixbuf loaders cache file..." |
gokhlayeh@11958 | 44 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache |
gokhlayeh@11958 | 45 status |
slaxemulator@7770 | 46 } |
slaxemulator@7770 | 47 |
slaxemulator@7770 | 48 post_remove() |
slaxemulator@7770 | 49 { |
gokhlayeh@11958 | 50 echo -n "Updating gdk pixbuf loaders cache file..." |
gokhlayeh@11958 | 51 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache |
gokhlayeh@11958 | 52 status |
slaxemulator@7770 | 53 } |