wok annotate abiword/receipt @ rev 12875
abiword: fix compile_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 25 12:51:07 2012 +0200 (2012-05-25) |
parents | 8e4c74abdf74 |
children | cf7d783d1fdf |
rev | line source |
---|---|
pankso@46 | 1 # SliTaz package receipt. |
pankso@46 | 2 |
pankso@46 | 3 PACKAGE="abiword" |
slaxemulator@6146 | 4 VERSION="2.8.6" |
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 \ |
slaxemulator@9244 | 10 goffice glibc-locale" |
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 \ |
slaxemulator@6146 | 13 enchant-dev wv-dev libgnomecanvas-dev libcroco-dev libboost-dev librsvg-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 |
pascal@12875 | 24 sed -i 's|glib/gmacros.h|glib.h|' goffice-bits/goffice/app/goffice-app.h |
pascal@12875 | 25 sed -i 's|glib/gerror.h|glib.h|' src/af/util/xp/ut_go_file.h |
pascal@12875 | 26 sed -i 's|--no-undefined||' src/Makefile* |
pankso@46 | 27 ./configure \ |
pankso@46 | 28 --prefix=/usr \ |
pankso@46 | 29 --infodir=/usr/share/info \ |
pankso@46 | 30 --mandir=/usr/share/man \ |
jozee@5272 | 31 --enable-plugins \ |
jozee@5272 | 32 --enable-clipart \ |
jozee@5272 | 33 --enable-templates \ |
jozee@5272 | 34 --disable-collab-backend-sugar \ |
pascal@4998 | 35 $CONFIGURE_ARGS && |
gokhlayeh@11574 | 36 make $MAKEFLAGS && |
pankso@573 | 37 make DESTDIR=$PWD/_pkg install |
jozee@5272 | 38 |
jozee@5272 | 39 cd plugins |
jozee@5272 | 40 make DESTDIR=$src/_pkg install |
pankso@46 | 41 } |
pankso@46 | 42 |
pankso@46 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@46 | 44 genpkg_rules() |
pankso@46 | 45 { |
slaxemulator@7481 | 46 mkdir -p $fs/usr/share/pixmaps $fs/usr/lib/abiword-2.8/plugins $fs/usr/share/icons |
jozee@5272 | 47 |
pankso@46 | 48 cp -a $_pkg/usr/bin $fs/usr |
jozee@5272 | 49 cp -a $_pkg/usr/lib/*.so $fs/usr/lib |
jozee@5272 | 50 |
pankso@573 | 51 cp -a $_pkg/usr/share/abiword-* $fs/usr/share |
pankso@3853 | 52 # Non standard pixmap |
pankso@46 | 53 cp $_pkg/usr/share/icons/abiword_48.png \ |
pankso@46 | 54 $fs/usr/share/pixmaps/abiword.png |
slaxemulator@7481 | 55 # fix error when abiword is run in command line |
slaxemulator@7481 | 56 ln -sf /usr/share/pixmaps/abiword.png $fs/usr/share/icons/abiword_48.png |
jozee@2800 | 57 # Non-standard locale use : get english, spanish, french, german |
jozee@2800 | 58 rm $fs/usr/share/abiword-*/strings/* |
jozee@2800 | 59 rm $fs/usr/share/abiword-*/templates/* |
jozee@2800 | 60 rm $fs/usr/share/abiword-*/system.pro* |
jozee@2800 | 61 cp $_pkg/usr/share/abiword-*/strings/d* \ |
jozee@2800 | 62 $_pkg/usr/share/abiword-*/strings/e* \ |
jozee@2800 | 63 $_pkg/usr/share/abiword-*/strings/f* \ |
jozee@2800 | 64 $fs/usr/share/abiword-*/strings/ |
jozee@2800 | 65 cp $_pkg/usr/share/abiword-*/templates/normal.awt \ |
jozee@2800 | 66 $_pkg/usr/share/abiword-*/templates/normal.awt-d* \ |
jozee@2800 | 67 $_pkg/usr/share/abiword-*/templates/normal.awt-e* \ |
jozee@2800 | 68 $_pkg/usr/share/abiword-*/templates/normal.awt-f* \ |
jozee@2800 | 69 $fs/usr/share/abiword-*/templates/ |
jozee@5275 | 70 |
jozee@5275 | 71 cp $_pkg/usr/share/abiword-*/templates/*.awt $fs/usr/share/abiword-*/templates/ |
jozee@5275 | 72 |
jozee@2800 | 73 cp $_pkg/usr/share/abiword-*/system.profile \ |
jozee@2800 | 74 $_pkg/usr/share/abiword-*/system.profile-d* \ |
jozee@2800 | 75 $_pkg/usr/share/abiword-*/system.profile-e* \ |
jozee@2800 | 76 $_pkg/usr/share/abiword-*/system.profile-f* \ |
jozee@2800 | 77 $fs/usr/share/abiword-*/ |
jozee@2800 | 78 |
pankso@46 | 79 } |
pankso@46 | 80 |