# IlmBase and OpenEXR
# ===================
# To clean up files from old versions or to uninstall IlmBase and
# OpenEXR, skip down to the bottom for instructions.
# IlmBase 1.0.1
# =============
cd
test -f installed/ilmbase-1.0.1.tar.gz &&
mv installed/ilmbase-1.0.1.tar.gz .
test ! -f ilmbase-1.0.1.tar.gz &&
wget http://download.savannah.nongnu.org/releases/openexr/\
ilmbase-1.0.1.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "ilmbase-*" -exec rm -r {} \;
tar xzvf ~/ilmbase-1.0.1.tar.gz
cd ilmbase-1.0.1
test $UID = 0 && chown -R root:root .
# Configure and build it
./configure
make
# To do the confidence tests
make check
# Install it has root
su -c "make install ; ldconfig"
# If you ever want to uninstall ilmbase and OpenEXR, this should do it:
cd
su
test -d src/ilmbase-* && ( cd src/ilmbase-* ; make uninstall )
test -d src/openexr-* && ( cd src/openexr-* ; make uninstall )
for prefix in /usr /usr/local; do
( cd ${pfx}/lib
rm -f libHalf.* libIex.* libImath.* libIlmThread.* )
test -d ${pfx}/include/OpenEXR && rm -r ${pfx}/include/OpenEXR
rm -f ${pfx}/lib/pkgconfig/IlmBase.pc
done
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "ilmbase-*" -exec rm -r {} \;
find ~/src -maxdepth 1 -type d -name "openexr-*" -exec rm -r {} \;
rm -f ~/installed/ilmbase-*.tar.* ~/installed/openexr-*.tar.*