wok view gtk+/receipt @ rev 2940

Up: libgcrypt-* (1.4.4)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Fri May 08 00:13:03 2009 +0200 (2009-05-08)
parents 8032bcdd3044
children 948f0b6a41c4
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 xorg-libXdamage xcb-util"
10 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev
11 pkg-config xorg-dev xorg-dev-proto fontconfig-dev
12 freetype-dev pixman-dev tiff-dev libgio-dev xorg-libXdamage
13 gnutls libgcrypt libgpg-error tiff"
14 SUGGESTED="cups tiff"
15 TARBALL="$PACKAGE-$VERSION.tar.bz2"
16 WEB_SITE="http://www.gtk.org/"
17 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/2.14/$TARBALL"
18 CONFIG_FILES="/etc/gtk-2.0"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 ./configure \
25 --prefix=/usr \
26 --sysconfdir=/etc \
27 --mandir=/usr/share/man \
28 --with-html-dir=/usr/share/doc \
29 --without-libjasper \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
40 # Libs.
41 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
42 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
43 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
45 # Themes
46 cp -a $_pkg/usr/share/themes $fs/usr/share
48 # Apps.
49 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
50 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
51 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
52 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
54 # Config files.
55 mkdir -p $fs/etc/gtk-2.0
56 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
57 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
58 }
60 # Pre and post install commands for Tazpkg.
61 post_install()
62 {
63 local root
64 root=$1
65 echo "Processing post-install commands..."
66 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
67 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
68 # Force reinstall of clearlooks theme (1.0 compatibilty until
69 # clearlooks are updated)
70 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then
71 tazpkg get-install clearlooks --forced
72 rm -rf $root/usr/lib/gtk-2.0/2.4.0
73 fi
74 }
75 SELF_INSTALL=1