wok view gtk+/receipt @ rev 889
Up: mtpaint (3.21)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Jun 09 10:23:31 2008 +0200 (2008-06-09) |
parents | b13637d77d33 |
children | 4da89e6150fe |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.12.10"
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"
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"
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.12/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --sysconfdir=/etc \
23 --mandir=/usr/share/man \
24 --with-html-dir=/usr/share/doc \
25 $CONFIGURE_ARGS
26 make
27 make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
35 # Libs.
36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
37 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
38 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
40 # Themes
41 cp -a $_pkg/usr/share/themes $fs/usr/share
43 # Apps.
44 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
45 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
46 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
47 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
49 # Config files.
50 mkdir -p $fs/etc/gtk-2.0
51 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
52 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
53 }
55 # Pre and post install commands for Tazpkg.
56 post_install()
57 {
58 local root
59 root=$1
60 echo "Processing post-install commands..."
61 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
62 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
63 # Force reinstall of clearlooks theme (1.0 compatibilty until
64 # clearlooks are updated)
65 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then
66 tazpkg get-install clearlooks --forced
67 rm -rf $root/usr/lib/gtk-2.0/2.4.0
68 fi
69 }
70 SELF_INSTALL=1