# Dia
# ===
# If you ever want to uninstall Dia, or clean up files from an old version
# before installing a new one, cd into the source directory, run
# 'make uninstall' (as root), remove the source directory, then remove
# the tarball.
# Dia 0.96.1
# ==========
# Prerequisites:
# intltool >= 0.21
# Perl
# pkg-config
# Glib >= 2.0.0
# GTK+ >= 2.0.0
# pango >= 1.1.5
# freetype
# libart-2.0
# If --enable-gnome is passed to configure:
# libgnome-2.0
# libgnomeui-2.0
# libxslt
# popt
# libpng
# gettext
# libxml2 >= 2.3.9
# zlib
# db2html (Slackware includes this in it's sgml-tools/linuxdoc-tools
# packages)
# Python and PyGTK (if --with-python is passed to configure for the
# python plugin)
# Experimental:
# cairo (pass --with-cairo)
# libgnomeprint (pass --with-gnomeprint)
cd
test -f installed/dia-0.96.1.tar.bz2 && mv installed/dia-0.96.1.tar.bz2 .
test ! -f dia-0.96.1.tar.bz2 &&
wget ftp://ftp.gnome.org/pub/gnome/sources/dia/0.96/dia-0.96.1.tar.bz2
mkdir -p -m 0700 src
cd src
test -d ./dia && rm -r ./dia
find -maxdepth 1 -type d -name "dia-*" -exec rm -r {} \;
tar xjvf ~/dia-0.96.1.tar.bz2
cd dia-0.96.1
test $UID = 0 && chown -R root:root .
## If make stops with an error like this:
# /usr/bin/ld: cannot find -lssl
## re-run it like this:
# make LDFLAGS=-L/usr/local/ssl/lib
# If you do have Python and PyGTK installed, pass --with-python to configure
./configure --enable-gnome --with-python
make
su -c "make install"
## If you try to run 'dia' and you get this:
# dia: error while loading shared libraries: libssl.so.0: cannot open shared
# object file: No such file or directory
## run it like this:
# LD_LIBRARY_PATH=/usr/local/ssl/lib dia
cd ~/src
find -maxdepth 1 -type d -name "dia-*" -exec rm -r {} \;
test -d ./dia && ( cd dia ; svn update )
test ! -d ./dia &&
svn checkout http://svn.gnome.org/svn/dia/trunk dia
cd dia
test $UID = 0 && chown -R root:root .
chmod -R u+w .
## If make stops with an error like this:
# /usr/bin/ld: cannot find -lssl
## re-run it like this:
# make LDFLAGS=-L/usr/local/ssl/lib
# If you do have Python and PyGTK installed, pass --with-python to configure
./autogen.sh --enable-gnome
make
su -c "make install"
## If you try to run 'dia' and you get this:
# dia: error while loading shared libraries: libssl.so.0: cannot open shared
# object file: No such file or directory
## run it like this:
# LD_LIBRARY_PATH=/usr/local/ssl/lib dia
cd
mkdir -p -m 0700 installed
rm -f installed/dia-*.tar.*
echo "dia was installed from subversion into ~/src/dia" \
> ~/installed/dia.README