# GGI 2.2.2 (General Graphics Interface)
# =========
# This covers installing all of the GGI libraries.
# If you ever want to uninstall GGI, cd into the source of each library, run
# 'make uninstall' (as root), remove the source directories, then remove the
# tarball.
cd
test -f installed/ggi-2.2.2-bundle.src.tar.bz2 &&
mv installed/ggi-2.2.2-bundle.src.tar.bz2 .
test ! -f ggi-2.2.2-bundle.src.tar.bz2 &&
wget http://www.ggi-project.org/ftp/ggi/v2.2/ggi-2.2.2-bundle.src.tar.bz2
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "ggi-*-bundle" -exec rm -r {} \;
tar xjvf ~/ggi-2.2.2-bundle.src.tar.bz2
cd ggi-2.2.2-bundle
test $UID = 0 && chown -R root:root .
# FYI, with 2.2.1 (this is 2.2.2) and Slackware 11.0, I was unable to build
# this with the kernel 2.6.x includes package from Slackware 'extra', but it
# was OK with the original 2.4.x package.
cd libgii-1.0.2
./configure
make
su -c "make install ; ldconfig"
cd ..