wok-6.x view gtk+/receipt @ rev 16188
ympd: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 30 18:14:36 2014 +0000 (2014-03-30) |
parents | 2a69ae5600b8 |
children | 2cf493b6c670 |
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"
15 HOST_ARCH="i486 arm"
16 CROSS_BUGS="/bin/bash: no: command not found"
18 DEPENDS="glibc-base expat libxcb xcb-util zlib glib cairo pango atk libpng \
19 jpeg tiff gdk-pixbuf fontconfig freetype pixman libgio xorg-libX11 xorg-libXau \
20 xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext \
21 xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXrandr"
22 BUILD_DEPENDS="bash pkg-config xorg-xextproto cups-dev libcomerr3 \
23 dbus-dev gobject-introspection-dev libffi-dev perl atk-dev pango-dev \
24 cairo-dev gdk-pixbuf-dev libxml2-dev"
26 # Handle cross compilation.
27 case "$ARCH" in
28 arm*)
29 BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
30 xorg-inputproto"
31 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \
32 --disable-papi --with-gdktarget=x11 --with-xinput --enable-display-migration \
33 gio_can_sniff=yes"
34 export LDFLAGS=-L/cross/$ARCH/sysroot/usr/lib
35 export CPPFLAGS=-I/cross/$ARCH/sysroot/usr/include ;;
36 esac
38 # Rules to configure and make the package.
39 compile_rules()
40 {
41 ./configure \
42 --prefix=/usr \
43 --sysconfdir=/etc \
44 --with-html-dir=/usr/share/doc \
45 $CONFIGURE_ARGS $ARCH_ARGS &&
46 # https://bugzilla.gnome.org/show_bug.cgi?id=655517
47 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool &&
48 make $MAKEFLAGS &&
49 make DESTDIR=$DESTDIR install
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
57 # Libs.
58 cp -a $install/usr/lib/*.so* $fs/usr/lib
59 cp -a $install/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
60 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
62 # Themes
63 cp -a $install/usr/share/themes $fs/usr/share
65 # Apps.
66 cp -a $install/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
67 cp -a $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
68 cp -a $install/usr/bin/gtk-builder-convert $fs/usr/bin
70 mkdir -p $fs/etc/gtk-2.0
71 touch $fs/etc/gtk-2.0/gtk.immodules
72 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
73 $fs/etc/gtk-2.0/gdk-pixbuf.loaders
74 }
76 # Pre and post install commands for Tazpkg.
77 post_install()
78 {
79 local arg
80 echo "Processing post-install commands..."
81 if [ ! -d $1/etc/gtk-2.0 ]; then
82 mkdir -p $1/etc/gtk-2.0
83 fi
84 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
85 # Force reinstall of clearlooks theme (1.0 compatibilty until
86 # clearlooks are updated)
87 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
88 arg="--forced"
89 [ -n "$1" ] && arg="--forced --root=$1/"
90 tazpkg get-install clearlooks $arg
91 rm -rf $1/usr/lib/gtk-2.0/2.4.0
92 fi
93 }