wok view mtpaint/receipt @ rev 21138

link mtpaint with libjpeg-9c
author Hans-G?nter Theisgen
date Sat Mar 23 14:43:14 2019 +0100 (6 months ago)
parents 3c0ca53f8f39
children 01e7a064c392
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 WEB_SITE="http://mtpaint.sourceforge.net/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 WGET_URL="https://github.com/wjaguar/mtPaint/archive/$COMMIT.tar.gz"
16 DEPENDS="gtk+ libpng lcms2"
17 BUILD_DEPENDS="gtk+-dev libpng-dev lcms2-dev zlib-dev cairo-dev"
18 #HOST_ARCH="i486 arm"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 patch -p0 < $stuff/mtpaint.patch
24 sed 's/mem_undo_limit,\t32/mem_undo_limit,\t256/' -i $src/src/mainwindow.c
26 case "$ARCH" in
27 i?86)
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpng12"
29 ./configure \
30 --cpu=$ARCH \
31 --prefix=/usr \
32 intl nogif nojp2 ;;
33 arm*)
34 # we need: arm-slitaz-linux-gnueabi-pkg-config
35 ./configure \
36 --prefix=/usr \
37 --host=${HOST_SYSTEM} \
38 intl nogif
39 esac &&
40 make -j 1 &&
41 make DESTDIR=$install install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p \
48 $fs/usr/share/applications \
49 $fs/usr/share/pixmaps \
50 $fs/etc/mtpaint \
51 $fs/usr/share/thumbnailers
53 cp -a $install/usr/bin $fs/usr
54 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin
55 cp $stuff/*.desktop $fs/usr/share/applications
56 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps
57 cp $stuff/mtpaintrc $fs/etc/mtpaint
58 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers
59 }