2 #------------------------------------------------------------------------------
4 # \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
6 # \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
8 #------------------------------------------------------------------------------
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 the
14 # Free Software Foundation; either version 2 of the License, or (at your
15 # 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
22 # You should have received a copy of the GNU General Public License
23 # along with OpenFOAM; if not, write to the Free Software Foundation,
24 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27 # buildParaView3.3-cvs
30 # Build and install ParaView
31 # - run from folder above ParaView source folder or place the
32 # ParaView source under $WM_THIRD_PARTY_DIR
34 #------------------------------------------------------------------------------
35 . .
/buildParaViewFunctions
37 PARAVIEW_SRC
=ParaView3.3
-cvs
38 PARAVIEW_MAJOR_VERSION
=3.3
48 # note: script will try to determine the appropriate python library.
49 # If it fails, specify the path using the PYTHON_LIBRARY variable
52 # PYTHON_LIBRARY="/usr/lib64/libpython2.5.so.1.0"
54 # MESA graphics support:
58 # No further editing below this line
59 #------------------------------------------------------------------------------
63 while [ "$#" -ge 1 ]; do echo "$1"; shift; done
66 usage: ${0##*/} [OPTION]
68 -fast for repeated builds (-make -install) *use with caution*
69 -mpi with mpi (if not already enabled)
70 -python with python (if not already enabled)
71 -mesa with mesa (if not already enabled)
72 -verbose verbose output in Makefiles
75 For finer control, the build stages can be also selected individually
81 [-envpath] alter absolute paths in CMake files to use env variables
83 Build and install $PARAVIEW_SRC
84 - run from folder above the ParaView source folder or place the
85 ParaView source under \$WM_THIRD_PARTY_DIR
91 # add options based on script name:
92 case "$Script" in *-mpi*) WITH_MPI
=ON
;; esac
93 case "$Script" in *-python*) WITH_PYTHON
=ON
;; esac
94 case "$Script" in *-mesa*) WITH_MESA
=ON
;; esac
109 -config) # stage 1: config only
116 -make) # stage 2: make only
123 -makedoc) # stage 3: generate html documentation
130 -install) # stage 4: install only
137 -envpath) # optional: change cmake files to use env variables
145 -fast) # shortcut for rebuild
169 usage
"unknown option/argument: '$*'"
174 # Set configure options
175 #~~~~~~~~~~~~~~~~~~~~~~
176 addVerbosity
# verbose makefiles
177 addMpiSupport
# set MPI-specific options
178 addPythonSupport
# set Python-specific options
179 addMesaSupport
# set MESA-specific options
181 getPaths
# discover where things are or should be put
185 [ $runCONFIG = true
] && configParaView
186 [ $runMAKE = true
] && makeParaView
187 [ $runENVPATH = true
] && fixCMakeFiles
188 [ $runMAKEDOC = true
] && makeDocs
189 [ $runINSTALL = true
] && installParaView
192 #------------------------------------------------------------------------------