wok-6.x view gtk+/receipt @ rev 3350
Add dhcp6
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 11 17:11:41 2009 +0200 (2009-06-11) |
parents | 03ad5a05339c |
children | f4178be6d372 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.16.1"
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 xorg-libXdamage
12 gnutls libgcrypt libgpg-error tiff"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WEB_SITE="http://www.gtk.org/"
15 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/2.16/$TARBALL"
16 CONFIG_FILES="/etc/gtk-2.0"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure \
23 --prefix=/usr \
24 --sysconfdir=/etc \
25 --mandir=/usr/share/man \
26 --with-html-dir=/usr/share/doc \
27 --without-libjasper \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
38 # Libs.
39 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
40 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
41 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
43 # Themes
44 cp -a $_pkg/usr/share/themes $fs/usr/share
46 # Apps.
47 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
48 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
49 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
50 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
52 # Config files.
53 mkdir -p $fs/etc/gtk-2.0
54 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
55 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
56 }
58 # Pre and post install commands for Tazpkg.
59 post_install()
60 {
61 local root
62 root=$1
63 echo "Processing post-install commands..."
64 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
65 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
66 # Force reinstall of clearlooks theme (1.0 compatibilty until
67 # clearlooks are updated)
68 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then
69 tazpkg get-install clearlooks --forced
70 rm -rf $root/usr/lib/gtk-2.0/2.4.0
71 fi
72 }
73 SELF_INSTALL=1