1 # ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 # This software is governed by the CeCILL-B license under French law and
8 # abiding by the rules of distribution of free software. You can use,
9 # modify and/ or redistribute the software under the terms of the CeCILL-B
10 # license as circulated by CEA, CNRS and INRIA at the following URL
11 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
12 # or in the file LICENSE.txt.
14 # As a counterpart to the access to the source code and rights to copy,
15 # modify and redistribute granted by the license, users are provided only
16 # with a limited warranty and the software's author, the holder of the
17 # economic rights, and the successive licensors have only limited
20 # The fact that you are presently reading this means that you have had
21 # knowledge of the CeCILL-B license and that you accept its terms.
22 # ------------------------------------------------------------------------
27 if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
31 echo "==================================================="
34 echo "YOU NEED TO RUN 'Configure' (0) First !"
35 echo "==================================================="
42 source $PWD/scripts/CreaTools-configure.sh
45 echo $PWD/scripts/CreaTools-configure.sh
46 echo --generationdir--
50 echo --docgeneration--
52 echo --installPrefix--
54 echo --installPrefixThird--
55 echo $installPrefixThird
62 # echo --sourcesFrom--
66 # echo --start_point--
71 sourcesDir=$generationdir/thirdparty_sources
72 binDir=$generationdir/thirdparty_bin
74 if [ ! -e $generationdir ]
77 chown $loginUserName $generationdir
78 chgrp $loginGroupName $generationdir
81 if [ ! -e $sourcesDir ]
85 #chown $loginUserName:$loginGroupName $sourcesDir
86 chown $loginUserName $sourcesDir
87 chgrp $loginGroupName $sourcesDir
93 chown $loginUserName $binDir
94 chgrp $loginGroupName $binDir
98 # Third Party base stuff is now installed by ThirdParty-install-Base-Stuff.sh JPR
101 # the following stupid test is used at debug time; Please don't remove!
105 rm -rf $sourcesDir/tth*
109 if [ $OperatingSystem = "MacOS" ]
111 # curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/VTK-5.6.1.patchCreatis.tar.gz
112 # curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
113 # curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
114 curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_Developer_Tools/All_Versions/tth/tth_linux/tth
115 # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-(
116 # tar -xvf VTK-5.6.1.patchCreatis.tar.gz
117 # tar -xvf gdcm_05_Mai_2011.tar.gz
118 # tar -xvf InsightToolkit-3.20.0.tar.gz
120 # wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/VTK-5.6.1.patchCreatis.tar.gz
121 # wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz
122 # wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/InsightToolkit-3.20.0.tar.gz
123 wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_Developer_Tools/All_Versions/tth/tth_linux/tth
125 # tar -xvzf VTK-5.6.1.patchCreatis.tar.gz
126 #tar -xvzf gdcm_05_Mai_2011.tar.gz
127 #tar -xvzf InsightToolkit-3.20.0.tar.gz
133 if [ $buildType = "Debug" ]
144 # pourquoi ne copie-t-on plus? JPR
145 mkdir -p $installPrefixThird/bin
146 cp tth $installPrefixThird/bin