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