Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
94a3f9b9
Commit
94a3f9b9
authored
Jun 21, 2016
by
Matthew Brett
Browse files
Add hdf5 library builder
parent
f1120265
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
library_builders.sh
library_builders.sh
+30
-1
No files found.
library_builders.sh
View file @
94a3f9b9
# Recipes for building some libaries
# Recipes for building some libaries
OPENBLAS_VERSION
=
"
${
OPENBLAS_VERSION
:-
0
.2.18
}
"
# We use system zlib by default - see build_new_zlib
# We use system zlib by default - see build_new_zlib
ZLIB_VERSION
=
"
${
ZLIB_VERSION
:-
1
.2.8
}
"
ZLIB_VERSION
=
"
${
ZLIB_VERSION
:-
1
.2.8
}
"
LIBPNG_VERSION
=
"
${
LIBPNG_VERSION
:-
1
.6.21
}
"
LIBPNG_VERSION
=
"
${
LIBPNG_VERSION
:-
1
.6.21
}
"
...
@@ -11,7 +12,8 @@ GIFLIB_VERSION="${GIFLIB_VERSION:-5.1.3}"
...
@@ -11,7 +12,8 @@ GIFLIB_VERSION="${GIFLIB_VERSION:-5.1.3}"
LIBWEBP_VERSION
=
"
${
LIBWEBP_VERSION
:-
0
.5.0
}
"
LIBWEBP_VERSION
=
"
${
LIBWEBP_VERSION
:-
0
.5.0
}
"
XZ_VERSION
=
"
${
XZ_VERSION
:-
5
.2.2
}
"
XZ_VERSION
=
"
${
XZ_VERSION
:-
5
.2.2
}
"
LIBYAML_VERSION
=
"
${
LIBYAML_VERSION
:-
0
.1.5
}
"
LIBYAML_VERSION
=
"
${
LIBYAML_VERSION
:-
0
.1.5
}
"
OPENBLAS_VERSION
=
"
${
OPENBLAS_VERSION
:-
0
.2.18
}
"
SZIP_VERSION
=
"
${
SZIP_VERSION
:-
2
.1
}
"
HDF5_VERSION
=
"
${
HDF5_VERSION
:-
1
.8.17
}
"
if
[
$(
uname
)
==
"Darwin"
]
;
then
if
[
$(
uname
)
==
"Darwin"
]
;
then
ARCH_FLAGS
=
${
ARCH_FLAGS
:-
"-arch i386 -arch x86_64"
}
ARCH_FLAGS
=
${
ARCH_FLAGS
:-
"-arch i386 -arch x86_64"
}
...
@@ -134,3 +136,30 @@ function build_freetype {
...
@@ -134,3 +136,30 @@ function build_freetype {
function
build_libyaml
{
function
build_libyaml
{
build_simple yaml
$LIBYAML_VERSION
http://pyyaml.org/download/libyaml
build_simple yaml
$LIBYAML_VERSION
http://pyyaml.org/download/libyaml
}
}
function
build_szip
{
# Build szip without encoding (patent restrictions)
if
[
-e
szip-stamp
]
;
then return
;
fi
build_zlib
local
szip_url
=
https://www.hdfgroup.org/ftp/lib-external/szip/
curl
-sLO
${
szip_url
}
/
$SZIP_VERSION
/src/szip-
$SZIP_VERSION
.tar.gz
tar
zxf szip-
$SZIP_VERSION
.tar.gz
(
cd
szip-
$SZIP_VERSION
\
&&
./configure
--enable-encoding
=
no
\
&&
make
\
&&
make
install
)
touch
szip-stamp
}
function
build_hdf5
{
if
[
-e
hdf5-stamp
]
;
then return
;
fi
build_szip
local
hdf5_url
=
https://www.hdfgroup.org/ftp/HDF5/releases
curl
-sLO
$hdf5_url
/hdf5-
$HDF5_VERSION
/src/hdf5-
$HDF5_VERSION
.tar.gz
tar
zxf hdf5-
$HDF5_VERSION
.tar.gz
(
cd
hdf5-
$HDF5_VERSION
\
&&
./configure
--prefix
=
/usr/local
--with-szlib
=
/usr/local
\
&&
make
\
&&
make
install
)
touch
hdf5-stamp
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment