wok annotate gdk-pixbuf/receipt @ rev 20311
syslinux/isohybrid.sh: resize EFI partition (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 14 22:22:48 2018 +0200 (2018-05-14) |
parents | a755a8e0a6e5 |
children | a78610b2eb47 |
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 { |
al@18663 | 54 # Updating gdk pixbuf loaders cache file... |
al@18663 | 55 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache |
slaxemulator@6630 | 56 } |