wok-next view gtk+/receipt @ rev 1737
slitaz-boot-scripts: mkdir /etc/X11
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 22 03:17:42 2008 +0100 (2008-11-22) |
parents | ad2f489ebbbc |
children | 011647445dd9 |
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"
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 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
36 # Libs.
37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
38 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
39 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
41 # Themes
42 cp -a $_pkg/usr/share/themes $fs/usr/share
44 # Apps.
45 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
46 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
47 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
48 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
50 # Config files.
51 mkdir -p $fs/etc/gtk-2.0
52 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
53 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
54 }
56 # Pre and post install commands for Tazpkg.
57 post_install()
58 {
59 local root
60 root=$1
61 echo "Processing post-install commands..."
62 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
63 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
64 # Force reinstall of clearlooks theme (1.0 compatibilty until
65 # clearlooks are updated)
66 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then
67 tazpkg get-install clearlooks --forced
68 rm -rf $root/usr/lib/gtk-2.0/2.4.0
69 fi
70 }
71 SELF_INSTALL=1