wok-next annotate inkscape/receipt @ rev 2577
inkscape: Fix build (sed sp-xmlview-attr-list.h)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 06 23:19:01 2009 +0200 (2009-04-06) |
parents | be4b9618ea05 |
children | 860caab15e6b |
rev | line source |
---|---|
pankso@148 | 1 # SliTaz package receipt. |
pankso@148 | 2 |
pankso@148 | 3 PACKAGE="inkscape" |
pankso@148 | 4 VERSION="0.45.1" |
pankso@207 | 5 CATEGORY="graphics" |
pankso@148 | 6 SHORT_DESC="Vector drawing application." |
pankso@148 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@2577 | 8 DEPENDS="gc gtk+ libxslt libsigc++ glibmm gtkmm libxml2 libpng popt \ |
pankso@2577 | 9 xorg-libXdamage libgiomm" |
pankso@2577 | 10 BUILD_DEPENDS="gc-dev gtk+-dev libxslt-dev libsigc++-dev glibmm-dev gtkmm-dev \ |
pankso@2577 | 11 popt-dev libgiomm-dev" |
pankso@148 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@148 | 13 WEB_SITE="http://www.inkscape.org/" |
pankso@148 | 14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@148 | 15 |
pankso@148 | 16 # Rules to configure and make the package. |
pankso@148 | 17 compile_rules() |
pankso@148 | 18 { |
pankso@148 | 19 cd $src |
pascal@1538 | 20 grep -rl glib/gmessages . | while read file; do |
pascal@1538 | 21 echo "Patching $file..." |
pascal@1538 | 22 sed -i 's|glib/gmessages|glib|' $file |
pascal@1538 | 23 done |
pankso@2577 | 24 # gtk-clist fix |
pankso@2577 | 25 sed -i s/gtkclist.h/gtk.h/ src/widgets/sp-xmlview-attr-list.h |
pankso@148 | 26 ./configure \ |
pankso@148 | 27 --prefix=/usr \ |
pankso@148 | 28 --mandir=/usr/share/man \ |
pankso@148 | 29 --disable-lcms \ |
pankso@2577 | 30 --disable-inkboard \ |
pascal@1538 | 31 $CONFIGURE_ARGS && |
pascal@1538 | 32 make && |
pankso@148 | 33 make DESTDIR=$PWD/_pkg install |
pankso@148 | 34 } |
pankso@148 | 35 |
pankso@148 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@148 | 37 genpkg_rules() |
pankso@148 | 38 { |
pankso@2577 | 39 mkdir -p $fs/usr/share |
pankso@148 | 40 cp -a $_pkg/usr/bin $fs/usr |
pankso@2577 | 41 |
pankso@2577 | 42 # Copy all Inkscape files and remove tutorials (19,2 Mb) + misc files |
pankso@148 | 43 cp -a $_pkg/usr/share/inkscape $fs/usr/share |
pankso@2577 | 44 rm -rf $fs/usr/share/inkscape/extensions |
pankso@2577 | 45 rm -rf $fs/usr/share/inkscape/clipart |
pankso@148 | 46 rm -rf $fs/usr/share/inkscape/tutorials |
pankso@148 | 47 rm -rf $fs/usr/share/inkscape/examples |
pankso@2577 | 48 rm -rf $fs/usr/share/inkscape/screens/keys* |
pankso@148 | 49 } |
pankso@148 | 50 |