wok-next view gdk-pixbuf/receipt @ rev 16165

links-dfb: typo in dip.c
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Mar 29 08:53:12 2014 +0000 (2014-03-29)
parents 380ffe05937a
children c46591bcff38
line source
1 # SliTaz package receipt.
3 PACKAGE="gdk-pixbuf"
4 VERSION="2.26.1"
5 CATEGORY="x-window"
6 SHORT_DESC="An image loading library for gtk2"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gtk.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="glib libgio libpng tiff jpeg zlib xorg-libX11 shared-mime-info"
15 BUILD_DEPENDS="libgio-dev glib-dev jbigkit libpng-dev tiff-dev jpeg-dev \
16 xorg-libX11-dev zlib-dev"
18 # Handle cross compilation
19 case "$ARCH" in
20 i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
21 arm) ARCH_ARGS="--enable-introspection=no --cache-file=arm.cache" ;;
22 esac
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 case "$ARCH" in
28 arm) echo "gio_can_sniff=yes" > arm.cache ;;
29 esac
30 ./configure \
31 --disable-glibtest \
32 --without-libjasper \
33 --with-x11 \
34 $CONFIGURE_ARGS $ARCH_ARGS &&
35 make && make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \
44 $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
45 [ -d "$install/usr/lib/girepository-1.0" ] && \
46 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
49 }
51 # Pre and post install commands for Tazpkg.
52 post_install()
53 {
54 echo -n "Updating gdk pixbuf loaders cache file..."
55 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
56 status
57 }