# PyOpenGL 2.0.1.09
# =================
# Prerequisites:
# python >= 2.2.0
# tcl/tk
# OpenGL and GLU (both come with XFree86 and X.org)
# GLUT (Slackware 8.1 through 10.2 (8.1 and 9.0 in 'pasture', 9.1 and up not)
# include a glut package for version 3.7)
# Python Imaging Library (PIL)
# Numerical Python (optional; I haven't tried it)
# This actually looks for a DISPLAY environment variable, so you'll
# probably want to be running X as root when you install this.
cd
test -f installed/PyOpenGL-2.0.1.09.tar.gz &&
mv installed/PyOpenGL-2.0.1.09.tar.gz .
test ! -f PyOpenGL-2.0.1.09.tar.gz &&
wget http://download.sf.net/pyopengl/PyOpenGL-2.0.1.09.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "PyOpenGL-*" -exec rm -r {} \;
tar xzvf ~/PyOpenGL-2.0.1.09.tar.gz
cd PyOpenGL-2.0.1.09
test $UID = 0 && chown -R root:root .
LDFLAGS=-L/usr/X11R6/lib python setup.py build