wok rev 21138

link mtpaint with libjpeg-9c
author Hans-G?nter Theisgen
date Sat Mar 23 14:43:14 2019 +0100 (2019-03-23)
parents 08a7f361d8d2
children 01a2ec0efad2
files mtpaint/receipt
line diff
     1.1 --- a/mtpaint/receipt	Sat Mar 23 13:21:39 2019 +0100
     1.2 +++ b/mtpaint/receipt	Sat Mar 23 14:43:14 2019 +0100
     1.3 @@ -4,23 +4,25 @@
     1.4  VERSION="3.44.91"
     1.5  COMMIT="15ec7b65d09bff5372253f9568d06ea97487f9dc"
     1.6  CATEGORY="graphics"
     1.7 -SHORT_DESC="Painting program to create pixel art and manipulate digital photos"
     1.8 +SHORT_DESC="Painting program to create pixel art and manipulate digital photos."
     1.9  MAINTAINER="pankso@slitaz.org"
    1.10  LICENSE="GPL3"
    1.11 +WEB_SITE="http://mtpaint.sourceforge.net/"
    1.12 +
    1.13  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 -WEB_SITE="http://mtpaint.sourceforge.net/"
    1.15  #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.16  WGET_URL="https://github.com/wjaguar/mtPaint/archive/$COMMIT.tar.gz"
    1.17 -#HOST_ARCH="i486 arm"
    1.18  
    1.19  DEPENDS="gtk+ libpng lcms2"
    1.20  BUILD_DEPENDS="gtk+-dev libpng-dev lcms2-dev zlib-dev cairo-dev"
    1.21 +#HOST_ARCH="i486 arm"
    1.22  
    1.23  # Rules to configure and make the package.
    1.24  compile_rules()
    1.25  {
    1.26  	patch -p0 < $stuff/mtpaint.patch
    1.27  	sed 's/mem_undo_limit,\t32/mem_undo_limit,\t256/' -i $src/src/mainwindow.c
    1.28 +
    1.29  	case "$ARCH" in
    1.30  		i?86)
    1.31  			export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpng12"
    1.32 @@ -34,18 +36,24 @@
    1.33  				--prefix=/usr \
    1.34  				--host=${HOST_SYSTEM} \
    1.35  				intl nogif
    1.36 -	esac && make &&
    1.37 +	esac &&
    1.38 +	make -j 1 &&
    1.39  	make DESTDIR=$install install
    1.40  }
    1.41  
    1.42  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.43  genpkg_rules()
    1.44  {
    1.45 -	mkdir -p $fs/usr/share/applications $fs/usr/share/pixmaps $fs/etc/mtpaint $fs/usr/share/thumbnailers
    1.46 -	cp -a $install/usr/bin $fs/usr
    1.47 -	install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin
    1.48 -	cp $stuff/*.desktop $fs/usr/share/applications
    1.49 -	cp $src/doc/mtpaint.png $fs/usr/share/pixmaps
    1.50 -	cp $stuff/mtpaintrc $fs/etc/mtpaint
    1.51 -	cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers
    1.52 +	mkdir -p				\
    1.53 +		$fs/usr/share/applications	\
    1.54 +		$fs/usr/share/pixmaps		\
    1.55 +		$fs/etc/mtpaint			\
    1.56 +		$fs/usr/share/thumbnailers
    1.57 +
    1.58 +	cp -a $install/usr/bin				$fs/usr
    1.59 +	install -m755 -oroot -groot $stuff/mtpaint-doc	$fs/usr/bin
    1.60 +	cp $stuff/*.desktop				$fs/usr/share/applications
    1.61 +	cp $src/doc/mtpaint.png				$fs/usr/share/pixmaps
    1.62 +	cp $stuff/mtpaintrc				$fs/etc/mtpaint
    1.63 +	cp $stuff/mtpaint.thumbnailer			$fs/usr/share/thumbnailers
    1.64  }