wok-next view gdk-pixbuf/receipt @ rev 19710
Up perl-html-tree (avoid dependency loop)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu May 11 04:40:46 2017 +0300 (2017-05-11) |
parents | 558329d2603a |
children | 402a4118d0fc |
line source
1 # SliTaz package receipt.
3 PACKAGE="gdk-pixbuf"
4 VERSION="2.34.0"
5 CATEGORY="x-window"
6 SHORT_DESC="An image loading library for gtk2"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.gtk.org/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
15 DEPENDS="glib libffi libgio libjpeg-turbo libpng libxcb pcre tiff xorg-libX11 \
16 xorg-libXau xorg-libXdmcp zlib"
17 BUILD_DEPENDS="glib-dev gettext tiff-dev libpng-dev libjpeg-turbo-dev \
18 xorg-libX11-dev gtk-doc"
20 # Handle cross compilation
21 case "$ARCH" in
22 i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
23 arm) ARCH_ARGS="--enable-introspection=no --cache-file=arm.cache" ;;
24 esac
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 case "$ARCH" in
30 arm) echo "gio_can_sniff=yes" > arm.cache ;;
31 esac
32 mkdir -p /usr/share/gtk-doc/html
34 ./configure \
35 --disable-glibtest \
36 --without-libjasper \
37 --with-x11 \
38 $CONFIGURE_ARGS $ARCH_ARGS &&
39 make && make install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cook_copy_folders bin
46 cook_copy_files *.so* *.typelib
47 touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
48 }
50 # Pre and post install commands for Tazpkg.
51 post_install()
52 {
53 # Updating gdk pixbuf loaders cache file...
54 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
55 }