wok-current annotate gtk+/receipt @ rev 2723
Add: cdrdao, cdrdao-utils
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Fri Apr 24 07:25:20 2009 +0000 (2009-04-24) |
parents | e97c81ccdba0 |
children | 03ad5a05339c |
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" |
pascal@2608 | 8 DEPENDS="cairo glib pango atk libpng jpeg fontconfig freetype pixman libgio \ |
pascal@2608 | 9 xorg-libXdamage" |
pankso@836 | 10 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev |
pankso@836 | 11 pkg-config xorg-dev xorg-dev-proto fontconfig-dev |
pascal@2483 | 12 freetype-dev pixman-dev tiff-dev libgio-dev xorg-libXdamage |
pascal@2483 | 13 gnutls libgcrypt libgpg-error tiff" |
pascal@2611 | 14 SUGGESTED="cups tiff" |
pankso@22 | 15 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 16 WEB_SITE="http://www.gtk.org/" |
pankso@2002 | 17 WGET_URL="http://ftp.gnome.org/pub/gnome/sources/gtk+/2.14/$TARBALL" |
pascal@1634 | 18 CONFIG_FILES="/etc/gtk-2.0" |
pankso@22 | 19 |
pankso@22 | 20 # Rules to configure and make the package. |
pankso@22 | 21 compile_rules() |
pankso@22 | 22 { |
pankso@22 | 23 cd $src |
pankso@547 | 24 ./configure \ |
pankso@547 | 25 --prefix=/usr \ |
pankso@547 | 26 --sysconfdir=/etc \ |
pankso@547 | 27 --mandir=/usr/share/man \ |
pankso@547 | 28 --with-html-dir=/usr/share/doc \ |
pankso@2002 | 29 --without-libjasper \ |
pascal@2430 | 30 $CONFIGURE_ARGS && |
pascal@2430 | 31 make && |
pankso@22 | 32 make DESTDIR=$PWD/_pkg install |
pankso@22 | 33 } |
pankso@22 | 34 |
pankso@22 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 36 genpkg_rules() |
pankso@22 | 37 { |
pankso@547 | 38 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin |
pankso@836 | 39 |
pankso@22 | 40 # Libs. |
pankso@2002 | 41 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@2002 | 42 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0 |
pankso@2002 | 43 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la |
pankso@836 | 44 |
pankso@2002 | 45 # Themes |
pankso@2002 | 46 cp -a $_pkg/usr/share/themes $fs/usr/share |
pankso@836 | 47 |
pankso@2002 | 48 # Apps. |
pankso@2002 | 49 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin |
pankso@2002 | 50 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin |
pankso@2002 | 51 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin |
pankso@2002 | 52 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin |
pankso@836 | 53 |
pankso@2002 | 54 # Config files. |
pankso@2002 | 55 mkdir -p $fs/etc/gtk-2.0 |
pankso@2002 | 56 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules |
pankso@2002 | 57 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@22 | 58 } |
pankso@22 | 59 |
pankso@22 | 60 # Pre and post install commands for Tazpkg. |
pankso@22 | 61 post_install() |
pankso@22 | 62 { |
pankso@2002 | 63 local root |
pankso@2002 | 64 root=$1 |
pankso@2002 | 65 echo "Processing post-install commands..." |
pankso@2002 | 66 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules |
pankso@2002 | 67 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@2002 | 68 # Force reinstall of clearlooks theme (1.0 compatibilty until |
pankso@2002 | 69 # clearlooks are updated) |
pankso@2002 | 70 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then |
pankso@2002 | 71 tazpkg get-install clearlooks --forced |
pankso@2002 | 72 rm -rf $root/usr/lib/gtk-2.0/2.4.0 |
pankso@2002 | 73 fi |
pankso@22 | 74 } |
pankso@22 | 75 SELF_INSTALL=1 |