wok-current annotate mtpaint/receipt @ rev 22917
recompiled libetpan and libetpan-dev
author | Hans-G?nter Theisgen |
---|---|
date | Mon Feb 24 14:00:31 2020 +0100 (2020-02-24) |
parents | e06b96c403ca |
children | 3dd0f58c7a6d |
rev | line source |
---|---|
pankso@42 | 1 # SliTaz package receipt. |
pankso@42 | 2 |
pankso@42 | 3 PACKAGE="mtpaint" |
Hans-G?nter@21498 | 4 VERSION="3.49.14" |
Hans-G?nter@21498 | 5 COMMIT="dbe6758764e2fe45c111f9c3dd493c4c1f77f695" |
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@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 |
psychomaniak@20098 | 25 sed 's/mem_undo_limit,\t32/mem_undo_limit,\t256/' -i $src/src/mainwindow.c |
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@21498 | 47 mkdir -p $fs/usr/share/applications |
Hans-G?nter@21498 | 48 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@21498 | 49 mkdir -p $fs/etc/mtpaint |
Hans-G?nter@21498 | 50 mkdir -p $fs/usr/share/thumbnailers |
Hans-G?nter@21138 | 51 |
Hans-G?nter@21138 | 52 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21138 | 53 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin |
Hans-G?nter@21138 | 54 cp $stuff/*.desktop $fs/usr/share/applications |
Hans-G?nter@21138 | 55 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps |
Hans-G?nter@21138 | 56 cp $stuff/mtpaintrc $fs/etc/mtpaint |
Hans-G?nter@21138 | 57 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers |
pankso@42 | 58 } |