next up previous contents
Next: Xview Up: Xv Previous: xv itself

The INSTALL script

#!/bin/sh
# export XVSRC=/usr/src/graphics/xv
if [ "$XVSRC" = "" ] ; then
  echo "Please set the variable XVSRC to the location of your sources"
  echo "For a \"sh\"-type shell, use XVSRC=/your/path/ ; export XVSRC"
  echo "For a \"csh\"-type shell, use setenv XVSRC /your/path/"
  exit 0
fi
tar -zxvf $XVSRC/xv-3.10a.tar.gz
cd xv-3.10a/
gzip -dc $XVSRC/grabpatch.gz | patch -p0
gzip -dc $XVSRC/mp-tiff-patch.gz | patch -p0
gzip -dc $XVSRC/longname.patch.gz | patch -p1
gzip -dc $XVSRC/xpm.patch.gz | patch -p0
gzip -dc $XVSRC/deepcolor.patch.gz | patch -p0
gzip -dc $XVSRC/gifpatch.gz | patch -p0
gzip -dc $XVSRC/xv-3.10a.JPEG-patch.gz | patch -p0
gzip -dc $XVSRC/xv-3.10a.TIFF-patch.gz | patch -p0
tar -zxvf $XVSRC/xv-3.10a-png-1.2d.tar.gz 
patch -p1 < xcmap.diff
# one hunk of the patch below fails
patch -p1 < xvpng.diff
# now fix that failing hunk
echo Fixing that failed hunk now, don\'t worry
gzip -dc $XVSRC/xvdir.patch.gz | patch -p0
gzip -dc $XVSRC/xvpng-fix2.patch.gz | patch -p0
# DON'T apply xvjpeg.diff, it's just a copy of the previous one
# Two hunks of the patch below fail
patch -p1 < xvtiff.diff
# now fix those two failing hunks
# with all that patching a new error is introduced, this patch fixes that too
echo Fixing those two failed hunks now, don\'t worry
gzip -dc $XVSRC/xvtiff.patch.gz | patch -p0
# I use the system wide installation of the jpeg and tiff libraries
rm -rf tiff jpeg
# Edit the Makefile, or apply the new patch
gzip -dc $XVSRC/Makefile.patch.gz | patch -p0
# Edit xv.h to show the registration string and to fix a duplicate definition
gzip -dc $XVSRC/xv.patch.gz | patch -p0
# Edit xvbrowse.c to show hidden files by default (uncomment next line here!)
# gzip -dc $XVSRC/xvbrowse.patch.gz | patch -p0
make
# make install


Uwe F. Mayer
2001-12-30