wok diff xv/receipt @ rev 14258
syslinux/iso2exe: check kernel version, add floppy bootstrap stub (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 28 11:54:40 2013 +0100 (2013-03-28) |
parents | |
children | b2a632fc9587 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xv/receipt Thu Mar 28 11:54:40 2013 +0100 1.3 @@ -0,0 +1,59 @@ 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 + 1.17 +DEPENDS="xorg" 1.18 +BUILD_DEPENDS="xorg-dev" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + cd $src 1.24 + for i in $PATCH1 $PATCH2 ; do 1.25 + [ -s $SOURCES_REPOSITORY/$(basename $i) ] || 1.26 + wget -P $SOURCES_REPOSITORY $i 1.27 + done 1.28 + cd .. ; tar xzf $SOURCES_REPOSITORY/$(basename $PATCH1) ; cd $src 1.29 + #patch -p0 < $SOURCES_REPOSITORY/$(basename $PATCH2) 1.30 + sed -i 's/.*stdio.*/&\n#include <stdlib.h>/' xcmap.c bggen.c 1.31 + sed -i 's/ gets *(\(.*\))/ fgets(\1,sizeof(\1)-1,stdin)/' vdcomp.c 1.32 + sed -i 's/mktemp/mkstemp/' *.c 1.33 + cat > tiff/RANLIB.csh <<EOT 1.34 +#!/bin/sh 1.35 +exec ranlib \$@ 1.36 +EOT 1.37 + chmod +x tiff/RANLIB.csh 1.38 + sed -i 's|.*extern.*sys_errlist.*|//&|;s|sys_errlist.x.|strerror(x)|' xv.h 1.39 + sed -i -e 's|undef USE_GUNZIP|define USE_GUNZIP\n#define USE_GETCWD|' \ 1.40 + -e 's|/usr/local/bin/gunzip -q|/bin/gunzip|' config.h 1.41 + make jpeg/libjpeg.a && 1.42 + make 1.43 +} 1.44 + 1.45 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.46 +genpkg_rules() 1.47 +{ 1.48 + mkdir -p $fs/usr/bin $fs/usr/share/doc/slitaz $fs/usr/share/applications 1.49 + cp $src/xv $src/bggen $src/vdcomp $src/xcmap $src/xvpictoppm $fs/usr/bin 1.50 + cp $src/README $fs/usr/share/doc/slitaz/README.xv 1.51 + cat > $fs/usr/share/applications/xv.desktop <<EOT 1.52 +[Desktop Entry] 1.53 +Encoding=UTF-8 1.54 +Categories=Application;Graphics;Utility 1.55 +Exec=xv %f 1.56 +Icon=image 1.57 +StartupNotify=true 1.58 +Type=Application 1.59 +Terminal=false 1.60 +Name=Image manipulation 1.61 +EOT 1.62 +}