wok annotate mtpaint/receipt @ rev 25189
opusfile-dev: force version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 12 18:41:58 2022 +0000 (2022-07-12) |
parents | ee53899c6189 |
children | 1fd16249314e |
rev | line source |
---|---|
pankso@42 | 1 # SliTaz package receipt. |
pankso@42 | 2 |
pankso@42 | 3 PACKAGE="mtpaint" |
Hans-G?nter@24930 | 4 VERSION="3.50" |
pankso@207 | 5 CATEGORY="graphics" |
Hans-G?nter@21138 | 6 SHORT_DESC="Painting program to create pixel art and manipulate digital photos." |
pankso@42 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
Hans-G?nter@24930 | 9 WEB_SITE="https://sourceforge.net/projects/mtpaint/" |
Hans-G?nter@21138 | 10 |
Hans-G?nter@24930 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@24930 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@42 | 13 |
Hans-G?nter@24930 | 14 SUGGESTED="mtpaint-lang" |
Hans-G?nter@24930 | 15 DEPENDS="gtk+ lcms2 libpng" |
Hans-G?nter@23199 | 16 BUILD_DEPENDS="cairo-dev gtk+-dev lcms2-dev libpng-dev zlib-dev" |
Hans-G?nter@21498 | 17 |
Hans-G?nter@21138 | 18 #HOST_ARCH="i486 arm" |
pankso@12120 | 19 |
pascal@24071 | 20 current_version() |
pascal@24071 | 21 { |
pascal@24071 | 22 wget -O - ${WEB_SITE}download.html 2>/dev/null | \ |
pascal@24071 | 23 sed '/HERE/!d;s|.*files.mtpaint.||;s|.">.*||' |
pascal@24071 | 24 } |
pascal@24071 | 25 |
pankso@42 | 26 # Rules to configure and make the package. |
pankso@42 | 27 compile_rules() |
pankso@42 | 28 { |
al@17979 | 29 patch -p0 < $stuff/mtpaint.patch |
Hans-G?nter@23199 | 30 sed -i 's/mem_undo_limit,\t32/mem_undo_limit,\t256/' \ |
Hans-G?nter@23199 | 31 $src/src/mainwindow.c |
Hans-G?nter@23199 | 32 |
pankso@16334 | 33 case "$ARCH" in |
Hans-G?nter@24930 | 34 (i?86) |
pascal@19717 | 35 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpng12" |
Hans-G?nter@23199 | 36 ./configure \ |
Hans-G?nter@23199 | 37 --cpu=$ARCH \ |
Hans-G?nter@23199 | 38 --prefix=/usr \ |
Hans-G?nter@24930 | 39 intl nogif nojp2 |
Hans-G?nter@24930 | 40 ;; |
Hans-G?nter@24930 | 41 (arm*) |
pankso@16334 | 42 # we need: arm-slitaz-linux-gnueabi-pkg-config |
pankso@16334 | 43 ./configure \ |
pankso@16334 | 44 --prefix=/usr \ |
pankso@16334 | 45 --host=${HOST_SYSTEM} \ |
pankso@16334 | 46 intl nogif |
Hans-G?nter@24930 | 47 ;; |
Hans-G?nter@21138 | 48 esac && |
Hans-G?nter@23199 | 49 make && |
Hans-G?nter@24930 | 50 make install DESTDIR=$install |
pankso@42 | 51 } |
pankso@42 | 52 |
pankso@42 | 53 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@42 | 54 genpkg_rules() |
pankso@42 | 55 { |
Hans-G?nter@24930 | 56 mkdir -p $fs/etc/mtpaint |
Hans-G?nter@21498 | 57 mkdir -p $fs/usr/share/applications |
Hans-G?nter@21498 | 58 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@21498 | 59 mkdir -p $fs/usr/share/thumbnailers |
Hans-G?nter@21138 | 60 |
Hans-G?nter@21138 | 61 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21138 | 62 install -m755 -oroot -groot $stuff/mtpaint-doc $fs/usr/bin |
Hans-G?nter@24930 | 63 cp $stuff/mtpaintrc $fs/etc/mtpaint |
Hans-G?nter@21138 | 64 cp $stuff/*.desktop $fs/usr/share/applications |
Hans-G?nter@21138 | 65 cp $src/doc/mtpaint.png $fs/usr/share/pixmaps |
Hans-G?nter@21138 | 66 cp $stuff/mtpaint.thumbnailer $fs/usr/share/thumbnailers |
pankso@42 | 67 } |