wok-4.x annotate pango/receipt @ rev 22
Add : GTK+ with libs (atk, glib, etc)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Dec 18 13:47:26 2007 +0100 (2007-12-18) |
parents | |
children | d103e8bbb768 |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="pango" |
pankso@22 | 4 VERSION="1.14.8" |
pankso@22 | 5 CATEGORY="x-window" |
pankso@22 | 6 SHORT_DESC="Library for layout and rendering of text." |
pankso@22 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@22 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@22 | 9 WEB_SITE="http://www.pango.org/" |
pankso@22 | 10 WGET_URL="ftp://ftp.gtk.org/pub/pango/1.14/$TARBALL" |
pankso@22 | 11 |
pankso@22 | 12 # Rules to configure and make the package. |
pankso@22 | 13 compile_rules() |
pankso@22 | 14 { |
pankso@22 | 15 cd $src |
pankso@22 | 16 ./configure --prefix=/usr --sysconfdir=/etc \ |
pankso@22 | 17 --mandir=/usr/share/man --with-html-dir=/usr/share/doc \ |
pankso@22 | 18 $CONFIGURE_ARGS |
pankso@22 | 19 make |
pankso@22 | 20 make DESTDIR=$PWD/_pkg install |
pankso@22 | 21 } |
pankso@22 | 22 |
pankso@22 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 24 genpkg_rules() |
pankso@22 | 25 { |
pankso@22 | 26 mkdir -p $fs/usr/bin $fs/usr/lib |
pankso@22 | 27 cp -a $_pkg/usr/bin/* $fs/usr/bin |
pankso@22 | 28 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@22 | 29 cp -a $_pkg/usr/lib/pango $fs/usr/lib |
pankso@22 | 30 rm -rf $fs/usr/lib/pango/1.5.0/modules/*.la |
pankso@22 | 31 cp -a $_pkg/etc $fs |
pankso@22 | 32 pango-querymodules > $fs/etc/pango/pango.modules |
pankso@22 | 33 # Strip. |
pankso@22 | 34 strip --strip-unneeded $fs/usr/bin/* |
pankso@22 | 35 strip --strip-unneeded $fs/usr/lib/*.so* |
pankso@22 | 36 strip --strip-unneeded $fs/usr/lib/pango/1.5.0/modules/* |
pankso@22 | 37 } |
pankso@22 | 38 |
pankso@22 | 39 # Pre and post install commands for Tazpkg. |
pankso@22 | 40 post_install() |
pankso@22 | 41 { |
pankso@22 | 42 local root |
pankso@22 | 43 root=$1 |
pankso@22 | 44 echo "Processing post-install commands..." |
pankso@22 | 45 # Rebuils pango.modules when installed. |
pankso@22 | 46 pango-querymodules > $root/etc/pango/pango.modules |
pankso@22 | 47 } |
pankso@22 | 48 SELF_INSTALL=1 |