wok-6.x annotate gdk-pixbuf/receipt @ rev 8523
Fix icedtea6-jdk: don't exit but return if an error occurs
author | Antoine Bodin <gokhlayeh@slitaz.org> |
---|---|
date | Sun Feb 13 03:21:54 2011 +0100 (2011-02-13) |
parents | 2a405464f5b8 |
children | 03723f92b911 |
rev | line source |
---|---|
slaxemulator@6630 | 1 # SliTaz package receipt. |
slaxemulator@6630 | 2 |
slaxemulator@6630 | 3 PACKAGE="gdk-pixbuf" |
slaxemulator@7148 | 4 VERSION="2.22.1" |
slaxemulator@6630 | 5 CATEGORY="x-window" |
slaxemulator@6630 | 6 SHORT_DESC="An image loading library for gtk2" |
slaxemulator@6630 | 7 MAINTAINER="slaxemulator@gmail.com" |
slaxemulator@6679 | 8 DEPENDS="glib libgio libpng tiff jpeg zlib xorg-libX11 shared-mime-info" |
slaxemulator@6670 | 9 BUILD_DEPENDS="$DEPENDS libgio-dev glib-dev jbigkit libpng-dev tiff-dev jpeg-dev xorg-libX11-dev zlib-dev pkg-config gobject-introspection-dev" |
slaxemulator@6630 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@6630 | 11 WEB_SITE="http://www.gtk.org/" |
slaxemulator@7148 | 12 WGET_URL="http://download.gnome.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL" |
slaxemulator@6630 | 13 |
slaxemulator@6630 | 14 # Rules to configure and make the package. |
slaxemulator@6630 | 15 compile_rules() |
slaxemulator@6630 | 16 { |
slaxemulator@6630 | 17 cd $src |
slaxemulator@6630 | 18 ./configure \ |
slaxemulator@6630 | 19 --prefix=/usr \ |
slaxemulator@6630 | 20 --infodir=/usr/share/info \ |
slaxemulator@6630 | 21 --mandir=/usr/share/man \ |
slaxemulator@6630 | 22 --without-libjasper \ |
slaxemulator@6664 | 23 --with-included-loaders=png,xpm,jpeg \ |
slaxemulator@6630 | 24 $CONFIGURE_ARGS && |
slaxemulator@6630 | 25 make && make DESTDIR=$PWD/_pkg install |
slaxemulator@6630 | 26 } |
slaxemulator@6630 | 27 |
slaxemulator@6630 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6630 | 29 genpkg_rules() |
slaxemulator@6630 | 30 { |
slaxemulator@6653 | 31 mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders |
slaxemulator@6630 | 32 cp -a $_pkg/usr/bin $fs/usr |
slaxemulator@6653 | 33 cp -a $_pkg/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders |
slaxemulator@7780 | 34 cp -a $_pkg/usr/lib/girepository-1.0 $fs/usr/lib |
slaxemulator@6630 | 35 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
slaxemulator@6630 | 36 } |
slaxemulator@6630 | 37 |
slaxemulator@6630 | 38 # Pre and post install commands for Tazpkg. |
slaxemulator@6630 | 39 post_install() |
slaxemulator@6630 | 40 { |
slaxemulator@7773 | 41 echo "Creating /etc/gtk-2.0/gdk-pixbuf.loaders..." |
slaxemulator@7773 | 42 if [ ! -d $1/etc/gtk-2.0 ]; then |
slaxemulator@7773 | 43 mkdir -p $1/etc/gtk-2.0 |
slaxemulator@7773 | 44 fi |
slaxemulator@7773 | 45 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders |
slaxemulator@6630 | 46 } |