wok-current annotate gtk+/receipt @ rev 2052
gtk+: (build)depends on libgio
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Jan 17 20:50:01 2009 +0100 (2009-01-17) |
parents | 4751fd396e9b |
children | 5396b083ef0f |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="gtk+" |
pankso@2002 | 4 VERSION="2.14.7" |
pankso@22 | 5 CATEGORY="x-window" |
pankso@22 | 6 SHORT_DESC="The GIMP Toolkit." |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@2052 | 8 DEPENDS="cairo glib pango atk libpng jpeg fontconfig freetype pixman libgio" |
pankso@836 | 9 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev |
pankso@836 | 10 pkg-config xorg-dev xorg-dev-proto fontconfig-dev |
pankso@2052 | 11 freetype-dev pixman-dev tiff-dev libgio-dev" |
pankso@22 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 13 WEB_SITE="http://www.gtk.org/" |
pankso@2002 | 14 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/2.14/$TARBALL" |
pascal@1634 | 15 CONFIG_FILES="/etc/gtk-2.0" |
pankso@22 | 16 |
pankso@22 | 17 # Rules to configure and make the package. |
pankso@22 | 18 compile_rules() |
pankso@22 | 19 { |
pankso@22 | 20 cd $src |
pankso@547 | 21 ./configure \ |
pankso@547 | 22 --prefix=/usr \ |
pankso@547 | 23 --sysconfdir=/etc \ |
pankso@547 | 24 --mandir=/usr/share/man \ |
pankso@547 | 25 --with-html-dir=/usr/share/doc \ |
pankso@2002 | 26 --without-libjasper \ |
pankso@2052 | 27 $CONFIGURE_ARGS |
pankso@2052 | 28 make |
pankso@22 | 29 make DESTDIR=$PWD/_pkg install |
pankso@22 | 30 } |
pankso@22 | 31 |
pankso@22 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 33 genpkg_rules() |
pankso@22 | 34 { |
pankso@547 | 35 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin |
pankso@836 | 36 |
pankso@22 | 37 # Libs. |
pankso@2002 | 38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@2002 | 39 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0 |
pankso@2002 | 40 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la |
pankso@836 | 41 |
pankso@2002 | 42 # Themes |
pankso@2002 | 43 cp -a $_pkg/usr/share/themes $fs/usr/share |
pankso@836 | 44 |
pankso@2002 | 45 # Apps. |
pankso@2002 | 46 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin |
pankso@2002 | 47 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin |
pankso@2002 | 48 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin |
pankso@2002 | 49 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin |
pankso@836 | 50 |
pankso@2002 | 51 # Config files. |
pankso@2002 | 52 mkdir -p $fs/etc/gtk-2.0 |
pankso@2002 | 53 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules |
pankso@2002 | 54 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@22 | 55 } |
pankso@22 | 56 |
pankso@22 | 57 # Pre and post install commands for Tazpkg. |
pankso@22 | 58 post_install() |
pankso@22 | 59 { |
pankso@2002 | 60 local root |
pankso@2002 | 61 root=$1 |
pankso@2002 | 62 echo "Processing post-install commands..." |
pankso@2002 | 63 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules |
pankso@2002 | 64 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@2002 | 65 # Force reinstall of clearlooks theme (1.0 compatibilty until |
pankso@2002 | 66 # clearlooks are updated) |
pankso@2002 | 67 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then |
pankso@2002 | 68 tazpkg get-install clearlooks --forced |
pankso@2002 | 69 rm -rf $root/usr/lib/gtk-2.0/2.4.0 |
pankso@2002 | 70 fi |
pankso@22 | 71 } |
pankso@22 | 72 SELF_INSTALL=1 |