wok view gtk+/receipt @ rev 4589
Add linmodem-intel537
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Thu Dec 10 13:28:27 2009 +0000 (2009-12-10) |
parents | 303e30733e97 |
children | 9f19aee613be |
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 SUGGESTED="cups gnutls libgcrypt libgpg-error"
16 TARBALL="$PACKAGE-$VERSION.tar.bz2"
17 WEB_SITE="http://www.gtk.org/"
18 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/2.16/$TARBALL"
19 CONFIG_FILES="/etc/gtk-2.0"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 ./configure \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 --mandir=/usr/share/man \
29 --with-html-dir=/usr/share/doc \
30 --without-libjasper \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
41 # Libs.
42 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
43 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
44 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
46 # Themes
47 cp -a $_pkg/usr/share/themes $fs/usr/share
49 # Apps.
50 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
51 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
52 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin
53 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin
54 cp $_pkg/usr/bin/gtk-builder-convert $fs/usr/bin
56 # Config files.
57 mkdir -p $fs/etc/gtk-2.0
58 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules
59 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders
60 }
62 # Pre and post install commands for Tazpkg.
63 post_install()
64 {
65 local root
66 root=$1
67 echo "Processing post-install commands..."
68 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules
69 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders
70 # Force reinstall of clearlooks theme (1.0 compatibilty until
71 # clearlooks are updated)
72 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then
73 tazpkg get-install clearlooks --forced
74 rm -rf $root/usr/lib/gtk-2.0/2.4.0
75 fi
76 }
77 SELF_INSTALL=1