# I was not able to compile zgv from source under Slackware 9.0 with gcc
# 3.3.1, I was able to compile it under Slackware 9.1 with gcc 3.2.3 I
# would imagine that it was the gcc version that made the difference, but I
# did not verify this.
#
# I added a binary installation at the bottom too for anyone that has
# trouble building it.
# Source installation:
cd
test -f installed/zgv-5.9.tar.gz && mv installed/zgv-5.9.tar.gz .
test ! -f zgv-5.9.tar.gz &&
wget http://www.svgalib.org/rus/zgv/zgv-5.9.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "zgv-*" -exec rm -r {} \;
tar xzvf ~/zgv-5.9.tar.gz
cd zgv-5.9
test $UID = 0 && chown -R root:root .
# If you want to build in SDL support, see config.mk
make
# Become root to install it
su
rm -f /usr/info/zgv /usr/info/zgv-?
make install