wok view xv/receipt @ rev 14863
Up: libsmpeg* (399)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Mon Jul 22 19:41:27 2013 -0300 (2013-07-22) |
parents | bcd90ecb3091 |
children | eb8067417980 |
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.trilon.com/xv/xv.html"
10 WGET_URL="ftp://ftp.trilon.com/pub/$PACKAGE/$TARBALL"
11 PATCH1="$SF_MIRROR/png-mng/xv-3.10a-jumbo-patches-20070520.tar.gz"
12 PATCH2="http://sonic.net/~roelofs/code/xv-3.10a-enhancements.20070520-20081216.diff"
13 EXTRA_SOURCE_FILES="$PATCH1 $PATCH2"
15 DEPENDS="xorg"
16 BUILD_DEPENDS="xorg-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
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 &&
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 }