HOWTO
# Little CMS
# ==========
# Slackware 12.0: lcms 1.16
# Slackware 12.1, 12.2: lcms 1.17
# Slackware 13.0: lcms 1.18
# Slackware 13.1, 13.37: lcms 1.19
# If you ever need to uninstall lcms, cd into the source directory,
# run 'make uninstall', remove that directory, and remove the tarball
# Below I cover lcms 1.x and 2.x
# lcms 1.19
# =========
# Prerequisites:
#
libjpeg (for tifficc and jpegicc)
#
zlib (for tifficc)
#
libtiff (for tifficc)
# If you want to build
Python extensions, add --with-python to the configure
# line below.
# Get it
cd
test -f installed/lcms-1.19.tar.gz && mv installed/lcms-1.19.tar.gz .
test ! -f lcms-1.19.tar.gz &&
wget http://downloads.sf.net/lcms/lcms-1.19.tar.gz
# Extract it
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "lcms-*" -exec rm -r {} \;
tar xzvf ~/lcms-1.19.tar.gz
cd lcms-1.19
test $UID = 0 && chown -R root:root .
# Configure, build, and check it
./configure --prefix=/usr
make
make check
# Become root to install it
su
# Remove Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg lcms
# Removed old library files, install it
rm -f /usr/lib/liblcms.*
make install
ldconfig
# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+w .
# Become yourself again
exit
cd
mkdir -p -m 0700 installed
rm -f installed/lcms-*.tar.*
mv lcms-1.19.tar.gz installed/
# lcms2 2.3
# =========
# Prerequisites:
#
libjpeg (for tifficc and jpegicc)
#
zlib (for tifficc)
#
libtiff (for tifficc)
# If you want to build
Python extensions, add --with-python to the configure
# line below.
# Get it
cd
test -f installed/lcms2-2.3.tar.gz && mv installed/lcms2-2.3.tar.gz .
test ! -f lcms2-2.3.tar.gz &&
wget http://downloads.sf.net/lcms/lcms2-2.3.tar.gz
# Extract it
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "lcms2-*" -exec rm -r {} \;
tar xzvf ~/lcms2-2.3.tar.gz
cd lcms2-2.3
test $UID = 0 && chown -R root:root .
# Configure, build, and check it
./configure --prefix=/usr --mandir=/usr/man
make
make check
# Become root to install it
su
# DO NOT remove the Slackware package, unless you want to remove lcms 1.x
test -x /sbin/removepkg && /sbin/removepkg lcms
# Removed old library files, install it
rm -f /usr/lib/liblcms2.*
make install
ldconfig
# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+w .
# Become yourself again
exit
cd
mkdir -p -m 0700 installed
rm -f installed/lcms2-.*.tar.*
mv lcms2-2.3.tar.gz installed/