wok view xv/receipt @ rev 21700

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