-
Notifications
You must be signed in to change notification settings - Fork 4
/
pull-deps.sh
executable file
·69 lines (60 loc) · 2.11 KB
/
pull-deps.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/bash
# Copyright (C) 2017-2019 Waterloo Quantitative Consulting Group, Inc.
# See COPYING and LICENSE files at project root for more details.
unameOut="$(uname -s)"
echo "uname is: $unameOut"
case "${unameOut}" in
Linux*) machine=Linux;;
Darwin*) machine=Mac;;
CYGWIN*) machine=Cygwin;;
MINGW*) machine=MinGw;;
*) machine="UNKNOWN:${unameOut}"
esac
echo "Machine type is: ${machine}."
if [ "$machine" == "Linux" ] ; then
apt-get -y install libblitz0-dev libblitz-doc
apt-get -y install libsuitesparse-dev
ln -s /usr/lib/x86_64-linux-gnu/libumfpack.so.5.7.1 /usr/lib/x86_64-linux-gnu/libumfpack.so
apt-get -y install libmetis-dev libmetis-doc
apt-get -y install libvtk7.1 libtvtk7-dev
apt-get -y install libboost-dbg libboost-dev libboost-doc
apt-get -y install libboost-python1.65-dev
# pull in doxygen (latest) for travis - should flag this on only for travis and not for all devs.
# get doxygen deps
apt-get -y install graphviz texlive-latex-base ghostscript texlive-generic-recommended
# build and install doxygen from source.
apt-get -y install cmake
git clone https://github.com/doxygen/doxygen.git doxrepo
mkdir -p doxrepo/build
cd doxrepo/build
export CC=/usr/bin/gcc
cmake -G "Unix Makefiles" ..
make
make install
cd ../..
rm -rf doxrepo
# pull in valgrind
apt-get -y install valgrind valgrind-dbg
# pull in clang
apt-get -y install clang
fi
if [ "$machine" == "Mac" ] ; then
brew install boost
brew install blitz
brew install lapack
brew install metis
brew install suite-sparse
curl -fSL https://s3.amazonaws.com/dsteinmo-libs/blitz-0.10.tar.gz -o ./blitz-0.10.tar.gz
tar xzf ./blitz-0.10.tar.gz
cd blitz-0.10
./configure && make lib
cd ..
mkdir -p lib
cp ./blitz-0.10/lib/libblitz.la ./blitz-0.10/lib/globals.* lib
cp -r blitz-0.10/blitz include
fi
curl -fSL https://github.com/joakimkarlsson/igloo/archive/igloo.1.1.1.tar.gz -o ./igloo.1.1.1.tar.gz
tar xzf ./igloo.1.1.1.tar.gz
cp -r igloo-igloo.1.1.1/igloo include/.
rm -rf igloo-igloo.1.1.1
rm igloo.1.1.1.tar.gz