wok-next view pango/receipt @ rev 16091
Up xine-lib (1.2.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 16 10:04:50 2014 +0000 (2014-03-16) |
parents | bc08dfb0b2f6 |
children | 1a0b3262dccf |
line source
1 # SliTaz package receipt.
3 PACKAGE="pango"
4 VERSION="1.30.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Library for layout and rendering of text."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.pango.org/"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
12 CONFIG_FILES="/etc/pango/pango.modules"
13 #HOST_ARCH="i486 arm"
15 DEPENDS="cairo glib expat libxml2 xorg-libXft fontconfig freetype xcb-util \
16 bzlib slitaz-base-files gcc-lib-base"
17 BUILD_DEPENDS="cairo-dev glib-dev expat-dev libxml2-dev xorg-libXft-dev \
18 libgio-dev"
20 # Handle cross compilation
21 case "$ARCH" in
22 arm*) export LDFLAGS="-L/cross/$ARCH/sysroot/usr/lib" ;;
23 esac
25 # Handle cross compilation
26 case "$ARCH" in
27 i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
28 esac
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 cd $src
34 ./configure \
35 --prefix=/usr \
36 --sysconfdir=/etc \
37 --mandir=/usr/share/man \
38 --with-html-dir=/usr/share/doc \
39 $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/bin $fs/usr/lib
48 cp -a $install/usr/bin/* $fs/usr/bin
49 cp -a $install/usr/lib/*.so* $fs/usr/lib
50 cp -a $install/usr/lib/pango $fs/usr/lib
51 rm -rf $fs/usr/lib/pango/1.6.0/modules/*.la
52 cp -a $install/etc $fs
53 touch $fs/etc/pango/pango.modules
54 }
56 # Pre and post install commands for Tazpkg.
57 post_install()
58 {
59 echo "Processing post-install commands..."
60 # Rebuilds pango.modules when installed.
61 chroot $1/ /usr/bin/pango-querymodules > $1/etc/pango/pango.modules
62 }