wok-next annotate gtk+/receipt @ rev 1982
Add: urxvt
author | Pierre-Jean Fichet <sygne@ombres.eu> |
---|---|
date | Sun Jan 04 18:42:50 2009 +0100 (2009-01-04) |
parents | 4da89e6150fe |
children | 4751fd396e9b |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="gtk+" |
pankso@863 | 4 VERSION="2.12.10" |
pankso@22 | 5 CATEGORY="x-window" |
pankso@22 | 6 SHORT_DESC="The GIMP Toolkit." |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@848 | 8 DEPENDS="cairo glib pango atk libpng jpeg fontconfig freetype pixman" |
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@848 | 11 freetype-dev pixman-dev" |
pankso@22 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 13 WEB_SITE="http://www.gtk.org/" |
pankso@836 | 14 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.12/$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 \ |
pascal@1634 | 26 $CONFIGURE_ARGS && |
pascal@1634 | 27 make && |
pankso@22 | 28 make DESTDIR=$PWD/_pkg install |
pankso@22 | 29 } |
pankso@22 | 30 |
pankso@22 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 32 genpkg_rules() |
pankso@22 | 33 { |
pankso@547 | 34 mkdir -p $fs/usr/lib/gtk-2.0 $fs/usr/share $fs/usr/bin |
pankso@836 | 35 |
pankso@22 | 36 # Libs. |
pankso@22 | 37 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@547 | 38 cp -a $_pkg/usr/lib/gtk-2.0/2.10.0 $fs/usr/lib/gtk-2.0 |
pankso@547 | 39 rm -rf $fs/usr/lib/gtk-2.0/2.10.0/*/*.la |
pankso@836 | 40 |
pankso@547 | 41 # Themes |
pankso@22 | 42 cp -a $_pkg/usr/share/themes $fs/usr/share |
pankso@836 | 43 |
pankso@22 | 44 # Apps. |
pankso@22 | 45 cp $_pkg/usr/bin/gtk-query-immodules-2.0 $fs/usr/bin |
pankso@22 | 46 cp $_pkg/usr/bin/gtk-update-icon-cache $fs/usr/bin |
pankso@22 | 47 cp $_pkg/usr/bin/gdk-pixbuf-csource $fs/usr/bin |
pankso@22 | 48 cp $_pkg/usr/bin/gdk-pixbuf-query-loaders $fs/usr/bin |
pankso@836 | 49 |
pankso@22 | 50 # Config files. |
pankso@22 | 51 mkdir -p $fs/etc/gtk-2.0 |
pankso@22 | 52 gtk-query-immodules-2.0 > $fs/etc/gtk-2.0/gtk.immodules |
pankso@22 | 53 gdk-pixbuf-query-loaders > $fs/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@22 | 54 } |
pankso@22 | 55 |
pankso@22 | 56 # Pre and post install commands for Tazpkg. |
pankso@22 | 57 post_install() |
pankso@22 | 58 { |
pankso@22 | 59 local root |
pankso@22 | 60 root=$1 |
pankso@22 | 61 echo "Processing post-install commands..." |
pankso@22 | 62 /usr/bin/gtk-query-immodules-2.0 > $root/etc/gtk-2.0/gtk.immodules |
pankso@22 | 63 /usr/bin/gdk-pixbuf-query-loaders > $root/etc/gtk-2.0/gdk-pixbuf.loaders |
pankso@836 | 64 # Force reinstall of clearlooks theme (1.0 compatibilty until |
pankso@836 | 65 # clearlooks are updated) |
pankso@836 | 66 if [ -d $root/usr/lib/gtk-2.0/2.4.0 ]; then |
pankso@836 | 67 tazpkg get-install clearlooks --forced |
pankso@836 | 68 rm -rf $root/usr/lib/gtk-2.0/2.4.0 |
pankso@836 | 69 fi |
pankso@22 | 70 } |
pascal@1925 | 71 |
pascal@1925 | 72 # We need this package on build host to install it in target directory |
pankso@22 | 73 SELF_INSTALL=1 |