wok-6.x annotate mtpaint/receipt @ rev 21431
updated mercurial (3.5.1 -> 4.9.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 27 10:26:40 2019 +0100 (2019-04-27) |
parents | 3c0ca53f8f39 |
children | 01e7a064c392 |
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" |
Hans-G?nter@21138 | 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" |
Hans-G?nter@21138 | 10 WEB_SITE="http://mtpaint.sourceforge.net/" |
Hans-G?nter@21138 | 11 |
al@17948 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@17948 | 13 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@17948 | 14 WGET_URL="https://github.com/wjaguar/mtPaint/archive/$COMMIT.tar.gz" |
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" |
Hans-G?nter@21138 | 18 #HOST_ARCH="i486 arm" |
pankso@12120 | 19 |
pankso@42 | 20 # Rules to configure and make the package. |
pankso@42 | 21 compile_rules() |
pankso@42 | 22 { |
al@17979 | 23 patch -p0 < $stuff/mtpaint.patch |
psychomaniak@20098 | 24 sed 's/mem_undo_limit,\t32/mem_undo_limit,\t256/' -i $src/src/mainwindow.c |
Hans-G?nter@21138 | 25 |
pankso@16334 | 26 case "$ARCH" in |
pankso@16334 | 27 i?86) |
pascal@19717 | 28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpng12" |
pankso@16334 | 29 ./configure \ |
pankso@16334 | 30 --cpu=$ARCH \ |
pankso@16334 | 31 --prefix=/usr \ |
psychomaniak@18394 | 32 intl nogif nojp2 ;; |
pankso@16334 | 33 arm*) |
pankso@16334 | 34 # we need: arm-slitaz-linux-gnueabi-pkg-config |
pankso@16334 | 35 ./configure \ |
pankso@16334 | 36 --prefix=/usr \ |
pankso@16334 | 37 --host=${HOST_SYSTEM} \ |
pankso@16334 | 38 intl nogif |
Hans-G?nter@21138 | 39 esac && |
Hans-G?nter@21138 | 40 make -j 1 && |
al@17948 | 41 make DESTDIR=$install install |
pankso@42 | 42 } |
pankso@42 | 43 |
pankso@42 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@42 | 45 genpkg_rules() |
pankso@42 | 46 { |
Hans-G?nter@21138 | 47 mkdir -p \ |
Hans-G?nter@21138 | 48 $fs/usr/share/applications \ |
Hans-G?nter@21138 | 49 $fs/usr/share/pixmaps \ |
Hans-G?nter@21138 | 50 $fs/etc/mtpaint \ |
Hans-G?nter@21138 | 51 $fs/usr/share/thumbnailers |
Hans-G?nter@21138 | 52 |
Hans-G?nter@21138 | 53 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21138 | 54 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin |
Hans-G?nter@21138 | 55 cp $stuff/*.desktop $fs/usr/share/applications |
Hans-G?nter@21138 | 56 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps |
Hans-G?nter@21138 | 57 cp $stuff/mtpaintrc $fs/etc/mtpaint |
Hans-G?nter@21138 | 58 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers |
pankso@42 | 59 } |