wok annotate gdk-pixbuf/receipt @ rev 15898

Up: cookutils (3.2)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Feb 12 23:28:09 2014 +0100 (2014-02-12)
parents 87f5f812070b
children 9412b690444b
rev   line source
slaxemulator@6630 1 # SliTaz package receipt.
slaxemulator@6630 2
slaxemulator@6630 3 PACKAGE="gdk-pixbuf"
pankso@12739 4 VERSION="2.26.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"
pascal@15000 8 LICENSE="GPL2"
pankso@12739 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
slaxemulator@6630 10 WEB_SITE="http://www.gtk.org/"
slaxemulator@11166 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
pankso@10350 12 CROSS="bug: can not run test program"
pankso@10350 13
pankso@10350 14 DEPENDS="glib libgio libpng tiff jpeg zlib xorg-libX11 shared-mime-info"
pankso@10350 15 BUILD_DEPENDS="libgio-dev glib-dev jbigkit libpng-dev tiff-dev jpeg-dev \
pankso@10350 16 xorg-libX11-dev zlib-dev pkg-config gobject-introspection-dev"
slaxemulator@6630 17
slaxemulator@6630 18 # Rules to configure and make the package.
slaxemulator@6630 19 compile_rules()
slaxemulator@6630 20 {
slaxemulator@6630 21 cd $src
slaxemulator@6630 22 ./configure \
pankso@10350 23 --disable-glibtest \
slaxemulator@6630 24 --without-libjasper \
slaxemulator@13158 25 --with-x11 \
pankso@10350 26 --build=$HOST_SYSTEM --host=$HOST_SYSTEM &&
pankso@10350 27 make && make install
slaxemulator@6630 28 }
slaxemulator@6630 29
slaxemulator@6630 30 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@6630 31 genpkg_rules()
slaxemulator@6630 32 {
slaxemulator@6653 33 mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
pankso@12739 34 cp -a $install/usr/bin $fs/usr
pankso@12739 35 cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \
pankso@10350 36 $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
pankso@12739 37 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
pankso@12739 38 cp -a $install/usr/lib/*.so* $fs/usr/lib
gokhlayeh@11958 39 touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
slaxemulator@6630 40 }
slaxemulator@6630 41
slaxemulator@11166 42 # Pre and post install commands for Tazpkg.
slaxemulator@6630 43 post_install()
slaxemulator@6630 44 {
gokhlayeh@11958 45 echo -n "Updating gdk pixbuf loaders cache file..."
slaxemulator@13158 46 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
gokhlayeh@11958 47 status
slaxemulator@6630 48 }