wok-stable view gtk+/receipt @ rev 5092
Up: ppp*; add missing ip-up, ip-down scripts (thanks kultex)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Mon Mar 15 14:00:30 2010 +0000 (2010-03-15) |
parents | 1c30b062cd8e |
children | db63cccdb8d4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.16.5"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="glibc-base expat libxcb xcb-util zlib \
9 glib cairo pango atk libpng jpeg tiff fontconfig freetype pixman libgio \
10 xorg-libX11 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
11 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender"
12 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev \
13 pkg-config xorg-dev xorg-dev-proto fontconfig-dev freetype-dev pixman-dev \
14 tiff-dev libgio-dev xorg-libXdamage zlib-dev xorg-xextproto expat-dev cups-dev \
15 libcomerr3"
16 SUGGESTED="cups gnutls libgcrypt libgpg-error"
17 TARBALL="$PACKAGE-$VERSION.tar.bz2"
18 WEB_SITE="http://www.gtk.org/"
19 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/2.16/$TARBALL"
20 CONFIG_FILES="/etc/gtk-2.0"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 ./configure \
27 --prefix=/usr \
28 --sysconfdir=/etc \
29 --mandir=/usr/share/man \
30 --with-html-dir=/usr/share/doc \
31 --without-libjasper \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
42 # Libs.
43 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
44 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
45 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
47 # Themes
48 cp -a $_pkg/usr/share/themes $fs/usr/share
50 # Apps.
51 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
52 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
53 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
54 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
55 cp $_pkg/usr/bin/gtk-builder-convert $fs/usr/bin
57 # Config files.
58 mkdir -p $fs/etc/gtk-2.0
59 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
60 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
61 }
63 # Pre and post install commands for Tazpkg.
64 post_install()
65 {
66 local root
67 root=$1
68 echo "Processing post-install commands..."
69 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
70 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
71 # Force reinstall of clearlooks theme (1.0 compatibilty until
72 # clearlooks are updated)
73 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then
74 tazpkg get-install clearlooks --forced
75 rm -rf $root/usr/lib/gtk-2.0/2.4.0
76 fi
77 }
78 SELF_INSTALL=1