wok-next view xv/receipt @ rev 21724

busybox: update configs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 11:04:25 2020 +0000 (2020-09-01)
parents d43bf7aae921
children
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://www.trilon.com/xv/xv.html"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="ftp://ftp.trilon.com/pub/$PACKAGE/$TARBALL"
13 PATCH1="$SF_MIRROR/png-mng/xv-3.10a-jumbo-patches-20070520.tar.gz"
14 PATCH2="http://sonic.net/~roelofs/code/xv-3.10a-enhancements.20070520-20081216.diff"
15 EXTRA_SOURCE_FILES="$PATCH1 $PATCH2"
17 BUILD_DEPENDS="xorg-dev"
19 compile_rules() {
20 for i in $PATCH1 $PATCH2; do
21 [ -s $SRC/$(basename $i) ] || wget -P $SRC $i
22 done
23 cd ..; tar xzf $SRC/$(basename $PATCH1); cd $src
24 #patch -p0 < $SRC/$(basename $PATCH2)
25 sed -i 's/.*stdio.*/&\n#include <stdlib.h>/' xcmap.c bggen.c
26 sed -i 's/ gets *(\(.*\))/ fgets(\1,sizeof(\1)-1,stdin)/' vdcomp.c
27 sed -i 's/mktemp/mkstemp/' *.c
28 cat > tiff/RANLIB.csh <<EOT
29 #!/bin/sh
30 exec ranlib \$@
31 EOT
32 chmod +x tiff/RANLIB.csh
33 sed -i 's|.*extern.*sys_errlist.*|//&|;s|sys_errlist.x.|strerror(x)|' xv.h
34 sed -i -e 's|undef USE_GUNZIP|define USE_GUNZIP\n#define USE_GETCWD|' \
35 -e 's|/usr/local/bin/gunzip -q|/bin/gunzip|' config.h
37 make jpeg/libjpeg.a &&
38 make tiff/libtiff.a &&
39 make || return 1
41 mkdir -p $fs/usr/bin
42 cp xv bggen vdcomp xcmap xvpictoppm $install/usr/bin/
43 cook_pick_docs README
44 }
46 genpkg_rules() {
47 copy @std
48 DEPENDS="xorg"
49 }