wok-6.x annotate abiword/receipt @ rev 5803

Speedup some builds
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 11 20:31:13 2010 +0200 (2010-07-11)
parents c603a1546d49
children 96a646809281
rev   line source
pankso@46 1 # SliTaz package receipt.
pankso@46 2
pankso@46 3 PACKAGE="abiword"
jozee@5272 4 VERSION="2.8.4"
pankso@205 5 CATEGORY="office"
pankso@46 6 SHORT_DESC="Light and speed word processing application."
pankso@46 7 MAINTAINER="pankso@slitaz.org"
pankso@3853 8 DEPENDS="gtk+ libgnomeprint libgnomeprintui libgnomecanvas fribidi libglade \
gokhlayeh@5780 9 popt libxml2 libart_lgpl libgsf libgio enchant wv xorg-libXdamage gcc-lib-base librsvg \
gokhlayeh@5780 10 goffice"
pankso@3853 11 BUILD_DEPENDS="$DEPENDS gtk+-dev libgnomeprint-dev libgnomeprintui-dev \
pankso@3853 12 fribidi-dev libglade-dev popt-dev libxml2-dev libart_lgpl-dev libgsf-dev \
jozee@5272 13 enchant-dev wv-dev libgnomecanvas-dev libcroco-dev libboost-dev"
pankso@573 14 SUGGESTED="abiword-extras"
pankso@573 15 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@46 16 WEB_SITE="http://www.abisource.com/"
pankso@733 17 WGET_URL="http://www.abisource.com/downloads/abiword/$VERSION/source/$TARBALL"
jozee@4931 18 TAGS="word doc office"
pankso@46 19
jozee@5272 20 # Rules to configure and make the package. --enable-extra-optimization \
pankso@46 21 compile_rules()
pankso@46 22 {
pankso@573 23 cd $src
pankso@46 24 ./configure \
pankso@46 25 --prefix=/usr \
pankso@46 26 --infodir=/usr/share/info \
pankso@46 27 --mandir=/usr/share/man \
jozee@5272 28 --enable-plugins \
jozee@5272 29 --enable-clipart \
jozee@5272 30 --enable-templates \
jozee@5272 31 --disable-collab-backend-sugar \
pascal@4998 32 $CONFIGURE_ARGS &&
pascal@5803 33 make -j 4 &&
pankso@573 34 make DESTDIR=$PWD/_pkg install
jozee@5272 35
jozee@5272 36 cd plugins
jozee@5272 37 make DESTDIR=$src/_pkg install
pankso@46 38 }
pankso@46 39
pankso@46 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@46 41 genpkg_rules()
pankso@46 42 {
jozee@5272 43 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins
jozee@5272 44
pankso@46 45 cp -a $_pkg/usr/bin $fs/usr
jozee@5272 46 cp -a $_pkg/usr/lib/*.so $fs/usr/lib
jozee@5272 47
pankso@573 48 cp -a $_pkg/usr/share/abiword-* $fs/usr/share
pankso@3853 49 # Non standard pixmap
pankso@46 50 cp $_pkg/usr/share/icons/abiword_48.png \
pankso@46 51 $fs/usr/share/pixmaps/abiword.png
jozee@2800 52 # Non-standard locale use : get english, spanish, french, german
jozee@2800 53 rm $fs/usr/share/abiword-*/strings/*
jozee@2800 54 rm $fs/usr/share/abiword-*/templates/*
jozee@2800 55 rm $fs/usr/share/abiword-*/system.pro*
jozee@2800 56 cp $_pkg/usr/share/abiword-*/strings/d* \
jozee@2800 57 $_pkg/usr/share/abiword-*/strings/e* \
jozee@2800 58 $_pkg/usr/share/abiword-*/strings/f* \
jozee@2800 59 $fs/usr/share/abiword-*/strings/
jozee@2800 60 cp $_pkg/usr/share/abiword-*/templates/normal.awt \
jozee@2800 61 $_pkg/usr/share/abiword-*/templates/normal.awt-d* \
jozee@2800 62 $_pkg/usr/share/abiword-*/templates/normal.awt-e* \
jozee@2800 63 $_pkg/usr/share/abiword-*/templates/normal.awt-f* \
jozee@2800 64 $fs/usr/share/abiword-*/templates/
jozee@5275 65
jozee@5275 66 cp $_pkg/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
jozee@5275 67
jozee@2800 68 cp $_pkg/usr/share/abiword-*/system.profile \
jozee@2800 69 $_pkg/usr/share/abiword-*/system.profile-d* \
jozee@2800 70 $_pkg/usr/share/abiword-*/system.profile-e* \
jozee@2800 71 $_pkg/usr/share/abiword-*/system.profile-f* \
jozee@2800 72 $fs/usr/share/abiword-*/
jozee@2800 73
pankso@46 74 }
pankso@46 75