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