summaryrefslogtreecommitdiff
path: root/scripts/uni-build-dependencies.sh
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2013-09-22 21:35:29 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2013-09-22 21:35:29 (GMT)
commit40a198a0870d53f491ba72a95a57b9f405d031c0 (patch)
tree0ab33a5d68cc86c76bd1b038e5aa27f566bd6c20 /scripts/uni-build-dependencies.sh
parent5f36117b8ff7e14ae450e770cdaa67e60561672d (diff)
tweaks for building on older machines
Diffstat (limited to 'scripts/uni-build-dependencies.sh')
-rwxr-xr-xscripts/uni-build-dependencies.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/scripts/uni-build-dependencies.sh b/scripts/uni-build-dependencies.sh
index 6596c8a..bc2b179 100755
--- a/scripts/uni-build-dependencies.sh
+++ b/scripts/uni-build-dependencies.sh
@@ -53,6 +53,16 @@ printUsage()
echo
}
+detect_glu()
+{
+ detect_glu_result=
+ if [ -e $DEPLOYDIR/include/GL/glu.h ]; then detect_glu_result=1; fi
+ if [ -e /usr/include/GL/glu.h ]; then detect_glu_result=1; fi
+ if [ -e /usr/local/include/GL/glu.h ]; then detect_glu_result=1; fi
+ if [ -e /usr/pkg/X11R7/include/GL/glu.h ]; then detect_glu_result=1; fi
+ return
+}
+
build_glu()
{
version=$1
@@ -436,7 +446,8 @@ build_opencsg()
cp src/Makefile src/Makefile.bak2
cat src/Makefile.bak2 | sed s@^LIBS.*@LIBS\ =\ -L$BASEDIR/lib\ -L/usr/X11R6/lib\ -lGLU\ -lGL@ > src/Makefile
tmp=$version
- build_glu 9.0.0 # todo - autodetect the need for glu
+ detect_glu
+ if [ ! $detect_glu_result ]; then build_glu 9.0.0 ; fi
version=$tmp
fi
@@ -583,6 +594,8 @@ if [ $1 ]; then
fi
+# todo - cgal 4.02 for gcc<4.7, gcc 4.2 for above
+
#
# Main build of libraries
# edit version numbers here as needed.
contact: Jan Huwald // Impressum