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
|
Rev | Line | |
---|
[24325] | 1 | #!/bin/bash
|
---|
| 2 | set -eu
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 | # Constants
|
---|
| 6 | #
|
---|
| 7 | VER="6.2.1"
|
---|
| 8 |
|
---|
[25860] | 9 | PREFIX="${ISSM_DIR}/externalpackages/proj/install" # Set to location where external package should be installed
|
---|
| 10 |
|
---|
| 11 | ## Environment
|
---|
[24325] | 12 | #
|
---|
[24919] | 13 | export CC=mpicc
|
---|
| 14 | export CXX=mpicxx
|
---|
[24325] | 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
|
---|
[25860] | 28 | rm -rf ${PREFIX} src
|
---|
| 29 | mkdir -p ${PREFIX} src
|
---|
[24325] | 30 |
|
---|
| 31 | # Download source
|
---|
[25967] | 32 | $ISSM_DIR/scripts/DownloadExternalPackage.sh "https://issm.ess.uci.edu/files/externalpackages/proj-${VER}.tar.gz" "proj-${VER}.tar.gz"
|
---|
[24325] | 33 |
|
---|
| 34 | # Unpack source
|
---|
[25860] | 35 | tar -zxvf proj-${VER}.tar.gz
|
---|
[24325] | 36 |
|
---|
| 37 | # Move source into 'src' directory
|
---|
[25860] | 38 | mv proj-${VER}/* src
|
---|
| 39 | rm -rf proj-${VER}
|
---|
[24325] | 40 |
|
---|
| 41 | # Configure
|
---|
| 42 | cd src
|
---|
| 43 | ./configure \
|
---|
[25860] | 44 | --prefix="${PREFIX}" \
|
---|
[24919] | 45 | --disable-dependency-tracking \
|
---|
| 46 | --enable-fast-install
|
---|
[24325] | 47 |
|
---|
| 48 | # Compile and install
|
---|
| 49 | if [ $# -eq 0 ]; then
|
---|
| 50 | make
|
---|
| 51 | make check
|
---|
| 52 | make install
|
---|
| 53 | else
|
---|
| 54 | make -j $1
|
---|
[25860] | 55 | mack -j $1 check
|
---|
[24325] | 56 | make -j $1 install
|
---|
| 57 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.