wok-next view gtk+/receipt @ rev 16043
Up: .hgignore
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 09 16:31:42 2014 +0100 (2014-03-09) |
parents | 900d2585af14 |
children | 696015c40e54 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.24.18"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SUGGESTED="cups gnutls libgcrypt libgpg-error"
10 TARBALL="$PACKAGE-$VERSION.tar.xz"
11 WEB_SITE="http://www.gtk.org/"
12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
13 CONFIG_FILES="/etc/gtk-2.0/gtk.immodules"
14 CROSS="bug: /bin/bash: no: command not found"
16 DEPENDS="glibc-base expat libxcb xcb-util zlib glib cairo pango atk libpng \
17 jpeg tiff gdk-pixbuf fontconfig freetype pixman libgio xorg-libX11 xorg-libXau \
18 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext \
19 xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXrandr"
20 BUILD_DEPENDS="bash pkg-config xorg-xextproto cups-dev libcomerr3 cups dbus-dev \
21 gobject-introspection gobject-introspection-dev libffi-dev perl atk-dev \
22 pango-dev cairo-dev gdk-pixbuf-dev libxml2-dev"
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 ./configure \
29 --prefix=/usr \
30 --sysconfdir=/etc \
31 --with-html-dir=/usr/share/doc \
32 --build=$HOST_SYSTEM --host=$HOST_SYSTEM
33 # https://bugzilla.gnome.org/show_bug.cgi?id=655517
34 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
35 make $MAKEFLAGS &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
44 # Libs.
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
47 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
49 # Themes
50 cp -a $install/usr/share/themes $fs/usr/share
52 # Apps.
53 cp -a $install/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
54 cp -a $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
55 cp -a $install/usr/bin/gtk-builder-convert $fs/usr/bin
57 mkdir -p $fs/etc/gtk-2.0
58 touch $fs/etc/gtk-2.0/gtk.immodules
59 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
60 $fs/etc/gtk-2.0/gdk-pixbuf.loaders
61 }
63 # Pre and post install commands for Tazpkg.
64 post_install()
65 {
66 local arg
67 echo "Processing post-install commands..."
68 if [ ! -d $1/etc/gtk-2.0 ]; then
69 mkdir -p $1/etc/gtk-2.0
70 fi
71 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
72 # Force reinstall of clearlooks theme (1.0 compatibilty until
73 # clearlooks are updated)
74 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
75 arg="--forced"
76 [ -n "$1" ] && arg="--forced --root=$1/"
77 tazpkg get-install clearlooks $arg
78 rm -rf $1/usr/lib/gtk-2.0/2.4.0
79 fi
80 }