wok-4.x view gtk+/receipt @ rev 8357
Up: xchm to 1.18.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Feb 03 15:46:09 2011 +0000 (2011-02-03) |
parents | d4078c3eb6d1 |
children | bd8206e828b5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.22.1"
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 gdk-pixbuf 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 xorg-libXrandr"
12 BUILD_DEPENDS="gdk-pixbuf-dev 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 xorg-libXdamage-dev xorg-libXinerama-dev zlib-dev \
15 xorg-xextproto expat-dev cups-dev libcomerr3 gobject-introspection-dev libffi-dev"
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+/${VERSION%.*}/$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 $CONFIGURE_ARGS &&
32 make -j 4 &&
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/gtk-builder-convert $fs/usr/bin
54 }
56 # Pre and post install commands for Tazpkg.
57 post_install()
58 {
59 local arg
60 echo "Processing post-install commands..."
61 if [ ! -d $1/etc/gtk-2.0 ]; then
62 mkdir -p $1/etc/gtk-2.0
63 fi
64 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
65 # Force reinstall of clearlooks theme (1.0 compatibilty until
66 # clearlooks are updated)
67 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
68 arg="--forced"
69 [ -n "$1" ] && arg="--forced --root=$1/"
70 tazpkg get-install clearlooks $arg
71 rm -rf $1/usr/lib/gtk-2.0/2.4.0
72 fi
73 }