wok view pango/receipt @ rev 16103

ARM: add dwm, dmenu, mpc, nmpc
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 18 22:35:00 2014 +0100 (2014-03-18)
parents 53082fab5f1e
children 7ab1534edf55
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 i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
23 arm*) export LDFLAGS="-L/cross/$ARCH/sysroot/usr/lib" ;;
24 esac
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 cd $src
30 ./configure \
31 --prefix=/usr \
32 --sysconfdir=/etc \
33 --mandir=/usr/share/man \
34 --with-html-dir=/usr/share/doc \
35 $CONFIGURE_ARGS &&
36 make &&
37 make DESTDIR=$DESTDIR install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/bin $fs/usr/lib
44 cp -a $install/usr/bin/* $fs/usr/bin
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/lib/pango $fs/usr/lib
47 rm -rf $fs/usr/lib/pango/1.6.0/modules/*.la
48 cp -a $install/etc $fs
49 touch $fs/etc/pango/pango.modules
50 }
52 # Pre and post install commands for Tazpkg.
53 post_install()
54 {
55 echo "Processing post-install commands..."
56 # Rebuilds pango.modules when installed.
57 chroot $1/ /usr/bin/pango-querymodules > $1/etc/pango/pango.modules
58 }