# libtiff 3.8.2
# =============
# Slackware 9.0 and 9.1's 'libtiff' packages include version 3.5.7, 10.0's
# includes 3.6.1, 10.1's includes 3.7.1, and 10.2's includes 3.7.3
# If you ever want to uninstall libtiff, or clean out files from an old
# version before installing a new one, skip down to the bottom for
# instructions
# Below I blow away existing library files before running 'make install' to
# ensure that extra files aren't left behind that are no longer needed. If
# you run a production system with multiple local users that may be using
# something linked with libtiff at the moment you're upgrading it, you'll
# want to skip that part below and you should clean up old files manually
# after the new version is installed.
#
# Also, be aware that if you go from an old version that uses (for example)
# libtiff.so.1 as a shared library name and you upgrade to one that uses
# libtiff.so.2, if you remove the old one, any apps that are linked with
# it will fail to run. Creating a symlink from .1 to .2 may fix it,
# leaving the old one there may allow things to continue to work too. The
# best bet would be to rebuild and reinstall anything linked with libtiff's
# shared library.
cd
test -f installed/tiff-3.8.2.tar.gz && mv installed/tiff-3.8.2.tar.gz .
test ! -f tiff-3.8.2.tar.gz &&
wget ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "tiff-*" -exec rm -r {} \;
tar xzvf ~/tiff-3.8.2.tar.gz
cd tiff-3.8.2
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg libtiff
( cd /usr/lib ; rm -f libtiff.* libtiffxx.* )
make install
ldconfig
# You may also want to remove lines in /var/adm/packages/*elflibs* (prior
# to Slackware 10.0 it's named elflibs-*, as of 10.0 it's named
# aaa_elflibs-*) that refer to libtiff like these. The first is from
# Slackware 9.0, the second one is from 10.2:
# usr/lib/incoming/libtiff.so.3.5.7
# usr/lib/libtiff.so.3.7.3