wok view inkscape/receipt @ rev 17310

buildroot: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 02 12:25:01 2014 +0100 (2014-11-02)
parents 79ec1d5b20e4
children 807198b4ecff
line source
1 # SliTaz package receipt.
3 PACKAGE="inkscape"
4 VERSION="0.48.5"
5 CATEGORY="graphics"
6 SHORT_DESC="vector-based drawing program"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.inkscape.org/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 TAGS="image vector editor svg"
14 DEPENDS="gc gtk+ libxslt libsigc++ glibmm gtkmm libxml2 libpng popt \
15 xorg-libXdamage gsl aspell libgiomm lcms gtkspell libgomp poppler gcc-lib-base"
16 BUILD_DEPENDS="gc-dev gtk+-dev libxslt-dev libsigc++-dev glibmm-dev \
17 gtkmm-dev atkmm-dev popt-dev libgiomm-dev gsl gsl-dev lcms-dev gtkspell \
18 gtkspell-dev cairomm-dev libboost-dev libxml2-dev zlib-dev autoconf pkg-config \
19 intltool xorg-libXau-dev xorg-libXdmcp-dev automake libtool"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 for patchfile in $(cat $stuff/patches/series); do
25 patch -p1 -i $stuff/patches/$patchfile
26 done
28 # hack to define '_' and 'Q_' functions
29 for file in $(find $src/src -type f); do
30 sed -i 's|glibmm/i18n.h|glib/gi18n.h|g' $file
31 done
33 ./configure \
34 --prefix=/usr \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make $MAKEFLAGS &&
38 make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share
45 cp -a $install/usr/bin $fs/usr
47 # Copy all Inkscape files and remove tutorials (19,2 Mb) + misc files
48 cp -a $install/usr/share/inkscape $fs/usr/share
49 rm -rf $fs/usr/share/inkscape/clipart
50 rm -rf $fs/usr/share/inkscape/tutorials
51 rm -rf $fs/usr/share/inkscape/examples
53 # Desktop file
54 cp -a $install/usr/share/applications $fs/usr/share
55 DESKTOP=$fs/usr/share/applications/inkscape.desktop
56 sed -i '/^Name/d; s|X-GNOME-Full||g' $DESKTOP
57 sdft $DESKTOP -g -tf -te -i
59 # Icons
60 cp -a $install/usr/share/icons $fs/usr/share
61 rm -rf $fs/usr/share/icons/hicolor/256x256
62 }