wok-6.x annotate pango/receipt @ rev 16088
xfe: up but dont compile for arm
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 16 01:41:02 2014 +0100 (2014-03-16) |
parents | bc08dfb0b2f6 |
children | 1a0b3262dccf |
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@16084 | 22 arm*) export LDFLAGS="-L/cross/$ARCH/sysroot/usr/lib" ;; |
pankso@16084 | 23 esac |
pankso@16084 | 24 |
pankso@16084 | 25 # Handle cross compilation |
pankso@16084 | 26 case "$ARCH" in |
pankso@16084 | 27 i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;; |
pankso@16084 | 28 esac |
pankso@22 | 29 |
pankso@22 | 30 # Rules to configure and make the package. |
pankso@22 | 31 compile_rules() |
pankso@22 | 32 { |
pankso@22 | 33 cd $src |
pankso@547 | 34 ./configure \ |
pankso@547 | 35 --prefix=/usr \ |
pankso@547 | 36 --sysconfdir=/etc \ |
pankso@547 | 37 --mandir=/usr/share/man \ |
pankso@547 | 38 --with-html-dir=/usr/share/doc \ |
pascal@1634 | 39 $CONFIGURE_ARGS && |
pascal@1634 | 40 make && |
slaxemulator@11055 | 41 make DESTDIR=$DESTDIR install |
pankso@22 | 42 } |
pankso@22 | 43 |
pankso@22 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@22 | 45 genpkg_rules() |
pankso@22 | 46 { |
pankso@22 | 47 mkdir -p $fs/usr/bin $fs/usr/lib |
slaxemulator@11055 | 48 cp -a $install/usr/bin/* $fs/usr/bin |
slaxemulator@11055 | 49 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@11055 | 50 cp -a $install/usr/lib/pango $fs/usr/lib |
pankso@577 | 51 rm -rf $fs/usr/lib/pango/1.6.0/modules/*.la |
slaxemulator@11055 | 52 cp -a $install/etc $fs |
gokhlayeh@9472 | 53 touch $fs/etc/pango/pango.modules |
pankso@22 | 54 } |
pankso@22 | 55 |
pankso@22 | 56 # Pre and post install commands for Tazpkg. |
pankso@22 | 57 post_install() |
pankso@22 | 58 { |
pankso@22 | 59 echo "Processing post-install commands..." |
slaxemulator@11055 | 60 # Rebuilds pango.modules when installed. |
pascal@5125 | 61 chroot $1/ /usr/bin/pango-querymodules > $1/etc/pango/pango.modules |
pankso@22 | 62 } |
slaxemulator@6397 | 63 |