]> Creatis software - creaToolsTools.git/blob - Linux/scripts/ThirdParty-install-Base-rpm.sh
1ab88ab15dca61747821e6d26e999b2e1951cf83
[creaToolsTools.git] / Linux / scripts / ThirdParty-install-Base-rpm.sh
1
2 # ---------------------------------------------------------------------
3 #
4 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
5 #                        pour la Santé)
6 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
7 #
8 #  This software is governed by the CeCILL-B license under French law and 
9 #  abiding by the rules of distribution of free software. You can  use, 
10 #  modify and/ or redistribute the software under the terms of the CeCILL-B 
11 #  license as circulated by CEA, CNRS and INRIA at the following URL 
12 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html 
13 #  or in the file LICENSE.txt.
14 #
15 #  As a counterpart to the access to the source code and  rights to copy,
16 #  modify and redistribute granted by the license, users are provided only
17 #  with a limited warranty  and the software's author,  the holder of the
18 #  economic rights,  and the successive licensors  have only  limited
19 #  liability. 
20 #
21 #  The fact that you are presently reading this means that you have had
22 #  knowledge of the CeCILL-B license and that you accept its terms.
23 # ------------------------------------------------------------------------  
24
25
26 #!/bin/bash
27
28 OperatingSystem=$1
29 echo "OperatingSystem = $OperatingSystem"
30
31 # the following stupid test is used at debug time; Please don't remove!
32 if [ true = true ]
33 #if [ true = false ]
34 then
35   # ///\TODO what about SuSE? Debian? Mandriva? Gentoo?
36   case "$OperatingSystem" in
37   Mandriva)
38      urpmi cmake                
39      urpmi cmake-qtgui            
40      urpmi doxygen              
41      urpmi graphviz             
42      urpmi texlive              
43      urpmi latex2html           
44      urpmi libwxgtk2.8    
45      urpmi lib64wxgtk2.8    
46      urpmi boost-devel          
47      urpmi sqlite-devel         
48      urpmi qt4-common
49      urpmi libqt4-devel             
50      urpmi lib64qt4-devel             
51      #urpmi mesa-libOSMesa-devel 
52      urpmi lib64mesagl1-devel
53      urpmi libmesagl1-devel
54      urpmi lib64xt-devel
55      urpmi libxt-devel
56      urpmi lib64wxgtk2.8-devel
57      urpmi libwxgtk2.8-devel
58      urpmi gcc-c++
59      urpmi git
60      urpmi rpm-build
61      urpmi patch ### EED It's working ???
62
63      ;;
64   Fedora)
65      yum install wget                 -y
66      yum install unzip                -y
67      yum install cmake                -y
68      yum install cmake-gui            -y
69      yum install doxygen              -y
70      yum install graphviz             -y
71      yum install texlive              -y
72      yum install latex2html           -y
73      yum install wxGTK-devel wxBase   -y
74      yum install boost-devel          -y
75      yum install sqlite-devel         -y
76      yum install qt-devel             -y
77      yum install mesa-libOSMesa-devel -y
78      yum install gcc                  -y
79      yum install gcc-c++              -y
80      yum install xerces-c-devel       -y
81      yum install git                  -y
82      yum install qtwebkit-devel       -y
83      yum install patch                -y
84
85      ;;
86   Ubuntu)
87      apt-get --yes install build-essential  # esta linea instala las librerias necesarias para compilar en ubuntu, g++ gcc etc etc etc.
88      apt-get --yes install git
89      apt-get --yes install cmake
90      apt-get --yes install cmake-gui
91      apt-get --yes install cmake-curses-gui
92      apt-get --yes install doxygen
93      apt-get --yes install graphviz
94      apt-get --yes install texlive
95      apt-get --yes install latex2html
96      apt-get --yes install libgtk2.0-dev #GTK
97      apt-get --yes install libwxgtk2.8-dev #Wx GTK
98      apt-get --yes install libwxbase2.8-dev #Wx solito
99      apt-get --yes install wx-common #wxrc
100      apt-get --yes install libboost-dev  #Boost
101      apt-get --yes install libboost-all-dev #Boost
102      apt-get --yes install libqt4-dev #QT4
103      apt-get --yes install libxerces-c-dev
104      apt-get --yes install patch
105      ## CLAIRE - JGRR
106      apt-get --yes install qt4-qmake #QT4 qmake
107      apt-get --yes install libsqlite0-dev
108      apt-get --yes install libsqlite3-dev
109      apt-get --yes install libosmesa6-dev #Mesa6
110      apt-get --yes install uuid-dev # uuid para la instalacion de itk
111      apt-get --yes install libxaw7-dev # X11
112      ;;
113   MacOS)
114      port selfupdate
115      port install cmake                -y
116      port install doxygen              -y
117      port install graphviz             -y
118     # port install tetex               -y   (replaced by texlive) # cf EED : http://www.creatis.insa-lyon.fr/site/fr/CreatoolsInstallInstructionsv2.0.1MacOsv10.5.6-Developpers
119      port install texlive              -y
120      port install latex2html           -y
121      port install wxGTK                -y
122      port install boost                -y
123      ln -s libboost_signals-xgcc40-mt-1_38.dylib    libboost_signals.dylib    /opt/local/lib # cf EED : http://www.creatis.insa-lyon.fr/site
124      ln -s libboost_signals-xgcc40-mt-1_38.dylib    libboost_signals.dylib    /opt/local/lib # cf EED
125      ln -s libboost_filesystem-xgcc40-mt-1_38.dylib libboost_filesystem.dylib /opt/local/lib # cf EE
126      ln -s libboost_system-xgcc40-mt-1_38.dylib     libboost_system.dylib     /opt/local/lib # cf EE 
127      port install sqlite3              -y
128      port install qt4-mac              -y
129      ln -s qmake-mac qmake /opt/local/bin  # cf EED
130      port install mesa                 -y
131      ;;
132   *)
133      echo " '$OperatingSystem' : Unknown (for us...) Operating Sytem "
134      echo " Allowed values are (right now) Fedora, Ubuntu, MacOS "
135      exit 0
136      ;;
137   esac
138 fi