"vscode:/vscode.git/clone" did not exist on "baf7942c74ad90a2f67ad189250a9bd3cb42fca7"
Unverified Commit f4950e78 authored by Matthew Brett's avatar Matthew Brett Committed by GitHub
Browse files

Merge pull request #55 from xoviat/libraries

Libraries: add SWIG and suitesparse
parents 1b97cd55 90103db8
...@@ -27,6 +27,9 @@ BLOSC_VERSION=${BLOSC_VERSION:-1.10.2} ...@@ -27,6 +27,9 @@ BLOSC_VERSION=${BLOSC_VERSION:-1.10.2}
SNAPPY_VERSION="${SNAPPY_VERSION:-1.1.3}" SNAPPY_VERSION="${SNAPPY_VERSION:-1.1.3}"
CURL_VERSION=${CURL_VERSION:-7.49.1} CURL_VERSION=${CURL_VERSION:-7.49.1}
NETCDF_VERSION=${NETCDF_VERSION:-4.4.1.1} NETCDF_VERSION=${NETCDF_VERSION:-4.4.1.1}
SWIG_VERSION=${SWIG_VERSION:-3.0.12}
PCRE_VERSION=${PCRE_VERSION:-8.38}
SUITESPARSE_VERSION=${SUITESPARSE_VERSION:-4.5.6}
OPENSSL_ROOT=openssl-1.0.2l OPENSSL_ROOT=openssl-1.0.2l
# Hash from https://www.openssl.org/source/openssl-1.0.2?.tar.gz.sha256 # Hash from https://www.openssl.org/source/openssl-1.0.2?.tar.gz.sha256
OPENSSL_HASH=ce07195b659e75f4e1db43552860070061f156a98bb37b672b101ba6e3ddf30c OPENSSL_HASH=ce07195b659e75f4e1db43552860070061f156a98bb37b672b101ba6e3ddf30c
...@@ -321,3 +324,24 @@ function build_netcdf { ...@@ -321,3 +324,24 @@ function build_netcdf {
&& make install) && make install)
touch netcdf-stamp touch netcdf-stamp
} }
function build_pcre {
build_simple pcre $PCRE_VERSION https://ftp.pcre.org/pub/pcre/
}
function build_swig {
if [ -n "$IS_OSX" ]; then
brew install swig > /dev/null
else
build_pcre
build_simple swig $SWIG_VERSION http://prdownloads.sourceforge.net/swig/
fi
}
function build_suitesparse {
if [ -n "$IS_OSX" ]; then
brew install suite-sparse > /dev/null
else
yum install -y suitesparse-devel > /dev/null
fi
}
...@@ -5,3 +5,4 @@ rm_mkdir $BUILD_PREFIX ...@@ -5,3 +5,4 @@ rm_mkdir $BUILD_PREFIX
source library_builders.sh source library_builders.sh
build_openssl build_openssl
build_swig
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment