wok-next annotate mtpaint/receipt @ rev 20869

mono: fix build on 32-bit
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Jul 02 10:15:48 2018 +0300 (2018-07-02)
parents f879ce3f57b0
children 91196fd023de
rev   line source
al@20526 1 # SliTaz package receipt v2.
pankso@42 2
pankso@42 3 PACKAGE="mtpaint"
al@20526 4 VERSION="3.49.13"
al@20526 5 COMMIT="3884b6d"
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@20526 10 WEB_SITE="http://mtpaint.sourceforge.net/"
al@20526 11
al@17948 12 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@17948 13 WGET_URL="https://github.com/wjaguar/mtPaint/archive/$COMMIT.tar.gz"
pankso@42 14
al@20454 15 BUILD_DEPENDS="gtk+-dev libpng16-dev lcms-dev zlib-dev gettext"
pankso@12120 16
al@20526 17 compile_rules() {
psychomaniak@18845 18 sed 's/mem_undo_limit,\t32/mem_undo_limit,\t64/' -i $src/src/mainwindow.c
al@20526 19
pankso@16334 20 case "$ARCH" in
al@20526 21 i?86) ARCH_ARGS="--cpu=$ARCH intl nogif nojp2";;
al@20526 22 arm*) ARCH_ARGS="--host=$HOST_SYSTEM intl nogif";;
al@20526 23 x86_64) ARCH_ARGS="intl nogif nojp2";;
al@20526 24 esac
al@20526 25
al@20526 26 ./configure \
al@20526 27 --prefix=/usr \
al@20526 28 $ARCH_ARGS &&
al@20526 29 make &&
al@20526 30 make DESTDIR=$install install || return 1
al@20526 31
al@20526 32 mkdir -p $install/usr/share/applications/
al@20526 33 install -Dm644 $stuff/*.desktop $install/usr/share/applications/
al@20526 34 install -Dm755 $stuff/mtpaint-doc $install/usr/bin/mtpaint-doc
al@20526 35 install -Dm644 $src/doc/mtpaint.png $install/usr/share/pixmaps/mtpaint.png
al@20526 36 install -Dm644 $stuff/mtpaintrc $install/etc/mtpaint/mtpaintrc
pankso@42 37 }
pankso@42 38
al@20526 39 genpkg_rules() {
al@20526 40 copy @std
al@20526 41 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ lcms \
al@20526 42 libjpeg-turbo libpng16 pango tiff xorg-libX11 zlib"
pankso@42 43 }