source: issm/trunk/externalpackages/gmsh/install-4-mac-python-static.sh@ 25836

Last change on this file since 25836 was 25836, checked in by Mathieu Morlighem, 4 years ago

merged trunk-jpl and trunk for revision 25834

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#!/bin/bash
2set -eu
3
4
5# TODO:
6# - Add support for,
7# - BLAS_LAPACK
8# - MUMPS
9# - NUMPY
10# - PETSC4PY
11# - PETSC
12# (see configs/4/mac/static/CMakeLists.txt)
13#
14
15## Constants
16#
17VER="4.5.6"
18
19PETSC_ROOT="${ISSM_DIR}/externalpackages/petsc/install"
20
21# Cleanup
22rm -rf install src
23mkdir install src
24
25# Download source
26$ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/gmsh-${VER}-source.tgz" "gmsh-${VER}-source.tgz"
27
28# Untar source
29tar -xvzf gmsh-${VER}-source.tgz
30
31# Move source to 'src' directory
32mv gmsh-${VER}-source/* src
33rm -rf gmsh-${VER}-source
34
35# Copy customized source and config files to 'src' directory
36cp configs/${VER}/mac/static/CMakeLists.txt src
37
38# Configure
39#
40# NOTE:
41# - Option -DENABLE_FLTK=0 is used because we do not need GUI.
42# - Option -DENABLE_MPEG_ENCODE=0 is used because we do not need to record MPEG
43# movies.
44# - Option -DENABLE_OCC=0 is used because we do not need CAD kernel and are not
45# importing STEP/IGES files.
46# - Option -DENABLE_TOUCHBAR=0 is used because we do not have GUI, therefore we
47# do not need to support Apple Touch bar.
48#
49cd install
50cmake ../src \
51 -DCMAKE_BUILD_TYPE=Release \
52 -DCMAKE_INSTALL_PREFIX="${ISSM_DIR}/externalpackages/gmsh/install" \
53 -DENABLE_BUILD_LIB=1 \
54 -DENABLE_FLTK=0 \
55 -DENABLE_MPEG_ENCODE=0 \
56 -DENABLE_MPI=1 \
57 -DENABLE_OCC=0 \
58 -DENABLE_TOUCHBAR=0 \
59 -DMETIS_ROOT="${PETSC_ROOT}"
60
61# Compile and install
62if [ $# -eq 0 ]; then
63 make
64 make install
65else
66 make -j $1
67 make -j $1 install
68fi
Note: See TracBrowser for help on using the repository browser.