wok-6.x view mtpaint/receipt @ rev 20098
mtpaint: rm unsupported gif in launcher, enable pcmanfm thumbnailer for largest pictures too
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sat Oct 07 18:33:42 2017 +0200 (2017-10-07) |
parents | 073f6f21af19 |
children | e06b96c403ca |
line source
1 # SliTaz package receipt.
3 PACKAGE="mtpaint"
4 VERSION="3.44.91"
5 COMMIT="15ec7b65d09bff5372253f9568d06ea97487f9dc"
6 CATEGORY="graphics"
7 SHORT_DESC="Painting program to create pixel art and manipulate digital photos"
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL3"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://mtpaint.sourceforge.net/"
12 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 WGET_URL="https://github.com/wjaguar/mtPaint/archive/$COMMIT.tar.gz"
14 #HOST_ARCH="i486 arm"
16 DEPENDS="gtk+ libpng lcms2"
17 BUILD_DEPENDS="gtk+-dev libpng-dev lcms2-dev zlib-dev cairo-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 patch -p0 < $stuff/mtpaint.patch
23 sed 's/mem_undo_limit,\t32/mem_undo_limit,\t256/' -i $src/src/mainwindow.c
24 case "$ARCH" in
25 i?86)
26 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpng12"
27 ./configure \
28 --cpu=$ARCH \
29 --prefix=/usr \
30 intl nogif nojp2 ;;
31 arm*)
32 # we need: arm-slitaz-linux-gnueabi-pkg-config
33 ./configure \
34 --prefix=/usr \
35 --host=${HOST_SYSTEM} \
36 intl nogif
37 esac && make &&
38 make DESTDIR=$install install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share/applications $fs/usr/share/pixmaps $fs/etc/mtpaint $fs/usr/share/thumbnailers
45 cp -a $install/usr/bin $fs/usr
46 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin
47 cp $stuff/*.desktop $fs/usr/share/applications
48 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps
49 cp $stuff/mtpaintrc $fs/etc/mtpaint
50 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers
51 }