]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/ThirdParty-install-Base-Stuff.sh
#2493 creaToolsTools Feature New Normal - Prepare and Install binary CreaTools...
[creaToolsTools.git] / Linux / scripts / ThirdParty-install-Base-Stuff.sh
index 7220629fc79321a38bb781955c3b79539048eb79..a548be6662590a4f879ed902d014413b6c459b6c 100644 (file)
@@ -1,3 +1,27 @@
+# ---------------------------------------------------------------------
+#
+# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
+#                        pour la Santé)
+# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+#
+#  This software is governed by the CeCILL-B license under French law and 
+#  abiding by the rules of distribution of free software. You can  use, 
+#  modify and/ or redistribute the software under the terms of the CeCILL-B 
+#  license as circulated by CEA, CNRS and INRIA at the following URL 
+#  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
+#  or in the file LICENSE.txt.
+#
+#  As a counterpart to the access to the source code and  rights to copy,
+#  modify and redistribute granted by the license, users are provided only
+#  with a limited warranty  and the software's author,  the holder of the
+#  economic rights,  and the successive licensors  have only  limited
+#  liability. 
+#
+#  The fact that you are presently reading this means that you have had
+#  knowledge of the CeCILL-B license and that you accept its terms.
+# ------------------------------------------------------------------------  
+
+
 #!/bin/bash
 
  if [ ! -f $PWD/scripts/CreaTools-configure.sh ]
@@ -22,25 +46,25 @@ binDir=$generationdir/thirdparty_bin
 
 if [ ! -e $generationdir ]
 then
-   mkdir $generationdir
-   chown $loginUserName  $generationdir
-   chgrp $loginGroupName $generationdir
+   mkdir -p $generationdir
+   chown -R $loginUserName  $generationdir
+   chgrp -R $loginGroupName $generationdir
 fi
 
 if [ ! -e $sourcesDir ]
 then
-   mkdir $sourcesDir
+   mkdir -p $sourcesDir
    #was : (pb on MacOS?)
-   #chown $loginUserName:$loginGroupName $sourcesDir
-   chown $loginUserName  $sourcesDir
-   chgrp $loginGroupName $sourcesDir
+   #chown -R $loginUserName:$loginGroupName $sourcesDir
+   chown -R $loginUserName  $sourcesDir
+   chgrp -R $loginGroupName $sourcesDir
 fi
 
 if [ ! -e $binDir ]
 then
-   mkdir $binDir
-   chown $loginUserName  $binDir
-   chgrp $loginGroupName $binDir
+   mkdir -p $binDir
+   chown -R $loginUserName  $binDir
+   chgrp -R $loginGroupName $binDir
 fi
 
 # the following stupid test is used at debug time; Please don't remove!
@@ -49,8 +73,36 @@ if [ true = true ]
 then
   # ///\TODO what about SuSE? Debian? Mandriva? Gentoo?
   case "$OperatingSystem" in
+  Mandriva)
+     urpmi cmake                
+     urpmi cmake-qtgui            
+     urpmi doxygen              
+     urpmi graphviz             
+     urpmi texlive              
+     urpmi latex2html           
+     urpmi libwxgtk2.8    
+     urpmi lib64wxgtk2.8    
+     urpmi boost-devel          
+     urpmi sqlite-devel         
+     urpmi qt4-common
+     urpmi libqt4-devel             
+     urpmi lib64qt4-devel             
+     #urpmi mesa-libOSMesa-devel 
+     urpmi lib64mesagl1-devel
+     urpmi libmesagl1-devel
+     urpmi lib64xt-devel
+     urpmi libxt-devel
+     urpmi lib64wxgtk2.8-devel
+     urpmi libwxgtk2.8-devel
+     urpmi gcc-c++
+     urpmi git
+     urpmi rpm-build
+     urpmi patch ### EED It's working ???
+
+     ;;
   Fedora)
      yum install wget                 -y
+     yum install unzip                -y
      yum install cmake                -y
      yum install cmake-gui            -y
      yum install doxygen              -y
@@ -65,12 +117,14 @@ then
      yum install gcc                  -y
      yum install gcc-c++              -y
      yum install xerces-c-devel       -y
-     yum install cvs                  -y
+     yum install git                  -y
      yum install qtwebkit-devel       -y
+     yum install patch                -y
 
      ;;
   Ubuntu)
      apt-get --yes install build-essential  # esta linea instala las librerias necesarias para compilar en ubuntu, g++ gcc etc etc etc.
+     apt-get --yes install git
      apt-get --yes install cmake
      apt-get --yes install cmake-gui
      apt-get --yes install cmake-curses-gui
@@ -85,6 +139,8 @@ then
      apt-get --yes install libboost-dev  #Boost
      apt-get --yes install libboost-all-dev #Boost
      apt-get --yes install libqt4-dev #QT4
+     apt-get --yes install libxerces-c-dev
+     apt-get --yes install patch
      ## CLAIRE - JGRR
      apt-get --yes install qt4-qmake #QT4 qmake
      apt-get --yes install libsqlite0-dev