ThirdParty: disable the generation of debuginfo packages by rpm
[OpenFOAM-1.6-ext.git] / ThirdParty / AllMake.stage2
blob9f8f81e244075e3a36f55f385b0a0c1fcdac1a14
1 #!/bin/bash
2 #------------------------------------------------------------------------------
3 # ========= |
4 # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 # \\ / O peration |
6 # \\ / A nd | Copyright held by original author
7 # \\/ M anipulation |
8 #------------------------------------------------------------------------------
9 # License
10 # This file is part of OpenFOAM.
12 # OpenFOAM is free software: you can redistribute it and/or modify it
13 # under the terms of the GNU General Public License as published by
14 # the Free Software Foundation, either version 3 of the License, or
15 # (at your option) any later version.
17 # OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
18 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 # for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 # Script
26 # AllMake.stage2
28 # Description
29 # Build script for ThirdParty packages: Stage2
31 # Communication libraries
33 # Once this stage is built, you would normally re-initialize your
34 # OpenFOAM environment in order redirect OpenFOAM toward the appropriate
35 # communication library
37 # NOTE: This stage is optional. Use it only if you want to override
38 # your system communication libraries
40 # Requirements:
41 # 1: Your OpenFOAM environment must be properly initialized
42 # 2: AllMake.stage1 if you are overriding your system compiler
44 # Author:
45 # Martin Beaudoin, Hydro-Quebec, (2010)
47 #------------------------------------------------------------------------------
48 # run from third-party directory only
49 cd ${0%/*} || exit 1
51 wmakeCheckPwd "$WM_THIRD_PARTY_DIR" || {
52 echo "Error: Current directory is not \$WM_THIRD_PARTY_DIR"
53 echo " The environment variables are inconsistent with the installation."
54 echo " Check the OpenFOAM entries in your dot-files and source them."
55 exit 1
57 . tools/makeThirdPartyFunctionsForRPM
58 #------------------------------------------------------------------------------
60 echo ========================================
61 echo Starting ThirdParty AllMake: Stage2
62 echo ========================================
63 echo
65 if [ "$WM_MPLIB" != "SYSTEMOPENMPI" ]
66 then
67 # MPI
68 #( rpm_make -p openmpi-1.4.1 -s openmpi-1.4.1.spec -u http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.1.tar.gz )
69 #( rpm_make -p openmpi-1.5 -s openmpi-1.5.spec -u http://www.open-mpi.org/software/ompi/v1.5/downloads/openmpi-1.5.tar.gz )
70 ( rpm_make -p openmpi-1.4.3 -s openmpi-1.4.3.spec -u http://www.open-mpi.org/software/ompi/v1.4/downloads/openmpi-1.4.3.tar.gz )
71 else
72 echo "Using system installed OpenMPI"
73 echo ""
75 echo ========================================
76 echo Done ThirdParty AllMake: Stage2
77 echo ========================================
78 echo
80 # ----------------------------------------------------------------- end-of-file