wok-current view gtk+/receipt @ rev 3443

Kismet: up to 2009-05-RC2
author Dominique Corbex <domcox@users.sourceforge.net>
date Sun Jun 14 12:22:17 2009 +0200 (2009-06-14)
parents 948f0b6a41c4
children 6f03da3f17c9
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.16.2"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="cairo glib pango atk libpng jpeg tiff 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 freetype-dev pixman-dev \
11 tiff-dev libgio-dev xorg-libXdamage"
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.16/$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