-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbootstrapmin-opengl
executable file
·45 lines (42 loc) · 1.21 KB
/
bootstrapmin-opengl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
os=`uname`
if [ "X$os" = "XDarwin" ] ; then
LIBTOOLIZE=glibtoolize
prefix=/opt/local
else
LIBTOOLIZE=libtoolize
prefix=/usr/local
fi
if [ "X$BASH" != X ] ; then
echo="echo -e"
else
echo=echo
fi
aclocal
autoconf
$LIBTOOLIZE --force
automake --add-missing
# SNOWMIX_GLEW="--enable-snowmixglew"
echo "Do you want to add support for OpenGL in the following ways ?"
echo " 0: No OpenGL Support (default)"
echo " 1: OSMesa (CPU Based Off Screen Rendering)"
echo " 2: GLX (GPU and X11 Rendering)"
echo " 3: OSMesa and GLX (CPU and GPU and X11 Rendering)"
$echo "Please select (0/1/2/3/q) : \c"
read reply
if [ X$reply = X0 ] ; then
./configure --prefix=$prefix --libdir=$prefix/lib
exit
fi
if [ X$reply = X1 ] ; then
./configure --prefix=$prefix --libdir=$prefix/lib --enable-snowmixosmesa --enable-snowmixglu --enable-snowmixglut $SNOWMIX_GLEW
exit
fi
if [ X$reply = X2 ] ; then
./configure --prefix=$prefix --libdir=$prefix/lib --enable-snowmixx11 --enable-snowmixglu --enable-snowmixglut $SNOWMIX_GLEW
exit
fi
if [ X$reply = X3 ] ; then
./configure --prefix=$prefix --libdir=$prefix/lib --enable-snowmixx11 --enable-snowmixosmesa --enable-snowmixglu --enable-snowmixglut $SNOWMIX_GLEW
exit
fi