# librsvg
# =======
# Slackware 9.0's 'librsvg' package includes version 2.2.4, 9.1's includes
# 2.4.0, 10.0 and 10.1's include 2.6.5, 10.2's includes 2.8.1, 11.0's
# includes 2.14.4, and 12.0's includes 2.16.1
# I include three versions here, each one for a different major version of
# Gnome, but keep in mind that I only use Gnome 2.12.x myself.
# If you ever want to uninstall librsvg, or clean up files from an old
# version before installing a new one, cd into the source directory,
# run 'make uninstall', remove the source directory, then remove the
# tarball.
# Prerequisites (for all versions):
# pkg-config
# Glib-2.0 >= 2.0.0
# libart-2.0 >= 2.3.10
# libxml-2.0 >= 2.4.7
# popt
# libgsf-1 >= 1.6.0
# GTK+-2.0 >= 1.3.12
# gtk-doc, db2html (Slackware includes this in it's sgml-tools/linuxdoc-tools packages)
cd
test -f installed/librsvg-2.2.5.tar.bz2 &&
mv installed/librsvg-2.2.5.tar.bz2 .
test ! -f librsvg-2.2.5.tar.bz2 &&
wget http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.2/librsvg-2.2.5.tar.bz2
# librsvg 2.4.0 (for Gnome 2.4.x)
# =============
# Prerequisites (beyond those listed above):
# pango >= 1.0.0
# libcroco >= 0.1.0 (don't install >= 0.6.0, go with 0.5.1)
cd
test -f installed/librsvg-2.4.0.tar.bz2 &&
mv installed/librsvg-2.4.0.tar.bz2 .
test ! -f librsvg-2.4.0.tar.bz2 &&
wget http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.4/librsvg-2.4.0.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "librsvg-*" -exec rm -r {} \;
tar xjvf ~/librsvg-2.4.0.tar.bz2
cd librsvg-2.4.0
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
# If make fails with an error like this:
# rsvg-styles.c:386:22: libcroco.h: No such file or directory
# re-run it like this:
# make CPPFLAGS="-I/usr/include/libcroco/libcroco"
make
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg librsvg
rm -f /usr/lib/librsvg-2.*
make install
ldconfig
# librsvg 2.6.5 (for Gnome 2.6.x, 2.8.x, or 2.10.x)
# =============
# Prerequisites (beyond those listed above):
# pango >= 1.2.0
# libcroco >= 0.4.0 (don't install >= 0.6.0, go with 0.5.1)
cd
test -f installed/librsvg-2.6.5.tar.bz2 &&
mv installed/librsvg-2.6.5.tar.bz2 .
test ! -f librsvg-2.6.5.tar.bz2 &&
wget http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.6/librsvg-2.6.5.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "librsvg-*" -exec rm -r {} \;
tar xjvf ~/librsvg-2.14.4.tar.bz2
cd librsvg-2.14.4
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
make
## If make fails with an error like this:
# /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld:
# cannot find -lssl
## re-run it like this:
make LDFLAGS=-L/usr/local/ssl/lib
# Become root to install it
su
test -x /sbin/removepkg && /sbin/removepkg librsvg
rm -f /usr/lib/librsvg-2.*
make install
ldconfig
# librsvg 2.34.2 (for Gnome ?.?.?)
# ==============
# Prerequisites (beyond those listed above):
# freetype
# pango >= 1.2.0
# gnome-vfs-2.0 >= 1.9.16
# libcroco-0.6 >= 0.6.0
# libgnomeprint-2.2 >= 2.2.0
# libgnomeprintui-2.2 >= 2.2.0
# XFree86 or X.org
# mozilla (if mozilla-config is found, it'll build a plugin for mozilla)
# Get it
cd
test -f installed/librsvg-2.34.2.tar.xz &&
mv installed/librsvg-2.34.2.tar.xz .
test ! -f librsvg-2.34.2.tar.xz &&
wget http://ftp.gnome.org/pub/GNOME/sources/librsvg/2.34/\
librsvg-2.34.2.tar.xz
# Extract it
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "librsvg-*" -exec rm -r {} \;
tar xJvf ~/librsvg-2.34.2.tar.xz
cd librsvg-2.34.2
test $UID = 0 && chown -R root:root .
# Configure and build it
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib
make
## If make fails with an error like this:
# /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld:
# cannot find -lssl
## re-run it like this:
make LDFLAGS=-L/usr/local/ssl/lib
# Become root to install it
su
# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg librsvg
# Install it
rm -f /usr/lib/librsvg-2.*
make install
ldconfig
# Become yourself again
exit
# Save the tarball for later
cd
mkdir -p -m 0700 installed
rm -f installed/librsvg-*.tar.*
mv librsvg-2.34.2.tar.xz installed/