Last change
on this file since 26744 was 26744, checked in by Mathieu Morlighem, 3 years ago |
merged trunk-jpl and trunk for revision 26742
|
-
Property svn:executable
set to
*
|
File size:
1.0 KB
|
Rev | Line | |
---|
[24919] | 1 | #!/bin/bash
|
---|
| 2 | set -eu
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 | # Constants
|
---|
| 6 | #
|
---|
[26369] | 7 | VER="8.1.0"
|
---|
[24919] | 8 |
|
---|
[26378] | 9 | PREFIX="${ISSM_EXT_STATIC_DIR}/proj/install" # Set to location where external package should be installed
|
---|
[25860] | 10 |
|
---|
[25745] | 11 | ## Environment
|
---|
[24919] | 12 | #
|
---|
| 13 | export CC=mpicc
|
---|
| 14 | export CXX=mpicxx
|
---|
| 15 |
|
---|
[26378] | 16 | # NOTE: On macOS, SQLite3 should be installed by default, but PROJ currently
|
---|
| 17 | # requires,
|
---|
| 18 | #
|
---|
| 19 | # SQLITE3_LIBS="-lsqlite3".
|
---|
| 20 | #
|
---|
| 21 | # On Ubuntu Linux, install the SQLite3 binary, libraries and headers with,
|
---|
| 22 | #
|
---|
| 23 | # `apt-get install sqlite3 libsqlite3-dev`
|
---|
| 24 | #
|
---|
| 25 | export SQLITE3_LIBS="-lsqlite3"
|
---|
| 26 |
|
---|
[24919] | 27 | # Cleanup
|
---|
[25860] | 28 | rm -rf ${PREFIX} src
|
---|
| 29 | mkdir -p ${PREFIX} src
|
---|
[24919] | 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"
|
---|
[24919] | 33 |
|
---|
| 34 | # Unpack source
|
---|
[25860] | 35 | tar -zxvf proj-${VER}.tar.gz
|
---|
[24919] | 36 |
|
---|
| 37 | # Move source into 'src' directory
|
---|
[25860] | 38 | mv proj-${VER}/* src
|
---|
| 39 | rm -rf proj-${VER}
|
---|
[24919] | 40 |
|
---|
| 41 | # Configure
|
---|
| 42 | cd src
|
---|
| 43 | ./configure \
|
---|
[25860] | 44 | --prefix="${PREFIX}" \
|
---|
[24919] | 45 | --disable-dependency-tracking \
|
---|
| 46 | --enable-fast-install \
|
---|
[26369] | 47 | --disable-shared \
|
---|
[26381] | 48 | --disable-tiff
|
---|
[24919] | 49 |
|
---|
| 50 | # Compile and install
|
---|
| 51 | if [ $# -eq 0 ]; then
|
---|
| 52 | make
|
---|
| 53 | make install
|
---|
| 54 | else
|
---|
| 55 | make -j $1
|
---|
| 56 | make -j $1 install
|
---|
| 57 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.