wok-next annotate inkscape/receipt @ rev 17690

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