install_deps.sh: Fix dependencies between (built) libs.

Who in hell did make OSD dependant on llvm???
This commit is contained in:
Bastien Montagne 2015-11-23 21:03:22 +01:00
parent 029a92ded6
commit 39957b85d9

@ -26,7 +26,7 @@ ARGS=$( \
getopt \ getopt \
-o s:i:t:h \ -o s:i:t:h \
--long source:,install:,tmp:,info:,threads:,help,show-deps,no-sudo,with-all,with-opencollada,\ --long source:,install:,tmp:,info:,threads:,help,show-deps,no-sudo,with-all,with-opencollada,\
ver-ocio:,ver-oiio:,ver-llvm:,ver-osl:,\ ver-ocio:,ver-oiio:,ver-llvm:,ver-osl:,ver-osd:,\
force-all,force-python,force-numpy,force-boost,force-ocio,force-openexr,force-oiio,force-llvm,force-osl,force-osd,\ force-all,force-python,force-numpy,force-boost,force-ocio,force-openexr,force-oiio,force-llvm,force-osl,force-osd,\
force-ffmpeg,force-opencollada,\ force-ffmpeg,force-opencollada,\
build-all,build-python,build-numpy,build-boost,build-ocio,build-openexr,build-oiio,build-llvm,build-osl,build-osd,\ build-all,build-python,build-numpy,build-boost,build-ocio,build-openexr,build-oiio,build-llvm,build-osl,build-osd,\
@ -115,6 +115,9 @@ ARGUMENTS_INFO="\"COMMAND LINE ARGUMENTS:
--ver-osl=<ver> --ver-osl=<ver>
Force version of OSL library. Force version of OSL library.
--ver-osd=<ver>
Force version of OSD library.
Note about the --ver-foo options: Note about the --ver-foo options:
It may not always work as expected (some libs are actually checked out from a git rev...), yet it might help It may not always work as expected (some libs are actually checked out from a git rev...), yet it might help
to fix some build issues (like LLVM mismatch with the version used by your graphic system). to fix some build issues (like LLVM mismatch with the version used by your graphic system).
@ -437,7 +440,6 @@ while true; do
--ver-ocio) --ver-ocio)
OCIO_VERSION="$2" OCIO_VERSION="$2"
OCIO_VERSION_MIN=$OCIO_VERSION OCIO_VERSION_MIN=$OCIO_VERSION
echo $OCIO_VERSION
shift; shift; continue shift; shift; continue
;; ;;
--ver-oiio) --ver-oiio)
@ -494,13 +496,10 @@ while true; do
OPENEXR_FORCE_BUILD=true; shift; continue OPENEXR_FORCE_BUILD=true; shift; continue
;; ;;
--build-oiio) --build-oiio)
OIIO_FORCE_BUILD=true OIIO_FORCE_BUILD=true; shift; continue
shift; continue
;; ;;
--build-llvm) --build-llvm)
LLVM_FORCE_BUILD=true LLVM_FORCE_BUILD=true; shift; continue
OSL_FORCE_BUILD=true
shift; continue
;; ;;
--build-osl) --build-osl)
OSL_FORCE_BUILD=true; shift; continue OSL_FORCE_BUILD=true; shift; continue
@ -546,13 +545,10 @@ while true; do
OPENEXR_FORCE_REBUILD=true; shift; continue OPENEXR_FORCE_REBUILD=true; shift; continue
;; ;;
--force-oiio) --force-oiio)
OIIO_FORCE_REBUILD=true OIIO_FORCE_REBUILD=true; shift; continue
shift; continue
;; ;;
--force-llvm) --force-llvm)
LLVM_FORCE_REBUILD=true LLVM_FORCE_REBUILD=true; shift; continue
OSL_FORCE_REBUILD=true
shift; continue
;; ;;
--force-osl) --force-osl)
OSL_FORCE_REBUILD=true; shift; continue OSL_FORCE_REBUILD=true; shift; continue
@ -1052,7 +1048,9 @@ compile_Boost() {
INFO "Building Boost-$BOOST_VERSION" INFO "Building Boost-$BOOST_VERSION"
# Rebuild dependecies as well! # Rebuild dependecies as well!
OIIO_FORCE_BUILD=true
OIIO_FORCE_REBUILD=true OIIO_FORCE_REBUILD=true
OSL_FORCE_BUILD=true
OSL_FORCE_REBUILD=true OSL_FORCE_REBUILD=true
prepare_opt prepare_opt
@ -1212,6 +1210,7 @@ compile_ILMBASE() {
INFO "Building ILMBase-$ILMBASE_VERSION" INFO "Building ILMBase-$ILMBASE_VERSION"
# Rebuild dependecies as well! # Rebuild dependecies as well!
OPENEXR_FORCE_BUILD=true
OPENEXR_FORCE_REBUILD=true OPENEXR_FORCE_REBUILD=true
prepare_opt prepare_opt
@ -1302,8 +1301,8 @@ compile_OPENEXR() {
INFO "Building OpenEXR-$OPENEXR_VERSION" INFO "Building OpenEXR-$OPENEXR_VERSION"
# Rebuild dependecies as well! # Rebuild dependecies as well!
OIIO_FORCE_BUILD=true
OIIO_FORCE_REBUILD=true OIIO_FORCE_REBUILD=true
OSL_FORCE_REBUILD=true
prepare_opt prepare_opt
@ -1412,6 +1411,7 @@ compile_OIIO() {
INFO "Building OpenImageIO-$OIIO_VERSION" INFO "Building OpenImageIO-$OIIO_VERSION"
# Rebuild dependecies as well! # Rebuild dependecies as well!
OSL_FORCE_BUILD=true
OSL_FORCE_REBUILD=true OSL_FORCE_REBUILD=true
prepare_opt prepare_opt
@ -1539,6 +1539,10 @@ compile_LLVM() {
if [ ! -d $_inst ]; then if [ ! -d $_inst ]; then
INFO "Building LLVM-$LLVM_VERSION (CLANG included!)" INFO "Building LLVM-$LLVM_VERSION (CLANG included!)"
# Rebuild dependecies as well!
OSL_FORCE_BUILD=true
OSL_FORCE_REBUILD=true
prepare_opt prepare_opt
if [ ! -d $_src -o true ]; then if [ ! -d $_src -o true ]; then
@ -1597,9 +1601,6 @@ compile_LLVM() {
magic_compile_set llvm-$LLVM_VERSION $llvm_magic magic_compile_set llvm-$LLVM_VERSION $llvm_magic
# Rebuild dependecies as well!
OSL_FORCE_REBUILD=true
cd $CWD cd $CWD
INFO "Done compiling LLVM-$LLVM_VERSION (CLANG included)!" INFO "Done compiling LLVM-$LLVM_VERSION (CLANG included)!"
else else
@ -2449,13 +2450,9 @@ install_DEB() {
fi fi
if [ "$_do_compile_osd" = true ]; then if [ "$_do_compile_osd" = true ]; then
if [ "$have_llvm" = true ]; then install_packages_DEB flex bison libtbb-dev
install_packages_DEB flex bison libtbb-dev PRINT ""
PRINT "" compile_OSD
compile_OSD
else
WARNING "No LLVM available, cannot build OSD!"
fi
fi fi
@ -2965,16 +2962,12 @@ install_RPM() {
fi fi
if [ "$_do_compile_osd" = true ]; then if [ "$_do_compile_osd" = true ]; then
if [ "$have_llvm" = true ]; then install_packages_RPM flex bison
install_packages_RPM flex bison if [ "$RPM" = "FEDORA" -o "$RPM" = "RHEL" ]; then
if [ "$RPM" = "FEDORA" -o "$RPM" = "RHEL" ]; then install_packages_RPM tbb-devel
install_packages_RPM tbb-devel
fi
PRINT ""
compile_OSD
else
WARNING "No LLVM available, cannot build OSD!"
fi fi
PRINT ""
compile_OSD
fi fi
@ -3361,13 +3354,9 @@ install_ARCH() {
fi fi
if [ "$_do_compile_osd" = true ]; then if [ "$_do_compile_osd" = true ]; then
if [ "$have_llvm" = true ]; then install_packages_ARCH intel-tbb
install_packages_ARCH intel-tbb PRINT ""
PRINT "" compile_OSD
compile_OSD
else
WARNING "No LLVM available, cannot build OSD!"
fi
fi fi
@ -3550,13 +3539,9 @@ install_OTHER() {
fi fi
if [ "$_do_compile_osd" = true ]; then if [ "$_do_compile_osd" = true ]; then
if [ "$have_llvm" = true ]; then install_packages_DEB flex bison libtbb-dev
install_packages_DEB flex bison libtbb-dev PRINT ""
PRINT "" compile_OSD
compile_OSD
else
WARNING "No LLVM available, cannot build OSD!"
fi
fi fi