|
Last change
on this file since 27035 was 27035, checked in by Mathieu Morlighem, 3 years ago |
|
merged trunk-jpl and trunk for revision 27033
|
-
Property svn:executable
set to
*
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | #!/bin/bash
|
|---|
| 2 | set -eu
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 | # Constants
|
|---|
| 6 | #
|
|---|
| 7 | VER="8.1.0"
|
|---|
| 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 |
|
|---|
| 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 |
|
|---|
| 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 | --disable-shared \
|
|---|
| 48 | --disable-tiff
|
|---|
| 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.