wok-undigest rev 372

xv: more patches
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 29 14:31:41 2011 +0200 (2011-07-29)
parents e643c9dbbc7b
children 15d270987611
files xv/receipt
line diff
     1.1 --- a/xv/receipt	Fri Jul 29 13:26:05 2011 +0200
     1.2 +++ b/xv/receipt	Fri Jul 29 14:31:41 2011 +0200
     1.3 @@ -10,8 +10,6 @@
     1.4  WGET_URL="ftp://ftp.trilon.com/pub/$PACKAGE/$TARBALL"
     1.5  PATCH1="$SF_MIRROR/png-mng/xv-3.10a-jumbo-patches-20070520.tar.gz"
     1.6  PATCH2="http://sonic.net/~roelofs/code/xv-3.10a-enhancements.20070520-20081216.diff"
     1.7 -#http://prdownloads.sourceforge.net/png-mng/xv-3.10a-jumbo-patches-20070520.tar.gz?download
     1.8 -#http://sonic.net/~roelofs/code/xv-3.10a-enhancements.20070520-20081216.diff
     1.9  
    1.10  DEPENDS="xorg"
    1.11  BUILD_DEPENDS="xorg-dev"
    1.12 @@ -26,14 +24,18 @@
    1.13  	done
    1.14  	cd .. ; tar xzf $SOURCES_REPOSITORY/$(basename $PATCH1) ; cd $src
    1.15  	#patch -p0 < $SOURCES_REPOSITORY/$(basename $PATCH2)
    1.16 +	sed -i 's/.*stdio.*/&\n#include <stdlib.h>/' xcmap.c bggen.c
    1.17 +	sed -i 's/ gets *(\(.*\))/ fgets(\1,sizeof(\1)-1,stdin)/' vdcomp.c
    1.18 +	sed -i 's/mktemp/mkstemp/' *.c
    1.19  	cat > tiff/RANLIB.csh <<EOT
    1.20  #!/bin/sh
    1.21  exec ranlib \$@
    1.22  EOT
    1.23  	chmod +x tiff/RANLIB.csh
    1.24 -	sed -i 's|.*extern.*sys_errlist.*|//&|' xv.h
    1.25 -	sed -i -e 's|undef USE_GUNZIP|define USE_GUNZIP|' \
    1.26 +	sed -i 's|.*extern.*sys_errlist.*|//&|;s|sys_errlist.x.|strerror(x)|' xv.h
    1.27 +	sed -i -e 's|undef USE_GUNZIP|define USE_GUNZIP\n#define USE_GETCWD|' \
    1.28  		-e 's|/usr/local/bin/gunzip -q|/bin/gunzip|' config.h
    1.29 +	make jpeg/libjpeg.a &&
    1.30  	make
    1.31  }
    1.32