wok-current view mtpaint/receipt @ rev 19801
Up cacerts (20170224)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Feb 25 14:22:38 2017 +0200 (2017-02-25) |
parents | 9db5705d64a7 |
children | 3c0ca53f8f39 |
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,\t64/' -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 }