# 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 .
# 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 .