if [ true = true ]
then
# BBTK
- echo ========================================================= $bbtksource $generationdir $installPrefix $buildType
- bash $scriptDir/cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
- bash $scriptDir/bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion
- bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber
- bash $scriptDir/ctestmod.sh $bbtksource $generationdir
- fi
+ echo ========================================================= $bbtksource $generationdir $installPrefix $buildType
+ bash $scriptDir/cmakemod.sh $bbtksource $generationdir $installPrefix $buildType
+ bash $scriptDir/bbtkVariables.sh $bbtksource $generationdir $docgeneration $gdcmVersion
+ bash $scriptDir/compilemod.sh $buildType $bbtksource $generationdir $corenumber
+ bash $scriptDir/ctestmod.sh $bbtksource $generationdir
+ fi
fi
bbtkdll=$generationdir/creatools_bin/bbtkBin
fi
touch $installPrefix/share/creatools_base_library_config.sh
chmod 755 $installPrefix/share/creatools_base_library_config.sh
-
- # Install creatools as user (no longer as root) // JPR 2/5/2011
-
+ echo export PATH='$'PATH:$installPrefix/bin >> $installPrefix/share/creatools_base_library_config.sh
+ if [ $OperatingSystem = "MacOS" ]
+ then
+ echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$installPrefix/lib/creatools >> $installPrefix/share/creatools_base_library_config.sh
+ else
+ echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib/creatools >> $installPrefix/share/creatools_base_library_config.sh
+ echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$installPrefix/lib64/creatools >> $installPrefix/share/creatools_base_library_config.sh
+ fi
+
+ # Install creatools as user (no longer as root) // JPR 2/5/2011
+
# - remove line 'bash $installPrefix/creatools_install/share/creatools_base_library_config.sh' if any
sed -i -e '/.*creatools_base_library_config.*/ d' $ETC_BASHRC
sed -i -e '/installPrefixtmp*/ d' $ETC_BASHRC
bash installmodNomake.sh $buildType wxvtk $generationdir $installPrefix
#EED I don't know why this works here and not after the chmod 755
- echo export PATH='$'PATH:$installPrefix/bin >> $installPrefix/share/creatools_base_library_config.sh
+echo export PATH='$'PATH:$installPrefix/bin >> $installPrefix/share/creatools_base_library_config.sh
if [ $OperatingSystem = "MacOS" ]
then
echo export DYLD_LIBRARY_PATH='$'DYLD_LIBRARY_PATH:$installPrefix/lib/creatools >> $installPrefix/share/creatools_base_library_config.sh
fi
echo "===================================================in CreaTools-install.sh ETC_BASHRC : " $ETC_BASHRC
-
echo installPrefixtmp=$installPrefix >> $ETC_BASHRC
echo '[ -f "$installPrefixtmp/share/creatools_base_library_config.sh" ] && source $installPrefixtmp/share/creatools_base_library_config.sh' >> $ETC_BASHRC
echo --gdcmVersion--
echo $gdcmVersion
echo "--ETC_BASHRC--"
- echo $ETC_BASHRC
+ echo $ETC_BASHRC
echo --sourcesFrom--
echo $sourcesFrom
echo --scriptDir--
mkdir $generationdir
chown $loginUserName $generationdir
chgrp $loginGroupName $generationdir
-
fi
+
if [ ! -e $sourcesDir ]
then
mkdir $sourcesDir
port install latex2html -y
port install wxGTK -y
port install boost -y
- ln -s libboost_signals-xgcc40-mt-1_38.dylib libboost_signals.dylib /opt/local/lib # cf EED : http://www.creatis.insa-lyon.fr/site
- ln -s libboost_signals-xgcc40-mt-1_38.dylib libboost_signals.dylib /opt/local/lib # cf EED
- ln -s libboost_filesystem-xgcc40-mt-1_38.dylib libboost_filesystem.dylib /opt/local/lib # cf EE
- ln -s libboost_system-xgcc40-mt-1_38.dylib libboost_system.dylib /opt/local/lib # cf EE
+ ln -s libboost_signals-xgcc40-mt-1_38.dylib libboost_signals.dylib /opt/local/lib # cf EED : http://www.creatis.insa-lyon.fr/site
+ ln -s libboost_signals-xgcc40-mt-1_38.dylib libboost_signals.dylib /opt/local/lib # cf EED
+ ln -s libboost_filesystem-xgcc40-mt-1_38.dylib libboost_filesystem.dylib /opt/local/lib # cf EE
+ ln -s libboost_system-xgcc40-mt-1_38.dylib libboost_system.dylib /opt/local/lib # cf EE
port install sqlite3 -y
port install qt4-mac -y
- ln -s qmake-mac qmake /opt/local/bin # cf EED
+ ln -s qmake-mac qmake /opt/local/bin # cf EED
port install mesa -y
;;
*)
sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC
-
# - add line 'bash $installPrefixThird/share/creatools_third_party_library_config.sh' (with accurate value for ???)
echo "====================================================ETC_BASHRC " $ETC_BASHRC
echo installPrefixThird=$installPrefixThird >> $ETC_BASHRC
echo '[ -f "$installPrefixThird/share/creatools_third_party_library_config.sh" ] && source $installPrefixThird/share/creatools_third_party_library_config.sh' >> $ETC_BASHRC
-
chown -R $loginUserName $generationdir
chgrp -R $loginGroupName $generationdir
chown $loginUserName $generationdir
chgrp $loginGroupName $generationdir
fi
+
if [ ! -e $sourcesDir ]
then
mkdir $sourcesDir
cd $sourcesDir
if [ $OperatingSystem = "MacOS" ]
- then
+ then
# curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/VTK-5.6.1.patchCreatis.tar.gz
# curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
# curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$VTK_DIR >> $installPrefixThird/share/creatools_third_party_library_config.sh
fi
-# done in CreaTools-configure.sh JPR
-#if [ $OperatingSystem = "MacOS" ]
-#then
-# export ETC_BASHRC=$HOME/.profile
-#else
-# export ETC_BASHRC=$HOME/.bashrc
-#fi
-
sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC