Last change
on this file since 24919 was 24919, checked in by jdquinn, 5 years ago |
CHG: Support for Linux binaries with solid earth capabilities; support for Gmsh 4; clean up
|
-
Property svn:executable
set to
*
|
File size:
984 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | set -eu
|
---|
3 |
|
---|
4 |
|
---|
5 | # Constants
|
---|
6 | #
|
---|
7 | VER="6.2.1"
|
---|
8 |
|
---|
9 | ## Environnment
|
---|
10 | #
|
---|
11 | export CC=mpicc
|
---|
12 | export CXX=mpicxx
|
---|
13 | # NOTE: On macOS, SQLite3 should be installed by default, but PROJ currently
|
---|
14 | # requires,
|
---|
15 | #
|
---|
16 | # SQLITE3_LIBS="-lsqlite3".
|
---|
17 | #
|
---|
18 | # On Ubuntu Linux, install the SQLite3 binary, libraries and headers
|
---|
19 | # with,
|
---|
20 | #
|
---|
21 | # `apt-get install sqlite3 libsqlite3-dev`
|
---|
22 | #
|
---|
23 | export SQLITE3_LIBS="-lsqlite3"
|
---|
24 |
|
---|
25 | # Cleanup
|
---|
26 | rm -rf install src
|
---|
27 | mkdir install src
|
---|
28 |
|
---|
29 | # Download source
|
---|
30 | $ISSM_DIR/scripts/DownloadExternalPackage.sh "http://issm.jpl.nasa.gov/files/externalpackages/proj-${VER}.tar.gz" "proj-${VER}.tar.gz"
|
---|
31 |
|
---|
32 | # Unpack source
|
---|
33 | tar -zxvf proj-$VER.tar.gz
|
---|
34 |
|
---|
35 | # Move source into 'src' directory
|
---|
36 | mv proj-$VER/* src
|
---|
37 | rm -rf proj-$VER
|
---|
38 |
|
---|
39 | # Configure
|
---|
40 | cd src
|
---|
41 | ./configure \
|
---|
42 | --prefix="${ISSM_DIR}/externalpackages/proj/install" \
|
---|
43 | --disable-dependency-tracking \
|
---|
44 | --enable-fast-install
|
---|
45 |
|
---|
46 | # Compile and install
|
---|
47 | if [ $# -eq 0 ]; then
|
---|
48 | make
|
---|
49 | make check
|
---|
50 | make install
|
---|
51 | else
|
---|
52 | make -j $1
|
---|
53 | make -j $1 check
|
---|
54 | make -j $1 install
|
---|
55 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.