wok view gtk+/receipt @ rev 10068

tcl: Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 05:19:01 2011 +0000 (2011-05-20)
parents 46b226e57592
children dcd8cc7f161c
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.24.4"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 SUGGESTED="cups gnutls libgcrypt libgpg-error"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.gtk.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
12 CONFIG_FILES="/etc/gtk-2.0"
14 DEPENDS="glibc-base expat libxcb xcb-util zlib glib cairo pango atk libpng \
15 jpeg tiff gdk-pixbuf fontconfig freetype pixman libgio xorg-libX11 xorg-libXau \
16 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext \
17 xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXrandr"
18 BUILD_DEPENDS="bash pkg-config xorg-xextproto cups-dev libcomerr3 \
19 gobject-introspection-dev libffi-dev perl"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 ./configure \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 --with-html-dir=/usr/share/doc &&
29 make -j 4 &&
30 make DESTDIR=$DESTDIR 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/gtk-builder-convert $fs/usr/bin
50 }
52 # Pre and post install commands for Tazpkg.
53 post_install()
54 {
55 local arg
56 echo "Processing post-install commands..."
57 if [ ! -d $1/etc/gtk-2.0 ]; then
58 mkdir -p $1/etc/gtk-2.0
59 fi
60 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
61 # Force reinstall of clearlooks theme (1.0 compatibilty until
62 # clearlooks are updated)
63 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
64 arg="--forced"
65 [ -n "$1" ] && arg="--forced --root=$1/"
66 tazpkg get-install clearlooks $arg
67 rm -rf $1/usr/lib/gtk-2.0/2.4.0
68 fi
69 }