wok annotate pango/receipt @ rev 16959

mplayer-opt: typo, --disable-esd
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue Jul 29 01:39:13 2014 +0200 (2014-07-29)
parents 5f72ca8e3060
children 3ba86ab5ebce
rev   line source
pankso@22 1 # SliTaz package receipt.
pankso@22 2
pankso@22 3 PACKAGE="pango"
yuripourre@16862 4 VERSION="1.32.6"
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@16133 13 HOST_ARCH="i486 arm"
slaxemulator@11055 14
yuripourre@16862 15 DEPENDS="cairo glib expat libxml2 xorg-libXft harfbuzz 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 \
yuripourre@16862 18 libgio-dev harfbuzz-dev fontconfig-dev freetype-dev"
pankso@16084 19
pankso@16084 20 # Handle cross compilation
pankso@16084 21 case "$ARCH" in
pankso@16133 22 i?86)
pankso@16133 23 BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
pankso@16133 24 arm*)
pankso@16133 25 export LIBTOOL=${HOST_SYSTEM}-libtool
pankso@16133 26 ARCH_ARGS="--enable-introspection=no" ;;
pankso@16084 27 esac
pankso@16084 28
pankso@16133 29 # Rules to configure and make the package.
pankso@22 30 compile_rules()
pankso@22 31 {
pankso@16133 32 ./configure \
pankso@16133 33 --prefix=/usr \
pankso@16133 34 --sysconfdir=/etc \
pankso@16133 35 --with-html-dir=/usr/share/doc \
pankso@16133 36 $CONFIGURE_ARGS $ARCH_ARGS &&
pankso@16133 37 make && make 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@16133 43 mkdir -p $fs/usr/bin $fs/usr/lib $fs/etc/pango
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
pankso@16133 48 [ -d "$install/etc" ] && 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@16311 57 chroot $1/ /usr/bin/pango-querymodules > $1/etc/pango/pango.modules
pankso@22 58 }
slaxemulator@6397 59