wok-next annotate inkscape/receipt @ rev 1538

inkscape: hack compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Oct 10 08:13:05 2008 +0000 (2008-10-10)
parents b64b8906e6a7
children be4b9618ea05
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"
erjo@1070 8 DEPENDS="gc gtk+ libxslt libsigc++ glibmm gtkmm libxml2 libpng popt PyXML"
erjo@252 9 BUILD_DEPENDS="gc-dev gtk+-dev libxslt-dev libsigc++-dev glibmm-dev gtkmm-dev popt-dev"
pankso@148 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@148 11 WEB_SITE="http://www.inkscape.org/"
pankso@148 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@148 13
pankso@148 14 # Rules to configure and make the package.
pankso@148 15 compile_rules()
pankso@148 16 {
pankso@148 17 cd $src
pascal@1538 18 grep -rl glib/gmessages . | while read file; do
pascal@1538 19 echo "Patching $file..."
pascal@1538 20 sed -i 's|glib/gmessages|glib|' $file
pascal@1538 21 done
pankso@148 22 ./configure \
pankso@148 23 --prefix=/usr \
pankso@148 24 --mandir=/usr/share/man \
pankso@148 25 --disable-lcms \
pascal@1538 26 $CONFIGURE_ARGS &&
pascal@1538 27 make &&
pankso@148 28 make DESTDIR=$PWD/_pkg install
pankso@148 29 }
pankso@148 30
pankso@148 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@148 32 genpkg_rules()
pankso@148 33 {
pankso@148 34 mkdir -p $fs/usr/share/locale
pankso@148 35 cp -a $_pkg/usr/bin $fs/usr
pankso@148 36 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
pankso@148 37 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
pankso@148 38
pankso@148 39 # Copy all Inkscape files and remove tutorials (19,2 Mb),
pankso@148 40 # examples + screens
pankso@148 41 cp -a $_pkg/usr/share/inkscape $fs/usr/share
pankso@148 42 rm -rf $fs/usr/share/inkscape/tutorials
pankso@148 43 rm -rf $fs/usr/share/inkscape/examples
pankso@148 44 rm -rf $fs/usr/share/inkscape/screens/keys.de.svg
pankso@148 45 rm -rf $fs/usr/share/inkscape/screens/keys.sl.svg
pankso@148 46
pankso@148 47 strip -s $fs/usr/bin/* 2>/dev/null
pankso@148 48 }
pankso@148 49