wok annotate xv/receipt @ rev 25318
updated spectrwm (3.3.0 -> 3.4.1)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 22 06:40:14 2022 +0100 (2022-07-22) |
parents | 7cf304e72e40 |
children | 150e1482d1b2 |
rev | line source |
---|---|
pascal@11204 | 1 # SliTaz package receipt. |
pascal@11204 | 2 |
pascal@11204 | 3 PACKAGE="xv" |
pascal@11204 | 4 VERSION="3.10a" |
pascal@11204 | 5 CATEGORY="non-free" |
pascal@11204 | 6 SHORT_DESC="Interactive image manipulation program for the X Window System." |
pascal@11204 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15579 | 8 LICENSE="other" |
pascal@11204 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@11204 | 10 WEB_SITE="http://www.trilon.com/xv/xv.html" |
pascal@11204 | 11 WGET_URL="ftp://ftp.trilon.com/pub/$PACKAGE/$TARBALL" |
pascal@11204 | 12 PATCH1="$SF_MIRROR/png-mng/xv-3.10a-jumbo-patches-20070520.tar.gz" |
pascal@11204 | 13 PATCH2="http://sonic.net/~roelofs/code/xv-3.10a-enhancements.20070520-20081216.diff" |
pascal@14337 | 14 EXTRA_SOURCE_FILES="$PATCH1 $PATCH2" |
pascal@11204 | 15 |
pascal@11204 | 16 DEPENDS="xorg" |
pascal@11204 | 17 BUILD_DEPENDS="xorg-dev" |
pascal@11204 | 18 |
pascal@24108 | 19 current_version() |
pascal@24108 | 20 { |
pascal@24108 | 21 wget -O - http://www.trilon.com/xv/downloads.html 2>/dev/null | \ |
pascal@24108 | 22 sed '/tar.gz/!d;s|.*/xv-||;s|.tar.*||;q' |
pascal@24108 | 23 } |
pascal@24108 | 24 |
pascal@11204 | 25 # Rules to configure and make the package. |
pascal@11204 | 26 compile_rules() |
pascal@11204 | 27 { |
pascal@11204 | 28 for i in $PATCH1 $PATCH2 ; do |
pascal@11204 | 29 [ -s $SOURCES_REPOSITORY/$(basename $i) ] || |
pascal@11204 | 30 wget -P $SOURCES_REPOSITORY $i |
pascal@11204 | 31 done |
pascal@11204 | 32 cd .. ; tar xzf $SOURCES_REPOSITORY/$(basename $PATCH1) ; cd $src |
pascal@11204 | 33 #patch -p0 < $SOURCES_REPOSITORY/$(basename $PATCH2) |
pascal@11204 | 34 sed -i 's/.*stdio.*/&\n#include <stdlib.h>/' xcmap.c bggen.c |
pascal@11204 | 35 sed -i 's/ gets *(\(.*\))/ fgets(\1,sizeof(\1)-1,stdin)/' vdcomp.c |
pascal@11204 | 36 sed -i 's/mktemp/mkstemp/' *.c |
pascal@11204 | 37 cat > tiff/RANLIB.csh <<EOT |
pascal@11204 | 38 #!/bin/sh |
pascal@11204 | 39 exec ranlib \$@ |
pascal@11204 | 40 EOT |
pascal@11204 | 41 chmod +x tiff/RANLIB.csh |
pascal@11204 | 42 sed -i 's|.*extern.*sys_errlist.*|//&|;s|sys_errlist.x.|strerror(x)|' xv.h |
pascal@11204 | 43 sed -i -e 's|undef USE_GUNZIP|define USE_GUNZIP\n#define USE_GETCWD|' \ |
pascal@11204 | 44 -e 's|/usr/local/bin/gunzip -q|/bin/gunzip|' config.h |
pascal@20562 | 45 make jpeg/libjpeg.a tiff/libtiff.a && |
pascal@11204 | 46 make |
pascal@11204 | 47 } |
pascal@11204 | 48 |
pascal@11204 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@11204 | 50 genpkg_rules() |
pascal@11204 | 51 { |
pascal@11204 | 52 mkdir -p $fs/usr/bin $fs/usr/share/doc/slitaz $fs/usr/share/applications |
pascal@11204 | 53 cp $src/xv $src/bggen $src/vdcomp $src/xcmap $src/xvpictoppm $fs/usr/bin |
pascal@11204 | 54 cp $src/README $fs/usr/share/doc/slitaz/README.xv |
pascal@11204 | 55 cat > $fs/usr/share/applications/xv.desktop <<EOT |
pascal@11204 | 56 [Desktop Entry] |
pascal@11204 | 57 Encoding=UTF-8 |
pascal@11204 | 58 Categories=Application;Graphics;Utility |
pascal@11204 | 59 Exec=xv %f |
pascal@11204 | 60 Icon=image |
pascal@11204 | 61 StartupNotify=true |
pascal@11204 | 62 Type=Application |
pascal@11204 | 63 Terminal=false |
pascal@11204 | 64 Name=Image manipulation |
pascal@11204 | 65 EOT |
pascal@11204 | 66 } |