wok view gtk+/receipt @ rev 18525

Up poedit(1.8.6), add poedit-i18n (Poedit localization files)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Oct 26 18:17:02 2015 +0200 (2015-10-26)
parents efcdba50dcb9
children 124c3a7da04f
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 harfbuzz"
21 BUILD_DEPENDS="atk-dev pango-dev gdk-pixbuf-dev dbus-dev dbus-glib-dev \
22 xorg-inputproto libxcb-dev fontconfig-dev freetype-dev pixman-dev libxml2-dev \
23 libpng-dev libffi-dev xorg-xextproto harfbuzz-dev faenza-icon-theme optipng \
24 xorg-libX11-dev xorg-libXext-dev xorg-libXrender-dev automake"
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 . $stuff/replace-icons; cd $src
43 patch -p0 < $stuff/undo_gen_icons.patch
45 ./configure \
46 --prefix=/usr \
47 --sysconfdir=/etc \
48 --with-html-dir=/usr/share/doc \
49 $CONFIGURE_ARGS ${ARCH_ARGS} &&
50 # https://bugzilla.gnome.org/show_bug.cgi?id=655517
51 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool &&
52 make $MAKEFLAGS $LIBTOOL &&
53 make DESTDIR=$DESTDIR install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin
61 # Libs.
62 cp -a $install/usr/lib/*.so* $fs/usr/lib
63 cp -a $install/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0
64 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la
66 # Themes
67 cp -a $install/usr/share/themes $fs/usr/share
69 # Apps.
70 cp -a $install/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin
71 cp -a $install/usr/bin/gtk-update-icon-cache $fs/usr/bin
72 cp -a $install/usr/bin/gtk-builder-convert $fs/usr/bin
74 mkdir -p $fs/etc/gtk-2.0
75 touch $fs/etc/gtk-2.0/gtk.immodules
76 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
77 $fs/etc/gtk-2.0/gdk-pixbuf.loaders
78 }
80 # Pre and post install commands for Tazpkg.
81 post_install()
82 {
83 local arg
84 echo "Processing post-install commands..."
85 mkdir -p $1/etc/gtk-2.0
86 chroot $1/ /usr/bin/gtk-query-immodules-2.0 > $1/etc/gtk-2.0/gtk.immodules
87 }