ARGS=$( \
getopt \
-o s:i:t:h \
---long source:,install:,tmp:,info:,threads:,help,show-deps,no-sudo,no-confirm,with-all,with-opencollada,\
+--long source:,install:,tmp:,info:,threads:,help,show-deps,no-sudo,no-build,no-confirm,with-all,with-opencollada,\
ver-ocio:,ver-oiio:,ver-llvm:,ver-osl:,ver-osd:,ver-openvdb:,\
force-all,force-python,force-numpy,force-boost,\
force-ocio,force-openexr,force-oiio,force-llvm,force-osl,force-osd,force-openvdb,\
--no-sudo
Disable use of sudo (this script won't be able to do much though, will just print needed packages...).
+ --no-build
+ Do not build (compile) anything, dependencies not installable with the package manager will remain missing.
+
--no-confirm
Disable any interaction with user (suitable for automated run).
SUDO="sudo"
+NO_BUILD=false
NO_CONFIRM=false
PYTHON_VERSION="3.5.1"
PRINT ""
SUDO=""; shift; continue
;;
+ --no-build)
+ PRINT ""
+ WARNING "--no-build enabled, this script will not be able to install all dependencies..."
+ PRINT ""
+ NO_BUILD=true; shift; continue
+ ;;
--no-confirm)
NO_CONFIRM=true; shift; continue
;;
}
compile_Python() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, Python will not be compiled!"
+ return
+ fi
+
# To be changed each time we make edits that would modify the compiled result!
py_magic=1
_init_python
}
compile_Numpy() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, Numpy will not be compiled!"
+ return
+ fi
+
# To be changed each time we make edits that would modify the compiled result!
numpy_magic=0
_init_numpy
}
compile_Boost() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, Boost will not be compiled!"
+ return
+ fi
+
# To be changed each time we make edits that would modify the compiled result!
boost_magic=10
}
compile_OCIO() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, OpenColorIO will not be compiled!"
+ return
+ fi
+
# To be changed each time we make edits that would modify the compiled result!
ocio_magic=1
_init_ocio
}
compile_ILMBASE() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, ILMBase will not be compiled!"
+ return
+ fi
+
# To be changed each time we make edits that would modify the compiled result!
ilmbase_magic=10
_init_ilmbase
}
compile_OPENEXR() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, OpenEXR will not be compiled!"
+ return
+ fi
+
# To be changed each time we make edits that would modify the compiled result!
openexr_magic=14
}
compile_OIIO() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, OpenImageIO will not be compiled!"
+ return
+ fi
+
# To be changed each time we make edits that would modify the compiled result!
oiio_magic=16
_init_oiio
}
compile_LLVM() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, LLVM will not be compiled!"
+ return
+ fi
+
# To be changed each time we make edits that would modify the compiled result!
llvm_magic=3
_init_llvm
}
compile_OSL() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, OpenShadingLanguage will not be compiled!"
+ return
+ fi
+
# To be changed each time we make edits that would modify the compiled result!
osl_magic=20
_init_osl
}
compile_OSD() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, OpenSubdiv will not be compiled!"
+ return
+ fi
+
# To be changed each time we make edits that would modify the compiled result!
osd_magic=1
_init_osd
}
compile_BLOSC() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, Blosc will not be compiled!"
+ return
+ fi
+
# To be changed each time we make edits that would modify the compiled result!
blosc_magic=0
_init_blosc
}
compile_OPENVDB() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, OpenVDB will not be compiled!"
+ return
+ fi
+
compile_BLOSC
PRINT ""
}
compile_OpenCOLLADA() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, OpenCOLLADA will not be compiled!"
+ return
+ fi
+
# To be changed each time we make edits that would modify the compiled results!
opencollada_magic=9
_init_opencollada
}
compile_FFmpeg() {
+ if [ "$NO_BUILD" = true ]; then
+ WARNING "--no-build enabled, ffmpeg will not be compiled!"
+ return
+ fi
+
# To be changed each time we make edits that would modify the compiled result!
ffmpeg_magic=5
_init_ffmpeg