# libgnomeprint
# =============
# Slackware 9.0's 'libgnomeprint' package includes version 2.2.1.2, 9.1's
# includes 2.3.1, 10.0's and 10.1's include 2.6.1 As of Slackware 10.2,
# Gnome is no longer included.
# Below I include several versions of libgnomeprint to cover different
# releases of Gnome. I'll keep all of them updated as new versions become
# available, but keep in mind that I only use Gnome 2.16.x myself.
# Prerequisites (for all versions):
# Perl
# gettext
# gtk-doc (Slackware includes this in it's sgml-tools or linuxdoc-tools
# packages)
# pkg-config
# Glib-2.0 >= 1.3.10
# libart-2.0 >= 2.3.7
# pango >= 0.21
# libxml-2.0 >= 2.4.23
# fontconfig >= 1.0 (this is included with XFree86 and X.org)
# freetype >= 2.0.5
# zlib
cd
test -f installed/libgnomeprint-2.8.2.tar.bz2 &&
mv installed/libgnomeprint-2.8.2.tar.bz2
test ! -f libgnomeprint-2.8.2.tar.bz2 &&
wget http://ftp.gnome.org/pub/gnome/sources/libgnomeprint/2.8/\
libgnomeprint-2.8.2.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libgnomeprint-*" -exec rm -r {} \;
tar xjvf ~/libgnomeprint-2.8.2.tar.bz2
cd libgnomeprint-2.8.2
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --disable-static --sysconfdir=/etc \
--localstatedir=/var/lib
## If make fails with an error like "cannot find -lssl", which would
## probably be because you have CUPS and it was linked with libssl, re-run
## it like this:
# make LDFLAGS="-L/usr/local/ssl/lib"
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg libgnomeprint
rm -f /usr/lib/libgnomeprint-2.* /usr/lib/libgnomeprint-2-2.*
find /usr/lib/libgnomeprint -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \;
make install
ldconfig
find /usr/share/locale -type f -name "libgnomeprint-2.2.mo" -exec rm {} \;
cd
test -f installed/libgnomeprint-2.10.3.tar.bz2 &&
mv installed/libgnomeprint-2.10.3.tar.bz2
test ! -f libgnomeprint-2.10.3.tar.bz2 &&
wget http://ftp.gnome.org/pub/gnome/sources/libgnomeprint/2.10/\
libgnomeprint-2.10.3.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libgnomeprint-*" -exec rm -r {} \;
tar xjvf ~/libgnomeprint-2.10.3.tar.bz2
cd libgnomeprint-2.10.3
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --disable-static --sysconfdir=/etc \
--localstatedir=/var/lib
## If make fails with an error like "cannot find -lssl", which would
## probably be because you have CUPS and it was linked with libssl, re-run
## it like this:
# make LDFLAGS="-L/usr/local/ssl/lib"
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg libgnomeprint
rm -f /usr/lib/libgnomeprint-2.* /usr/lib/libgnomeprint-2-2.*
find /usr/lib/libgnomeprint -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \;
make install
ldconfig
find /usr/share/locale -type f -name "libgnomeprint-2.2.mo" -exec rm {} \;
# libgnomeprint 2.12.1 (for Gnome 2.12.x, 2.14.x, or 2.16.x)
# ===================
# Prerequisites (beyond those listed above):
# CUPS >= 1.1.20 and libgnomecups >= 0.2.0 (optional)
cd
test -f installed/libgnomeprint-2.12.1.tar.bz2 &&
mv installed/libgnomeprint-2.12.1.tar.bz2
test ! -f libgnomeprint-2.12.1.tar.bz2 &&
wget http://ftp.gnome.org/pub/gnome/sources/libgnomeprint/2.12/\
libgnomeprint-2.12.1.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "libgnomeprint-*" -exec rm -r {} \;
tar xjvf ~/libgnomeprint-2.12.1.tar.bz2
cd libgnomeprint-2.12.1
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --disable-static --sysconfdir=/etc \
--localstatedir=/var/lib
## If make fails with an error like "cannot find -lssl", which would
## probably be because you have CUPS and it was linked with libssl, re-run
## it like this:
# make LDFLAGS="-L/usr/local/ssl/lib"
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg libgnomeprint
rm -f /usr/lib/libgnomeprint-2.* /usr/lib/libgnomeprint-2-2.*
find /usr/lib/libgnomeprint -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \;
make install
ldconfig
find /usr/share/locale -type f -name "libgnomeprint-2.2.mo" -exec rm {} \;