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