wok-4.x view gtk+/receipt @ rev 10274

ncurses*: build fail if native build system is used so use the compiler machine type
author Christophe Lincoln <pankso@slitaz.org>
date Sat May 21 21:22:47 2011 +0200 (2011-05-21)
parents 588b8e050fb4
children 43e3267023cb
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 $CONFIGURE_ARGS &&
30 make -j 4 &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
39 # Libs.
40 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
41 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
42 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
44 # Themes
45 cp -a $_pkg/usr/share/themes $fs/usr/share
47 # Apps.
48 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
49 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin
50 cp $_pkg/usr/bin/gtk-builder-convert $fs/usr/bin
51 }
53 # Pre and post install commands for Tazpkg.
54 post_install()
55 {
56 local arg
57 echo "Processing post-install commands..."
58 if [ ! -d $1/etc/gtk-2.0 ]; then
59 mkdir -p $1/etc/gtk-2.0
60 fi
61 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
62 # Force reinstall of clearlooks theme (1.0 compatibilty until
63 # clearlooks are updated)
64 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
65 arg="--forced"
66 [ -n "$1" ] && arg="--forced --root=$1/"
67 tazpkg get-install clearlooks $arg
68 rm -rf $1/usr/lib/gtk-2.0/2.4.0
69 fi
70 }