wok view gdk-pixbuf/receipt @ rev 21989

fasm: build fasmarm
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 15 18:06:41 2019 +0200 (2019-10-15)
parents 124c3a7da04f
children 7757b63c231b
line source
1 # SliTaz package receipt.
3 PACKAGE="gdk-pixbuf"
4 VERSION="2.31.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="https://www.gtk.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$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 # Updating gdk pixbuf loaders cache file...
55 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
56 }