wok annotate gdk-pixbuf/receipt @ rev 10599
parole: fix bdeps and clean
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 26 15:26:37 2011 +0200 (2011-05-26) |
parents | 6bff49ea4134 |
children | 12e3d045597f |
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@6630 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
slaxemulator@6630 | 9 WEB_SITE="http://www.gtk.org/" |
slaxemulator@7148 | 10 WGET_URL="http://download.gnome.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL" |
pankso@10350 | 11 CROSS="bug: can not run test program" |
pankso@10350 | 12 |
pankso@10350 | 13 DEPENDS="glib libgio libpng tiff jpeg zlib xorg-libX11 shared-mime-info" |
pankso@10350 | 14 BUILD_DEPENDS="libgio-dev glib-dev jbigkit libpng-dev tiff-dev jpeg-dev \ |
pankso@10350 | 15 xorg-libX11-dev zlib-dev pkg-config gobject-introspection-dev" |
slaxemulator@6630 | 16 |
slaxemulator@6630 | 17 # Rules to configure and make the package. |
slaxemulator@6630 | 18 compile_rules() |
slaxemulator@6630 | 19 { |
slaxemulator@6630 | 20 cd $src |
slaxemulator@6630 | 21 ./configure \ |
pankso@10350 | 22 --disable-glibtest \ |
slaxemulator@6630 | 23 --without-libjasper \ |
gokhlayeh@9378 | 24 --with-included-loaders=bmp,gif,jpeg,pcx,png,xpm \ |
pankso@10350 | 25 --build=$HOST_SYSTEM --host=$HOST_SYSTEM && |
pankso@10350 | 26 make && make install |
slaxemulator@6630 | 27 } |
slaxemulator@6630 | 28 |
slaxemulator@6630 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6630 | 30 genpkg_rules() |
slaxemulator@6630 | 31 { |
slaxemulator@6653 | 32 mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders |
slaxemulator@6630 | 33 cp -a $_pkg/usr/bin $fs/usr |
pankso@10350 | 34 cp -a $_pkg/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \ |
pankso@10350 | 35 $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders |
slaxemulator@7780 | 36 cp -a $_pkg/usr/lib/girepository-1.0 $fs/usr/lib |
slaxemulator@6630 | 37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
slaxemulator@6630 | 38 } |
slaxemulator@6630 | 39 |
slaxemulator@6630 | 40 # Pre and post install commands for Tazpkg. |
slaxemulator@6630 | 41 post_install() |
slaxemulator@6630 | 42 { |
slaxemulator@7773 | 43 echo "Creating /etc/gtk-2.0/gdk-pixbuf.loaders..." |
slaxemulator@7773 | 44 if [ ! -d $1/etc/gtk-2.0 ]; then |
slaxemulator@7773 | 45 mkdir -p $1/etc/gtk-2.0 |
slaxemulator@7773 | 46 fi |
slaxemulator@7773 | 47 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders |
slaxemulator@6630 | 48 } |