wok-current annotate inkscape/receipt @ rev 24360

ardour: give gcc83 a try
author Hans-G?nter Theisgen
date Fri Feb 04 07:19:07 2022 +0100 (2022-02-04)
parents a8233c46d85f
children af8d823a3077
rev   line source
pankso@148 1 # SliTaz package receipt.
pankso@148 2
pankso@148 3 PACKAGE="inkscape"
Hans-G?nter@23817 4 VERSION="0.92.5"
pankso@207 5 CATEGORY="graphics"
Hans-G?nter@22378 6 TAGS="image vector editor svg"
Hans-G?nter@22378 7 SHORT_DESC="Vector-based drawing program."
pankso@148 8 MAINTAINER="pankso@slitaz.org"
pascal@15002 9 LICENSE="GPL2"
Hans-G?nter@23817 10 WEB_SITE="https://www.inkscape.org"
Hans-G?nter@22376 11
pascal@15002 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
Hans-G?nter@23817 13 WGET_URL="https://media.inkscape.org/dl/resources/file/$TARBALL"
pascal@15002 14
Hans-G?nter@23827 15 DEPENDS="aspell gc gcc-lib-base glibmm gsl gtk+ gtkmm gtkspell
Hans-G?nter@23817 16 lcms2 libgiomm libgomp libpng libsigc++ libxml2 libxslt poppler
Hans-G?nter@23817 17 popt xorg-libXdamage"
Hans-G?nter@23817 18 BUILD_DEPENDS="atkmm-dev cairomm-dev cmake gc-dev gettext glibmm-dev
Hans-G?nter@23817 19 gtk+-dev gtkmm-dev gsl-dev gtkspell-dev intltool lcms2-dev
Hans-G?nter@22378 20 libboost-dev libgiomm-dev libsigc++-dev libtool libxml2-dev
Hans-G?nter@22378 21 libxslt-dev pkg-config poppler-dev popt-dev xorg-libXau-dev
mojo@23848 22 xorg-libXdmcp-dev zlib-dev util-linux-uuid-dev"
mojo@23848 23
mojo@23848 24 COOKOPTS="!svgz !fixdesktops"
pankso@148 25
pankso@148 26 # Rules to configure and make the package.
pankso@148 27 compile_rules()
pankso@148 28 {
Hans-G?nter@23817 29 # for patchfile in $(cat $stuff/patches/series); do
Hans-G?nter@23817 30 # patch -p1 -i $stuff/patches/$patchfile
Hans-G?nter@23817 31 # done
al@17288 32
al@17289 33 # hack to define '_' and 'Q_' functions
Hans-G?nter@23828 34 rm src/2geom/!PLEASE* # avoid sed errors
Hans-G?nter@23828 35 rm src/libdepixelize/!PLEASE* # avoid sed errors
Hans-G?nter@23817 36 for file in $(find $src/src -type f)
Hans-G?nter@23817 37 do
al@17289 38 sed -i 's|glibmm/i18n.h|glib/gi18n.h|g' $file
Hans-G?nter@23817 39 done
al@17289 40
Hans-G?nter@23817 41 mkdir _build
Hans-G?nter@23817 42 cd _build
Hans-G?nter@23817 43 cmake .. \
Hans-G?nter@23817 44 -DCMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@23817 45 -DCMAKE_BUILD_TYPE=Release &&
gokhlayeh@11574 46 make $MAKEFLAGS &&
slaxemulator@11006 47 make DESTDIR=$DESTDIR install
pankso@148 48 }
pankso@148 49
pankso@148 50 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@148 51 genpkg_rules()
pankso@148 52 {
Hans-G?nter@23827 53 mkdir -p $fs/usr/lib/inkscape
pankso@2577 54 mkdir -p $fs/usr/share
Hans-G?nter@23827 55
Hans-G?nter@23817 56 cp -a $install/usr/bin $fs/usr
Hans-G?nter@23827 57 cp -a $install/usr/lib/inkscape/lib*.so* \
Hans-G?nter@23827 58 $fs/usr/lib/inkscape
pankso@2577 59
pankso@2577 60 # Copy all Inkscape files and remove tutorials (19,2 Mb) + misc files
Hans-G?nter@23817 61 cp -a $install/usr/share/inkscape $fs/usr/share
Hans-G?nter@23817 62 rm -rf $fs/usr/share/inkscape/clipart
Hans-G?nter@23817 63 rm -rf $fs/usr/share/inkscape/tutorials
Hans-G?nter@23817 64 rm -rf $fs/usr/share/inkscape/examples
al@17288 65
al@17288 66 # Desktop file
Hans-G?nter@23817 67 cp -a $install/usr/share/applications $fs/usr/share
al@17288 68
al@17288 69 # Icons
Hans-G?nter@23817 70 cp -a $install/usr/share/icons $fs/usr/share
Hans-G?nter@23817 71 rm -rf $fs/usr/share/icons/hicolor/256x256
pankso@148 72 }