wok-current view abiword/receipt @ rev 12952

wv: fix configure
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 31 13:01:06 2012 +0200 (2012-05-31)
parents 8e4c74abdf74
children cf7d783d1fdf
line source
1 # SliTaz package receipt.
3 PACKAGE="abiword"
4 VERSION="2.8.6"
5 CATEGORY="office"
6 SHORT_DESC="Light and speed word processing application."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+ libgnomeprint libgnomeprintui libgnomecanvas fribidi libglade \
9 popt libxml2 libart_lgpl libgsf libgio enchant wv xorg-libXdamage gcc-lib-base librsvg \
10 goffice glibc-locale"
11 BUILD_DEPENDS="$DEPENDS gtk+-dev libgnomeprint-dev libgnomeprintui-dev \
12 fribidi-dev libglade-dev popt-dev libxml2-dev libart_lgpl-dev libgsf-dev \
13 enchant-dev wv-dev libgnomecanvas-dev libcroco-dev libboost-dev librsvg-dev"
14 SUGGESTED="abiword-extras"
15 TARBALL="$PACKAGE-$VERSION.tar.gz"
16 WEB_SITE="http://www.abisource.com/"
17 WGET_URL="http://www.abisource.com/downloads/abiword/$VERSION/source/$TARBALL"
18 TAGS="word doc office"
20 # Rules to configure and make the package. --enable-extra-optimization \
21 compile_rules()
22 {
23 cd $src
24 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h
25 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h
26 sed -i 's|--no-undefined||' src/Makefile*
27 ./configure \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 --enable-plugins \
32 --enable-clipart \
33 --enable-templates \
34 --disable-collab-backend-sugar \
35 $CONFIGURE_ARGS &&
36 make $MAKEFLAGS &&
37 make DESTDIR=$PWD/_pkg install
39 cd plugins
40 make DESTDIR=$src/_pkg install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons
48 cp -a $_pkg/usr/bin $fs/usr
49 cp -a $_pkg/usr/lib/*.so $fs/usr/lib
51 cp -a $_pkg/usr/share/abiword-* $fs/usr/share
52 # Non standard pixmap
53 cp $_pkg/usr/share/icons/abiword_48.png \
54 $fs/usr/share/pixmaps/abiword.png
55 # fix error when abiword is run in command line
56 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png
57 # Non-standard locale use : get english, spanish, french, german
58 rm $fs/usr/share/abiword-*/strings/*
59 rm $fs/usr/share/abiword-*/templates/*
60 rm $fs/usr/share/abiword-*/system.pro*
61 cp $_pkg/usr/share/abiword-*/strings/d* \
62 $_pkg/usr/share/abiword-*/strings/e* \
63 $_pkg/usr/share/abiword-*/strings/f* \
64 $fs/usr/share/abiword-*/strings/
65 cp $_pkg/usr/share/abiword-*/templates/normal.awt \
66 $_pkg/usr/share/abiword-*/templates/normal.awt-d* \
67 $_pkg/usr/share/abiword-*/templates/normal.awt-e* \
68 $_pkg/usr/share/abiword-*/templates/normal.awt-f* \
69 $fs/usr/share/abiword-*/templates/
71 cp $_pkg/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/
73 cp $_pkg/usr/share/abiword-*/system.profile \
74 $_pkg/usr/share/abiword-*/system.profile-d* \
75 $_pkg/usr/share/abiword-*/system.profile-e* \
76 $_pkg/usr/share/abiword-*/system.profile-f* \
77 $fs/usr/share/abiword-*/
79 }