source:
issm/trunk/externalpackages/proj/install-8-static.sh
Last change on this file was 27035, checked in by , 3 years ago | |
---|---|
|
|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[24919] | 1 | #!/bin/bash |
2 | set -eu | |
3 | ||
4 | ||
5 | # Constants | |
6 | # | |
[26369] | 7 | VER="8.1.0" |
[24919] | 8 | |
[27035] | 9 | PREFIX="${ISSM_DIR}/externalpackages/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 | # | |
[27035] | 23 | # apt-get install sqlite3 libsqlite3-dev |
[26378] | 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.