diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2012-11-17 18:41:18 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2012-11-17 18:41:18 +0400 |
commit | f55b9b6e2f401ebd763fb9e5995ae37375551c61 (patch) | |
tree | fe1783b448610ad74253856bbb897d2d1aa77719 | |
parent | 4cb3aba7624c0b07fb6540d103ca441b7b8cf81b (diff) |
Mono-core platform seem to not output the cores field in /proc/cpuinfo :/
Also adding gawk packages (gnu awk), looks like some distro do not have that one by default!
-rwxr-xr-x | build_files/build_environment/install_deps.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/build_files/build_environment/install_deps.sh b/build_files/build_environment/install_deps.sh index 5c56182d28f..fcf5fb227f9 100755 --- a/build_files/build_environment/install_deps.sh +++ b/build_files/build_environment/install_deps.sh @@ -11,6 +11,9 @@ CWD=$PWD BUILD_OSL=false THREADS=`cat /proc/cpuinfo | grep cores | uniq | sed -e "s/.*: *\(.*\)/\\1/"` +if [ -z "$v" ]; then + THREADS=1 +fi PYTHON_VERSION="3.3.0" PYTHON_VERSION_MIN="3.3" @@ -639,7 +642,7 @@ install_DEB() { VORBIS_DEV="libvorbis-dev" THEORA_DEV="libtheora-dev" - sudo apt-get install -y cmake scons gcc g++ libjpeg-dev libpng-dev libtiff-dev \ + sudo apt-get install -y gawk cmake scons gcc g++ libjpeg-dev libpng-dev libtiff-dev \ libfreetype6-dev libx11-dev libxi-dev wget libsqlite3-dev libbz2-dev libncurses5-dev \ libssl-dev liblzma-dev libreadline-dev $OPENJPEG_DEV libopenexr-dev libopenal-dev \ libglew-dev yasm $SCHRO_DEV $THEORA_DEV $VORBIS_DEV libsdl1.2-dev \ @@ -809,7 +812,7 @@ install_RPM() { sudo yum -y update - sudo yum -y install gcc gcc-c++ cmake scons libpng-devel libtiff-devel \ + sudo yum -y install gawk gcc gcc-c++ cmake scons libpng-devel libtiff-devel \ freetype-devel libX11-devel libXi-devel wget libsqlite3x-devel ncurses-devel \ readline-devel openjpeg-devel openexr-devel openal-soft-devel \ glew-devel yasm schroedinger-devel libtheora-devel libvorbis-devel SDL-devel \ |