wok-6.x view gdk-pixbuf/receipt @ rev 6630
Added gdk-pixbuf. An image loading library for gtk2. Need for new gtk 2.22.0.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Oct 10 12:08:08 2010 +0000 (2010-10-10) |
parents | |
children | 5fa2da48d92f |
line source
1 # SliTaz package receipt.
3 PACKAGE="gdk-pixbuf"
4 VERSION="2.22.0"
5 CATEGORY="x-window"
6 SHORT_DESC="An image loading library for gtk2"
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="glib libgio libpng tiff jpeg xorg-libX11"
9 BUILD_DEPENDS="$DEPENDS glib-dev jbigkit libpng-dev tiff-dev jpeg-dev xorg-libX11-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.gtk.org/"
12 WGET_URL="http://download.gnome.org/sources/gdk-pixbuf/${VERSION%.*}/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure \
19 --prefix=/usr \
20 --infodir=/usr/share/info \
21 --mandir=/usr/share/man \
22 --without-libjasper \
23 --with-included-loaders=png \
24 $CONFIGURE_ARGS &&
25 make && make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr/lib
32 cp -a $_pkg/usr/bin $fs/usr
33 cp -a $_pkg/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib
34 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
36 # Config files
37 mkdir -p $fs/etc/gtk-2.0
38 $fs/usr/bin/gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
39 }
41 # Pre and post install commands for Tazpkg.
42 post_install()
43 {
44 local arg
45 echo "Processing post-install commands..."
46 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders
48 }