]> Creatis software - creaToolsTools.git/blob - Linux/scripts/ThirdParty-install-Base-rpm.sh
#3454 wxwidgets 3.2 macOS
[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 aria2
39      urpmi cmake                
40      urpmi cmake-qtgui            
41      urpmi doxygen              
42      urpmi graphviz             
43      urpmi texlive              
44      urpmi latex2html           
45      urpmi libwxgtk2.8    
46      urpmi lib64wxgtk2.8    
47      urpmi boost-devel          
48      urpmi sqlite-devel         
49      urpmi qt4-common
50      urpmi libqt4-devel             
51      urpmi lib64qt4-devel             
52      #urpmi mesa-libOSMesa-devel 
53      urpmi lib64mesagl1-devel
54      urpmi libmesagl1-devel
55      urpmi lib64xt-devel
56      urpmi libxt-devel
57      urpmi lib64wxgtk2.8-devel
58      urpmi libwxgtk2.8-devel
59      urpmi gcc-c++
60      urpmi git
61      urpmi rpm-build
62      urpmi patch      ### EED It's working ???
63      urpmi fcgi       ### EED It's working ???
64      urpmi fcgi-devel ### EED It's working ???
65
66      ;;
67   Fedora)
68      yum install aria2                -y
69      yum install wget                 -y
70      yum install unzip                -y
71      yum install cmake                -y
72      yum install cmake-gui            -y
73      yum install doxygen              -y
74      yum install graphviz             -y
75      yum install texlive              -y
76      yum install latex2html           -y
77      yum install wxGTK3-devel wxBase3 -y
78      yum install boost-devel          -y
79      yum install sqlite-devel         -y
80      yum install qt-devel             -y
81      yum install mesa-libOSMesa-devel -y
82      yum install gcc                  -y
83      yum install gcc-c++              -y
84      yum install make                 -y
85      yum install redhat-rpm-config    -y
86      yum install xerces-c-devel       -y
87      yum install git                  -y
88      yum install qtwebkit-devel       -y
89      yum install patch                -y
90      yum install fcgi                 -y
91      yum install fcgi-devel           -y
92
93      ;;
94   CentOS)
95      yum install aria2                -y
96      yum install wget                 -y
97      yum install unzip                -y
98      yum install cmake                -y
99      yum install cmake-gui            -y
100      yum install doxygen              -y
101      yum install graphviz             -y
102      yum install texlive              -y
103      yum install latex2html           -y
104      yum install wxGTK-devel wxBase   -y
105      yum install boost-devel          -y
106      yum install sqlite-devel         -y
107      yum install qt-devel             -y
108      yum install mesa-libOSMesa-devel -y
109      yum install gcc                  -y
110      yum install gcc-c++              -y
111      yum install redhat-rpm-config    -y
112      yum install xerces-c-devel       -y
113      yum install git                  -y
114      yum install qtwebkit-devel       -y
115      yum install patch                -y
116      yum install fcgi                 -y
117      yum install fcgi-devel           -y
118
119      ;;
120   Ubuntu)
121      apt-get --yes install aria2
122      apt-get --yes install build-essential  # esta linea instala las librerias necesarias para compilar en ubuntu, g++ gcc etc etc etc.
123      apt-get --yes install git
124      apt-get --yes install cmake
125      apt-get --yes install cmake-gui
126      apt-get --yes install cmake-curses-gui
127      apt-get --yes install doxygen
128      apt-get --yes install graphviz
129      apt-get --yes install texlive
130      apt-get --yes install latex2html
131
132 #     apt-get --yes install libgtk2.0-dev #GTK
133      apt-get --yes install libgtk-3-dev #GTK
134 #     apt-get --yes install libwxgtk2.8-dev #Wx GTK
135      apt-get --yes install libwxgtk3.0-dev #Wx GTK
136 #     apt-get --yes install libwxbase2.8-dev #Wx solito
137      apt-get --yes install libwxbase3.0-dev #Wx solito
138      apt-get --yes install wx-common #wxrc
139
140      apt-get --yes install libboost-dev  #Boost
141      apt-get --yes install libboost-all-dev #Boost
142      apt-get --yes install libqt4-dev #QT4
143      apt-get --yes install libxerces-c-dev
144      apt-get --yes install patch
145      apt-get --yes install fcgi
146      apt-get --yes install fcgi-devel
147      ## CLAIRE - JGRR
148      apt-get --yes install qt4-qmake #QT4 qmake
149      apt-get --yes install libsqlite0-dev
150      apt-get --yes install libsqlite3-dev
151      apt-get --yes install libosmesa6-dev #Mesa6
152      apt-get --yes install uuid-dev # uuid para la instalacion de itk
153      apt-get --yes install libxaw7-dev # X11
154      ;; 
155   MacOS)
156      port selfupdate
157      port -N install cairo                -y
158      port -N install libomp               -y
159 #     port -f activate libomp              -y
160      port -f activate libomp-devel        -y
161
162      port -N install wget                 -y
163      port -N install cmake                -y
164      port -N install doxygen              -y
165      port -N install graphviz             -y 
166     # port -N install tetex               -y   (replaced by texlive) # cf EED : http://www.creatis.insa-lyon.fr/site/fr/CreatoolsInstallInstructionsv2.0.1MacOsv10.5.6-Developpers
167      port -N install texlive              -y
168      port -N install latex2html           -y
169      port -N install wxWidgets-3.2        -y
170      port -N install boost                -y
171 #     ln -s libboost_signals-xgcc40-mt-1_38.dylib    libboost_signals.dylib    /opt/local/lib # cf EED : http://www.creatis.insa-lyon.fr/site
172 #     ln -s libboost_signals-xgcc40-mt-1_38.dylib    libboost_signals.dylib    /opt/local/lib # cf EED
173 #     ln -s libboost_filesystem-xgcc40-mt-1_38.dylib libboost_filesystem.dylib /opt/local/lib # cf EE
174 #     ln -s libboost_system-xgcc40-mt-1_38.dylib     libboost_system.dylib     /opt/local/lib # cf EE 
175      port -N install sqlite3              -y
176 #     port install qt4-mac              -y
177 #     ln -s qmake-mac qmake /opt/local/bin  # cf EED
178 #     port install mesa                 -y
179      port -N install fcgi                 -y  ## It's working ?
180      ;;
181   *)
182      echo " '$OperatingSystem' : Unknown (for us...) Operating Sytem "
183      echo " Allowed values are (right now) Fedora, Ubuntu, MacOS "
184      exit 0
185      ;;
186   esac
187 fi