wok-next view gtk+/receipt @ rev 17141
Add some ssh tags
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 10 11:15:31 2014 +0200 (2014-09-10) |
parents | 3ce3b57fd0bc |
children | acc112d7f4e2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="gtk+"
4 VERSION="2.24.24"
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 HOST_ARCH="i486 arm"
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 clearlooks \
20 harfbuzz"
22 BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
23 xorg-inputproto libxcb-dev fontconfig-dev freetype-dev pixman-dev libxml2-dev \
24 libpng-dev libffi-dev xorg-xextproto harfbuzz-dev"
26 # Handle cross compilation.
27 case "$ARCH" in
28 i?86)
29 BUILD_DEPENDS="$BUILD_DEPENDS bash pkg-config cups-dev perl
30 gobject-introspection-dev" ;;
31 arm*)
32 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \
33 --disable-papi --with-gdktarget=x11 --with-xinput gio_can_sniff=yes"
34 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
35 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include"
36 export LIBTOOL=${HOST_SYSTEM}-libtool ;;
37 esac
39 # Rules to configure and make the package.
40 compile_rules()
41 {
42 ./configure \
43 --prefix=/usr \
44 --sysconfdir=/etc \
45 --with-html-dir=/usr/share/doc \
46 $CONFIGURE_ARGS ${ARCH_ARGS} &&
47 # https://bugzilla.gnome.org/show_bug.cgi?id=655517
48 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool &&
49 make $MAKEFLAGS $LIBTOOL &&
50 make DESTDIR=$DESTDIR install
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
58 # Libs.
59 cp -a $install/usr/lib/*.so* $fs/usr/lib
60 cp -a $install/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
61 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
63 # Themes
64 cp -a $install/usr/share/themes $fs/usr/share
66 # Apps.
67 cp -a $install/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
68 cp -a $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
69 cp -a $install/usr/bin/gtk-builder-convert $fs/usr/bin
71 mkdir -p $fs/etc/gtk-2.0
72 touch $fs/etc/gtk-2.0/gtk.immodules
73 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
74 $fs/etc/gtk-2.0/gdk-pixbuf.loaders
75 }
77 # Pre and post install commands for Tazpkg.
78 post_install()
79 {
80 local arg
81 echo "Processing post-install commands..."
82 if [ ! -d $1/etc/gtk-2.0 ]; then
83 mkdir -p $1/etc/gtk-2.0
84 fi
85 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
86 # Force reinstall of clearlooks theme (1.0 compatibilty until
87 # clearlooks are updated)
88 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
89 arg="--forced"
90 [ -n "$1" ] && arg="--forced --root=$1/"
91 tazpkg get-install clearlooks $arg
92 rm -rf $1/usr/lib/gtk-2.0/2.4.0
93 fi
94 }