source: issm/trunk-jpl/externalpackages/proj/install-6.2-with_tests.sh@ 24919

Last change on this file since 24919 was 24919, checked in by jdquinn, 5 years ago

CHG: Support for Linux binaries with solid earth capabilities; support for Gmsh 4; clean up

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