wok-undigest rev 371

Add xv
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 29 13:26:05 2011 +0200 (2011-07-29)
parents e57a5dae1f36
children 4468d3668856
files xv/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xv/receipt	Fri Jul 29 13:26:05 2011 +0200
     1.3 @@ -0,0 +1,46 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="xv"
     1.7 +VERSION="3.10a"
     1.8 +CATEGORY="non-free"
     1.9 +SHORT_DESC="Interactive image manipulation program for the X Window System."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.12 +WEB_SITE="http://www.trilon.com/xv/xv.html"
    1.13 +WGET_URL="ftp://ftp.trilon.com/pub/$PACKAGE/$TARBALL"
    1.14 +PATCH1="$SF_MIRROR/png-mng/xv-3.10a-jumbo-patches-20070520.tar.gz"
    1.15 +PATCH2="http://sonic.net/~roelofs/code/xv-3.10a-enhancements.20070520-20081216.diff"
    1.16 +#http://prdownloads.sourceforge.net/png-mng/xv-3.10a-jumbo-patches-20070520.tar.gz?download
    1.17 +#http://sonic.net/~roelofs/code/xv-3.10a-enhancements.20070520-20081216.diff
    1.18 +
    1.19 +DEPENDS="xorg"
    1.20 +BUILD_DEPENDS="xorg-dev"
    1.21 +
    1.22 +# Rules to configure and make the package.
    1.23 +compile_rules()
    1.24 +{
    1.25 +	cd $src
    1.26 +	for i in $PATCH1 $PATCH2 ; do
    1.27 +		[ -s $SOURCES_REPOSITORY/$(basename $i) ] || 
    1.28 +		wget -P $SOURCES_REPOSITORY $i
    1.29 +	done
    1.30 +	cd .. ; tar xzf $SOURCES_REPOSITORY/$(basename $PATCH1) ; cd $src
    1.31 +	#patch -p0 < $SOURCES_REPOSITORY/$(basename $PATCH2)
    1.32 +	cat > tiff/RANLIB.csh <<EOT
    1.33 +#!/bin/sh
    1.34 +exec ranlib \$@
    1.35 +EOT
    1.36 +	chmod +x tiff/RANLIB.csh
    1.37 +	sed -i 's|.*extern.*sys_errlist.*|//&|' xv.h
    1.38 +	sed -i -e 's|undef USE_GUNZIP|define USE_GUNZIP|' \
    1.39 +		-e 's|/usr/local/bin/gunzip -q|/bin/gunzip|' config.h
    1.40 +	make
    1.41 +}
    1.42 +
    1.43 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.44 +genpkg_rules()
    1.45 +{
    1.46 +	mkdir -p $fs/usr/bin $fs/usr/share/doc/slitaz
    1.47 +	cp $src/xv $src/bggen $src/vdcomp $src/xcmap $src/xvpictoppm $fs/usr/bin
    1.48 +	cp $src/README $fs/usr/share/doc/slitaz/README.xv
    1.49 +}