wok-next annotate gtk+/receipt @ rev 312
More deps and build-deps for gtk+
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Mar 03 00:15:12 2008 +0100 (2008-03-03) |
parents | d103e8bbb768 |
children | 2cce67662331 |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="gtk+" |
pankso@22 | 4 VERSION="2.8.20" |
pankso@22 | 5 CATEGORY="x-window" |
pankso@22 | 6 SHORT_DESC="The GIMP Toolkit." |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@312 | 8 DEPENDS="cairo glib pango atk libpng jpeg fontconfig freetype" |
pankso@312 | 9 BUILD_DEPENDS="cairo-dev glib-dev pango-dev atk-dev libpng-dev jpeg-dev |
pankso@312 | 10 pkgconfig xorg-dev xorg-dev-proto fontconfig-dev freetype-dev" |
pankso@22 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 12 WEB_SITE="http://www.gtk.org/" |
pankso@22 | 13 WGET_URL="ftp://ftp.gtk.org/pub/gtk/v2.8/$TARBALL" |
pankso@22 | 14 |
pankso@22 | 15 # Rules to configure and make the package. |
pankso@22 | 16 compile_rules() |
pankso@22 | 17 { |
pankso@22 | 18 cd $src |
pankso@22 | 19 ./configure --prefix=/usr --sysconfdir=/etc \ |
pankso@22 | 20 --mandir=/usr/share/man --with-html-dir=/usr/share/doc \ |
pankso@22 | 21 $CONFIGURE_ARGS |
pankso@22 | 22 make |
pankso@22 | 23 make DESTDIR=$PWD/_pkg install |
pankso@22 | 24 } |
pankso@22 | 25 |
pankso@22 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 27 genpkg_rules() |
pankso@22 | 28 { |
pankso@22 | 29 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share/locale $fs/usr/bin |
pankso@115 | 30 |
pankso@22 | 31 # Libs. |
pankso@22 | 32 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@22 | 33 cp -a $_pkg/usr/lib/gtk-2.0/2.4.0 $fs/usr/lib/gtk-2.0 |
pankso@22 | 34 rm -rf $fs/usr/lib/gtk-2.0/2.4.0/*/*.la |
pankso@115 | 35 |
pankso@22 | 36 # Locale. |
pankso@22 | 37 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale |
pankso@22 | 38 cp -a $_pkg/usr/share/themes $fs/usr/share |
pankso@115 | 39 |
pankso@22 | 40 # Apps. |
pankso@22 | 41 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin |
pankso@22 | 42 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin |
pankso@22 | 43 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin |
pankso@22 | 44 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin |
pankso@115 | 45 |
pankso@22 | 46 # Config files. |
pankso@22 | 47 mkdir -p $fs/etc/gtk-2.0 |
pankso@22 | 48 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules |
pankso@22 | 49 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@115 | 50 |
pankso@22 | 51 # Strip all files. |
pankso@22 | 52 strip --strip-all $fs/usr/bin/* |
pankso@22 | 53 strip --strip-unneeded $fs/usr/lib/*.so* |
pankso@22 | 54 strip --strip-unneeded $fs/usr/lib/gtk-2.0/2.4.0/*/* |
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@22 | 60 local root |
pankso@22 | 61 root=$1 |
pankso@22 | 62 echo "Processing post-install commands..." |
pankso@22 | 63 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules |
pankso@22 | 64 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@22 | 65 } |
pankso@22 | 66 SELF_INSTALL=1 |