wok-current view inkscape/receipt @ rev 22376
glibmm-dev was new compiled
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 27 16:57:11 2019 +0100 (2019-11-27) |
parents | dcaa989c1de7 |
children | 6a1c02baeaf8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="inkscape"
4 VERSION="0.91"
5 CATEGORY="graphics"
6 SHORT_DESC="vector-based drawing program"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.inkscape.org"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 WGET_URL="$WEB_SITE/en/gallery/item/3860/$TARBALL"
14 TAGS="image vector editor svg"
16 DEPENDS="gc gtk+ libxslt libsigc++ glibmm gtkmm libxml2 libpng popt \
17 xorg-libXdamage gsl aspell libgiomm lcms gtkspell libgomp poppler gcc-lib-base"
18 BUILD_DEPENDS="gc-dev gtk+-dev libxslt-dev libsigc++-dev glibmm-dev \
19 gtkmm-dev atkmm-dev popt-dev libgiomm-dev gsl gsl-dev lcms-dev gtkspell \
20 gtkspell-dev cairomm-dev libboost-dev libxml2-dev zlib-dev autoconf pkg-config \
21 intltool xorg-libXau-dev xorg-libXdmcp-dev automake libtool"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 for patchfile in $(cat $stuff/patches/series); do
27 patch -p1 -i $stuff/patches/$patchfile
28 done
30 # hack to define '_' and 'Q_' functions
31 for file in $(find $src/src -type f); do
32 sed -i 's|glibmm/i18n.h|glib/gi18n.h|g' $file
33 done
35 find . -name Makefile.in | xargs sed -i 's|@AUTOMAKE@|automake|'
36 ./configure \
37 --prefix=/usr \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS &&
40 make $MAKEFLAGS &&
41 make DESTDIR=$DESTDIR install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share
48 cp -a $install/usr/bin $fs/usr
50 # Copy all Inkscape files and remove tutorials (19,2 Mb) + misc files
51 cp -a $install/usr/share/inkscape $fs/usr/share
52 rm -rf $fs/usr/share/inkscape/clipart
53 rm -rf $fs/usr/share/inkscape/tutorials
54 rm -rf $fs/usr/share/inkscape/examples
56 # Desktop file
57 cp -a $install/usr/share/applications $fs/usr/share
58 DESKTOP=$fs/usr/share/applications/inkscape.desktop
59 sed -i '/^Name/d; s|X-GNOME-Full||g' $DESKTOP
60 sdft $DESKTOP -g -tf -te -i
62 # Icons
63 cp -a $install/usr/share/icons $fs/usr/share
64 rm -rf $fs/usr/share/icons/hicolor/256x256
65 }