wok annotate 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
rev   line source
pankso@148 1 # SliTaz package receipt.
pankso@148 2
pankso@148 3 PACKAGE="inkscape"
yuripourre@17710 4 VERSION="0.91"
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"
Hans-G?nter@22376 9 WEB_SITE="http://www.inkscape.org"
Hans-G?nter@22376 10
pascal@15002 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
yuripourre@17711 12 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
yuripourre@17711 13 WGET_URL="$WEB_SITE/en/gallery/item/3860/$TARBALL"
pascal@15002 14 TAGS="image vector editor svg"
pascal@15002 15
pankso@2577 16 DEPENDS="gc gtk+ libxslt libsigc++ glibmm gtkmm libxml2 libpng popt \
Hans-G?nter@22376 17 xorg-libXdamage gsl aspell libgiomm lcms gtkspell libgomp poppler gcc-lib-base"
pankso@4248 18 BUILD_DEPENDS="gc-dev gtk+-dev libxslt-dev libsigc++-dev glibmm-dev \
Hans-G?nter@22376 19 gtkmm-dev atkmm-dev popt-dev libgiomm-dev gsl gsl-dev lcms-dev gtkspell \
Hans-G?nter@22376 20 gtkspell-dev cairomm-dev libboost-dev libxml2-dev zlib-dev autoconf pkg-config \
Hans-G?nter@22376 21 intltool xorg-libXau-dev xorg-libXdmcp-dev automake libtool"
pankso@148 22
pankso@148 23 # Rules to configure and make the package.
pankso@148 24 compile_rules()
pankso@148 25 {
al@17288 26 for patchfile in $(cat $stuff/patches/series); do
al@17288 27 patch -p1 -i $stuff/patches/$patchfile
al@17288 28 done
al@17288 29
al@17289 30 # hack to define '_' and 'Q_' functions
al@17289 31 for file in $(find $src/src -type f); do
al@17289 32 sed -i 's|glibmm/i18n.h|glib/gi18n.h|g' $file
al@17289 33 done
al@17289 34
pascal@21153 35 find . -name Makefile.in | xargs sed -i 's|@AUTOMAKE@|automake|'
pankso@148 36 ./configure \
pankso@148 37 --prefix=/usr \
pankso@148 38 --mandir=/usr/share/man \
pascal@1538 39 $CONFIGURE_ARGS &&
gokhlayeh@11574 40 make $MAKEFLAGS &&
slaxemulator@11006 41 make DESTDIR=$DESTDIR install
pankso@148 42 }
pankso@148 43
pankso@148 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@148 45 genpkg_rules()
pankso@148 46 {
pankso@2577 47 mkdir -p $fs/usr/share
slaxemulator@12992 48 cp -a $install/usr/bin $fs/usr
pankso@2577 49
pankso@2577 50 # Copy all Inkscape files and remove tutorials (19,2 Mb) + misc files
slaxemulator@12992 51 cp -a $install/usr/share/inkscape $fs/usr/share
pankso@2577 52 rm -rf $fs/usr/share/inkscape/clipart
pankso@148 53 rm -rf $fs/usr/share/inkscape/tutorials
pankso@148 54 rm -rf $fs/usr/share/inkscape/examples
al@17288 55
al@17288 56 # Desktop file
al@17288 57 cp -a $install/usr/share/applications $fs/usr/share
al@17288 58 DESKTOP=$fs/usr/share/applications/inkscape.desktop
al@17288 59 sed -i '/^Name/d; s|X-GNOME-Full||g' $DESKTOP
al@17288 60 sdft $DESKTOP -g -tf -te -i
al@17288 61
al@17288 62 # Icons
al@17288 63 cp -a $install/usr/share/icons $fs/usr/share
al@17288 64 rm -rf $fs/usr/share/icons/hicolor/256x256
pankso@148 65 }