wok-6.x annotate gdk-pixbuf/receipt @ rev 17759
hsetroot, wbar: link with libX11
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 10 08:31:24 2015 +0100 (2015-03-10) |
parents | 93ebe04d2558 |
children | 124c3a7da04f |
rev | line source |
---|---|
slaxemulator@6630 | 1 # SliTaz package receipt. |
slaxemulator@6630 | 2 |
slaxemulator@6630 | 3 PACKAGE="gdk-pixbuf" |
devl547@17631 | 4 VERSION="2.31.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/" |
yuripourre@16873 | 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" |
pankso@16131 | 12 HOST_ARCH="i486 arm" |
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@16315 | 16 xorg-libX11-dev zlib-dev shared-mime-info-dev" |
pankso@16131 | 17 |
pankso@16131 | 18 # Handle cross compilation |
pankso@16131 | 19 case "$ARCH" in |
pankso@16131 | 20 i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;; |
pankso@16131 | 21 arm) ARCH_ARGS="--enable-introspection=no --cache-file=arm.cache" ;; |
pankso@16131 | 22 esac |
slaxemulator@6630 | 23 |
slaxemulator@6630 | 24 # Rules to configure and make the package. |
slaxemulator@6630 | 25 compile_rules() |
slaxemulator@6630 | 26 { |
pankso@16131 | 27 case "$ARCH" in |
pankso@16131 | 28 arm) echo "gio_can_sniff=yes" > arm.cache ;; |
pankso@16131 | 29 esac |
slaxemulator@6630 | 30 ./configure \ |
pankso@10350 | 31 --disable-glibtest \ |
slaxemulator@6630 | 32 --without-libjasper \ |
slaxemulator@13158 | 33 --with-x11 \ |
pankso@16131 | 34 $CONFIGURE_ARGS $ARCH_ARGS && |
pankso@10350 | 35 make && make install |
slaxemulator@6630 | 36 } |
slaxemulator@6630 | 37 |
slaxemulator@6630 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6630 | 39 genpkg_rules() |
slaxemulator@6630 | 40 { |
slaxemulator@6653 | 41 mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders |
pankso@12739 | 42 cp -a $install/usr/bin $fs/usr |
pankso@12739 | 43 cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \ |
pankso@10350 | 44 $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders |
pankso@16131 | 45 [ -d "$install/usr/lib/girepository-1.0" ] && \ |
pankso@16131 | 46 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib |
pankso@12739 | 47 cp -a $install/usr/lib/*.so* $fs/usr/lib |
gokhlayeh@11958 | 48 touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache |
slaxemulator@6630 | 49 } |
slaxemulator@6630 | 50 |
slaxemulator@11166 | 51 # Pre and post install commands for Tazpkg. |
slaxemulator@6630 | 52 post_install() |
slaxemulator@6630 | 53 { |
gokhlayeh@11958 | 54 echo -n "Updating gdk pixbuf loaders cache file..." |
slaxemulator@13158 | 55 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache |
gokhlayeh@11958 | 56 status |
slaxemulator@6630 | 57 } |