wok-6.x view gdk-pixbuf/receipt @ rev 16750
Down slitaz-boot-scripts (5.6.1) init fails to boot
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Sun Jun 15 02:29:48 2014 +0000 (2014-06-15) |
parents | 9412b690444b |
children | 1a82f631b687 |
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 shared-mime-info-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 }