summaryrefslogtreecommitdiff
path: root/scripts/uni-build-dependencies.sh
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2012-12-25 01:44:43 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2012-12-25 01:44:43 (GMT)
commitfb6d7f987507874469de6d72ababecbeccab7d2a (patch)
treef76dbb3202b51ad80b7f58ec8967cecd07fa94a5 /scripts/uni-build-dependencies.sh
parent6693c3b3648e63dfcacd65c3eff9b02e7ea6da32 (diff)
fix clang build on glew. add some documentation.
Diffstat (limited to 'scripts/uni-build-dependencies.sh')
-rwxr-xr-xscripts/uni-build-dependencies.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/uni-build-dependencies.sh b/scripts/uni-build-dependencies.sh
index a7c62d2..6384148 100755
--- a/scripts/uni-build-dependencies.sh
+++ b/scripts/uni-build-dependencies.sh
@@ -242,7 +242,7 @@ build_glew()
# clang linux
if [ $CC ]; then
- sed -ibak s/"CC = cc"/"CC = $(CC)"/ config/Makefile.linux
+ sed -ibak s/"CC = cc"/"# CC = cc"/ config/Makefile.linux
fi
MAKER=make
@@ -350,6 +350,9 @@ build_eigen()
}
+# this section allows 'out of tree' builds, as long as the system has
+# the 'dirname' command installed
+
if [ "`command -v dirname`" ]; then
OPENSCAD_SCRIPTDIR=`dirname $0`
else
@@ -379,6 +382,9 @@ echo "Using srcdir:" $SRCDIR
echo "Number of CPUs for parallel builds:" $NUMCPU
mkdir -p $SRCDIR $DEPLOYDIR
+# this section builds some basic tools, if they are missing or outdated
+# they are installed under $BASEDIR/bin which we have added to our PATH
+
if [ ! "`command -v curl`" ]; then
build_curl 7.26.0
fi
contact: Jan Huwald // Impressum