blob: 94a073590c56e02eb4387e6d001581359a635d55 (
plain) (
blame)
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
|
#!/bin/bash
set -e
set -x
name="OpenBLAS"
version="0.3.2"
tarball="v${version}.tar.gz"
dest="${name}-${version}" # Ugh.
url="http://github.com/xianyi/${name}/archive/${tarball}"
prefix="/opt/OpenBLAS"
function pre()
{
curl -LO "${url}"
tar xf "${tarball}"
}
function build()
{
pre
pushd "${dest}"
export LDFLAGS="-Wl,-rpath=$prefix/lib"
make USE_OPENMP=1
make install PREFIX="${prefix}" NO_STATIC=1
popd
post
}
function post()
{
rm -rf "${dest}"
rm -rf "${tarball}"
echo "All done."
}
# Main
build
|