wok-4.x view gdk-pixbuf/receipt @ rev 10524
openvas-scanner: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 25 16:21:23 2011 +0200 (2011-05-25) |
parents | 6bff49ea4134 |
children | 12e3d045597f |
line source
1 # SliTaz package receipt.
3 PACKAGE="gdk-pixbuf"
4 VERSION="2.22.1"
5 CATEGORY="x-window"
6 SHORT_DESC="An image loading library for gtk2"
7 MAINTAINER="slaxemulator@gmail.com"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://www.gtk.org/"
10 WGET_URL="http://download.gnome.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL"
11 CROSS="bug: can not run test program"
13 DEPENDS="glib libgio libpng tiff jpeg zlib xorg-libX11 shared-mime-info"
14 BUILD_DEPENDS="libgio-dev glib-dev jbigkit libpng-dev tiff-dev jpeg-dev \
15 xorg-libX11-dev zlib-dev pkg-config gobject-introspection-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --disable-glibtest \
23 --without-libjasper \
24 --with-included-loaders=bmp,gif,jpeg,pcx,png,xpm \
25 --build=$HOST_SYSTEM --host=$HOST_SYSTEM &&
26 make && make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \
35 $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
36 cp -a $_pkg/usr/lib/girepository-1.0 $fs/usr/lib
37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
38 }
40 # Pre and post install commands for Tazpkg.
41 post_install()
42 {
43 echo "Creating /etc/gtk-2.0/gdk-pixbuf.loaders..."
44 if [ ! -d $1/etc/gtk-2.0 ]; then
45 mkdir -p $1/etc/gtk-2.0
46 fi
47 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders
48 }