wok-current view gtk+/receipt @ rev 2310
Imagemagick: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 25 12:22:31 2009 +0000 (2009-02-25) |
parents | 4751fd396e9b |
children | 5396b083ef0f |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.14.7"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="cairo glib pango atk libpng jpeg fontconfig freetype pixman libgio"
9 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev
10 pkg-config xorg-dev xorg-dev-proto fontconfig-dev
11 freetype-dev pixman-dev tiff-dev libgio-dev"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WEB_SITE="http://www.gtk.org/"
14 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/2.14/$TARBALL"
15 CONFIG_FILES="/etc/gtk-2.0"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 --mandir=/usr/share/man \
25 --with-html-dir=/usr/share/doc \
26 --without-libjasper \
27 $CONFIGURE_ARGS
28 make
29 make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
37 # Libs.
38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
39 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
40 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
42 # Themes
43 cp -a $_pkg/usr/share/themes $fs/usr/share
45 # Apps.
46 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
47 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
48 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
49 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
51 # Config files.
52 mkdir -p $fs/etc/gtk-2.0
53 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
54 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
55 }
57 # Pre and post install commands for Tazpkg.
58 post_install()
59 {
60 local root
61 root=$1
62 echo "Processing post-install commands..."
63 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
64 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
65 # Force reinstall of clearlooks theme (1.0 compatibilty until
66 # clearlooks are updated)
67 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then
68 tazpkg get-install clearlooks --forced
69 rm -rf $root/usr/lib/gtk-2.0/2.4.0
70 fi
71 }
72 SELF_INSTALL=1