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