summaryrefslogtreecommitdiff
path: root/scripts/uni-build-dependencies.sh
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-01-31 02:58:34 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-01-31 02:58:34 (GMT)
commit997a0afac3f9b3a7aa2c4a8d351c3697bc91f7aa (patch)
tree3b3816d1557746f5f2e3e86a9239821472012024 /scripts/uni-build-dependencies.sh
parentd0de384a7e1642d09726579fdd75f1588cfaada7 (diff)
parentaf0658a8fe441ebb0eb3d238e7055fd592343605 (diff)
Merge branch 'master' and fix bugs
Conflicts: src/openscad.cc tests/CMakeLists.txt
Diffstat (limited to 'scripts/uni-build-dependencies.sh')
-rwxr-xr-xscripts/uni-build-dependencies.sh20
1 files changed, 16 insertions, 4 deletions
diff --git a/scripts/uni-build-dependencies.sh b/scripts/uni-build-dependencies.sh
index 0c37605..3da11ec 100755
--- a/scripts/uni-build-dependencies.sh
+++ b/scripts/uni-build-dependencies.sh
@@ -176,15 +176,27 @@ build_boost()
fi
fi
# We only need certain portions of boost
- ./bootstrap.sh --prefix=$DEPLOYDIR --with-libraries=thread,program_options,filesystem,system,regex
+ if [ -e ./bootstrap.sh ]; then
+ BSTRAPBIN=./bootstrap.sh
+ else
+ BSTRAPBIN=./configure
+ fi
+ $BSTRAPBIN --prefix=$DEPLOYDIR --with-libraries=thread,program_options,filesystem,system,regex
+ if [ -e ./b2 ]; then
+ BJAMBIN=./b2;
+ elif [ -e ./bjam ]; then
+ BJAMBIN=./bjam
+ elif [ -e ./Makefile ]; then
+ BJAMBIN=make
+ fi
if [ $CXX ]; then
if [ $CXX = "clang++" ]; then
- ./b2 -j$NUMCPU toolset=clang install
+ $BJAMBIN -j$NUMCPU toolset=clang install
# ./b2 -j$NUMCPU toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++" install
fi
else
- ./b2 -j$NUMCPU
- ./b2 install
+ $BJAMBIN -j$NUMCPU
+ $BJAMBIN install
fi
}
contact: Jan Huwald // Impressum