wok-next view gtk+/receipt @ rev 17894
Up lemon (3.8.08.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 02 17:27:03 2015 +0200 (2015-04-02) |
parents | 65c2d146ec2c |
children | 9817bbff89ec |
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 faenza-icon-theme optipng \
25 xorg-libX11-dev xorg-libXext-dev xorg-libXrender-dev automake"
27 # Handle cross compilation.
28 case "$ARCH" in
29 i?86)
30 BUILD_DEPENDS="$BUILD_DEPENDS bash pkg-config cups-dev perl \
31 gobject-introspection-dev" ;;
32 arm*)
33 ARCH_ARGS="--enable-introspection=no --disable-glibtest --disable-cups \
34 --disable-papi --with-gdktarget=x11 --with-xinput gio_can_sniff=yes"
35 export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib"
36 export CPPFLAGS="$CPPFLAGS -I/cross/$ARCH/sysroot/usr/include"
37 export LIBTOOL=${HOST_SYSTEM}-libtool ;;
38 esac
40 # Rules to configure and make the package.
41 compile_rules()
42 {
43 . $stuff/replace-icons; cd $src
44 patch -p0 < $stuff/undo_gen_icons.patch
46 ./configure \
47 --prefix=/usr \
48 --sysconfdir=/etc \
49 --with-html-dir=/usr/share/doc \
50 $CONFIGURE_ARGS ${ARCH_ARGS} &&
51 # https://bugzilla.gnome.org/show_bug.cgi?id=655517
52 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool &&
53 make $MAKEFLAGS $LIBTOOL &&
54 make DESTDIR=$DESTDIR install
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
62 # Libs.
63 cp -a $install/usr/lib/*.so* $fs/usr/lib
64 cp -a $install/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
65 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
67 # Themes
68 cp -a $install/usr/share/themes $fs/usr/share
70 # Apps.
71 cp -a $install/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
72 cp -a $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
73 cp -a $install/usr/bin/gtk-builder-convert $fs/usr/bin
75 mkdir -p $fs/etc/gtk-2.0
76 touch $fs/etc/gtk-2.0/gtk.immodules
77 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
78 $fs/etc/gtk-2.0/gdk-pixbuf.loaders
79 }
81 # Pre and post install commands for Tazpkg.
82 post_install()
83 {
84 local arg
85 echo "Processing post-install commands..."
86 if [ ! -d $1/etc/gtk-2.0 ]; then
87 mkdir -p $1/etc/gtk-2.0
88 fi
89 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
90 # Force reinstall of clearlooks theme (1.0 compatibilty until
91 # clearlooks are updated)
92 if [ -d $1/usr/lib/gtk-2.0/2.4.0 ]; then
93 arg="--forced"
94 [ -n "$1" ] && arg="--forced --root=$1/"
95 tazpkg get-install clearlooks $arg
96 rm -rf $1/usr/lib/gtk-2.0/2.4.0
97 fi
98 }