Install dependencies: disable OSL for now
authorSergey Sharybin <sergey.vfx@gmail.com>
Sat, 17 Nov 2012 11:57:10 +0000 (11:57 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sat, 17 Nov 2012 11:57:10 +0000 (11:57 +0000)
It's really horror even for me to compile it on release environment,
i do not want anybody to spend time trying to support this lib in
automatic script or make it so user's are easily frustrated by some
hack added to OSL repository.

If you REALLY want to build OSL with this script, set BUILD_OSL to
truth (it's in the top of the script).

build_files/build_environment/install_deps.sh

index b8ce108..9cbd6cd 100755 (executable)
@@ -5,6 +5,11 @@ SRC="$HOME/src/blender-deps"
 INST="/opt/lib"
 CWD=$PWD
 
+# OSL is horror for manual building even
+# i would want it to be setteled for manual build first,
+# and only then do it automatically
+BUILD_OSL=false
+
 THREADS=`cat /proc/cpuinfo | grep cores | uniq | sed -e "s/.*: *\(.*\)/\\1/"`
 
 PYTHON_VERSION="3.3.0"
@@ -597,8 +602,6 @@ install_DEB() {
   VORBIS_DEV="libvorbis-dev"
   THEORA_DEV="libtheora-dev"
 
-  have_llvm=false
-
   sudo apt-get install -y 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 \
@@ -690,21 +693,25 @@ install_DEB() {
     compile_OIIO
   fi
 
-  check_package_DEB llvm-$LLVM_VERSION-dev
-  if [ $? -eq 0 ]; then
-    sudo apt-get install -y llvm-$LLVM_VERSION-dev clang
-    have_llvm=true
-  else
-    check_package_DEB llvm-$LLVM_VERSION_MIN-dev
+  if $BUILD_OSL; then
+    have_llvm=false
+
+    check_package_DEB llvm-$LLVM_VERSION-dev
     if [ $? -eq 0 ]; then
-      sudo apt-get install -y llvm-$LLVM_VERSION_MIN-dev clang
+      sudo apt-get install -y llvm-$LLVM_VERSION-dev clang
       have_llvm=true
+    else
+      check_package_DEB llvm-$LLVM_VERSION_MIN-dev
+      if [ $? -eq 0 ]; then
+        sudo apt-get install -y llvm-$LLVM_VERSION_MIN-dev clang
+        have_llvm=true
+      fi
     fi
-  fi
 
-  if $have_llvm; then
-    # No package currently!
-    compile_OSL
+    if $have_llvm; then
+      # No package currently!
+      compile_OSL
+    fi
   fi
 
 #  XXX Debian features libav packages as ffmpeg, those are not really compatible with blender code currently :/