wok annotate 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 |
rev | line source |
---|---|
pankso@22 | 1 # SliTaz package receipt. |
pankso@22 | 2 |
pankso@22 | 3 PACKAGE="pango" |
slaxemulator@13172 | 4 VERSION="1.30.1" |
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" |
pascal@15000 | 8 LICENSE="GPL2" |
slaxemulator@13172 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@22 | 10 WEB_SITE="http://www.pango.org/" |
slaxemulator@11055 | 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL" |
slaxemulator@11055 | 12 CONFIG_FILES="/etc/pango/pango.modules" |
pankso@16084 | 13 #HOST_ARCH="i486 arm" |
slaxemulator@11055 | 14 |
pascal@11231 | 15 DEPENDS="cairo glib expat libxml2 xorg-libXft fontconfig freetype xcb-util \ |
pascal@13148 | 16 bzlib slitaz-base-files gcc-lib-base" |
pankso@15911 | 17 BUILD_DEPENDS="cairo-dev glib-dev expat-dev libxml2-dev xorg-libXft-dev \ |
pankso@16084 | 18 libgio-dev" |
pankso@16084 | 19 |
pankso@16084 | 20 # Handle cross compilation |
pankso@16084 | 21 case "$ARCH" in |
pankso@16103 | 22 i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;; |
pankso@16084 | 23 arm*) export LDFLAGS="-L/cross/$ARCH/sysroot/usr/lib" ;; |
pankso@16084 | 24 esac |
pankso@16084 | 25 |
pankso@22 | 26 # Rules to configure and make the package. |
pankso@22 | 27 compile_rules() |
pankso@22 | 28 { |
pankso@22 | 29 cd $src |
pankso@547 | 30 ./configure \ |
pankso@547 | 31 --prefix=/usr \ |
pankso@547 | 32 --sysconfdir=/etc \ |
pankso@547 | 33 --mandir=/usr/share/man \ |
pankso@547 | 34 --with-html-dir=/usr/share/doc \ |
pascal@1634 | 35 $CONFIGURE_ARGS && |
pascal@1634 | 36 make && |
slaxemulator@11055 | 37 make DESTDIR=$DESTDIR install |
pankso@22 | 38 } |
pankso@22 | 39 |
pankso@22 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 41 genpkg_rules() |
pankso@22 | 42 { |
pankso@22 | 43 mkdir -p $fs/usr/bin $fs/usr/lib |
slaxemulator@11055 | 44 cp -a $install/usr/bin/* $fs/usr/bin |
slaxemulator@11055 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@11055 | 46 cp -a $install/usr/lib/pango $fs/usr/lib |
pankso@577 | 47 rm -rf $fs/usr/lib/pango/1.6.0/modules/*.la |
slaxemulator@11055 | 48 cp -a $install/etc $fs |
gokhlayeh@9472 | 49 touch $fs/etc/pango/pango.modules |
pankso@22 | 50 } |
pankso@22 | 51 |
pankso@22 | 52 # Pre and post install commands for Tazpkg. |
pankso@22 | 53 post_install() |
pankso@22 | 54 { |
pankso@22 | 55 echo "Processing post-install commands..." |
slaxemulator@11055 | 56 # Rebuilds pango.modules when installed. |
pascal@5125 | 57 chroot $1/ /usr/bin/pango-querymodules > $1/etc/pango/pango.modules |
pankso@22 | 58 } |
slaxemulator@6397 | 59 |