wok view mtpaint/receipt @ rev 23204
updated mupen64plus (2.5 -> 2.5.9)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 21 09:55:24 2020 +0100 (2020-03-21) |
parents | 01e7a064c392 |
children | ee53899c6189 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mtpaint"
4 VERSION="3.49.25"
5 COMMIT="03b1b0938067b88d86d9f1b1088730f1934d411e"
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="cairo-dev gtk+-dev lcms2-dev libpng-dev zlib-dev"
19 #HOST_ARCH="i486 arm"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 patch -p0 < $stuff/mtpaint.patch
25 sed -i 's/mem_undo_limit,\t32/mem_undo_limit,\t256/' \
26 $src/src/mainwindow.c
28 case "$ARCH" in
29 i?86)
30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpng12"
31 ./configure \
32 --cpu=$ARCH \
33 --prefix=/usr \
34 intl nogif nojp2 ;;
35 arm*)
36 # we need: arm-slitaz-linux-gnueabi-pkg-config
37 ./configure \
38 --prefix=/usr \
39 --host=${HOST_SYSTEM} \
40 intl nogif
41 esac &&
42 make &&
43 make DESTDIR=$install install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share/applications
50 mkdir -p $fs/usr/share/pixmaps
51 mkdir -p $fs/etc/mtpaint
52 mkdir -p $fs/usr/share/thumbnailers
54 cp -a $install/usr/bin $fs/usr
55 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin
56 cp $stuff/*.desktop $fs/usr/share/applications
57 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps
58 cp $stuff/mtpaintrc $fs/etc/mtpaint
59 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers
60 }