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