wok-6.x view pango/receipt @ rev 17591
syslinux/isohybrib.exe: add --md5, --undo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 10 08:53:27 2015 +0100 (2015-02-10) |
parents | 3ba86ab5ebce |
children | db2a14c92f8b |
line source
1 # SliTaz package receipt.
3 PACKAGE="pango"
4 VERSION="1.33.7"
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 harfbuzz 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 harfbuzz-dev fontconfig-dev freetype-dev"
20 # Handle cross compilation
21 case "$ARCH" in
22 i?86)
23 BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
24 arm*)
25 export LIBTOOL=${HOST_SYSTEM}-libtool
26 ARCH_ARGS="--enable-introspection=no" ;;
27 esac
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 ./configure \
33 --prefix=/usr \
34 --sysconfdir=/etc \
35 --with-html-dir=/usr/share/doc \
36 $CONFIGURE_ARGS $ARCH_ARGS &&
37 make && make 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 $fs/etc/pango
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.8.0/modules/*.la
48 [ -d "$install/etc" ] && 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 }