# gimp-print 4.2.7
# ================
# Slackware 9.0 and 9.1's 'gimp-print' packages include version 4.2.5,
# 10.0's includes 4.2.6, 10.1's and 10.2's include 4.2.7
# Prerequisites:
# the gimp (to build a new plugin change --without-gimp to --with-gimp,
# I don't do this - it can cause trouble)
# cups >= 1.1.9 (optional)
# foomatic
# hpijs
# readline
# gawk
# bison
# flex
# perl
# imagemagick's convert utility
# tetex (Slackware 9.0, 9.1, 10.0, and 10.1 include version 2.0.2, Slackware
# 10.2 includes 3.0)
# db2pdf, db2ps, db2html (Slack 9.0 includes 'sgml-tools' in extra, 9.1,
# 10.0, 10.1, and 10.2 include 'sgml-tools' as a regular package in the ap
# series, they're all version 1.0.9)
# sed
# libiconv
# zlib
# espgs
# openssl (if cups is installed and was built with it)
# If you have an Epson Stylus printer, change --disable-escputil below to
# --enable-escputil
# Version 4.2.6 failed to compile for me with flex version 2.5.27, but worked
# fine with 2.5.31 Version 4.2.7 compiled with 2.5.27 with no trouble.
cd
test -f installed/gimp-print-4.2.7.tar.gz &&
mv installed/gimp-print-4.2.7.tar.gz .
test ! -f gimp-print-4.2.7.tar.gz &&
wget http://download.sf.net/gimp-print/gimp-print-4.2.7.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "gimp-print-*" -exec rm -r {} \;
tar xzvf ~/gimp-print-4.2.7.tar.gz
cd gimp-print-4.2.7
test $UID = 0 && chown -R root:root .
./configure \
--prefix=/usr \
--without-translated-ppds \
--without-gimp \
--without-samples \
--without-user-guide \
--disable-escputil \
--disable-static \
--disable-nls
# If your OpenSSL isn't installed under /usr/local/ssl, leave off the
# LDFLAGS part below (just run 'make')
make LDFLAGS="-L/usr/local/ssl/lib"
# Become root to install it
su
removepkg gimp-print
rm -f /usr/lib/libgimpprint.*
make install
ldconfig
# If you built cups support, restart cupsd, and if you plan on actually
# using the gimp-print driver, (re-)install the printer. If you haven't
# fired up a new cups installation yet, finish with the other prerequisites
# and then start cups.