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
0525a6ab
Unverified
Commit
0525a6ab
authored
Nov 04, 2016
by
Matthew Brett
Browse files
Add builders for curl and netcdf-c
parent
6802dca5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
library_builders.sh
library_builders.sh
+25
-0
No files found.
library_builders.sh
View file @
0525a6ab
...
...
@@ -23,6 +23,8 @@ HDF5_VERSION="${HDF5_VERSION:-1.8.17}"
LIBAEC_VERSION
=
"
${
LIBAEC_VERSION
:-
0
.3.3
}
"
LZO_VERSION
=
${
LZO_VERSION
:-
2
.09
}
BLOSC_VERSION
=
${
BLOSC_VERSION
:-
1
.10.2
}
CURL_VERSION
=
${
CURL_VERSION
:-
7
.43.0
}
NETCDF_VERSION
=
${
NETCDF_VERSION
:-
4
.4.1
}
BUILD_PREFIX
=
"
${
BUILD_PREFIX
:-
/usr/local
}
"
ARCHIVE_SDIR
=
${
ARCHIVE_DIR
:-
archives
}
...
...
@@ -241,3 +243,26 @@ function build_lzo {
&&
make
install
)
touch
lzo-stamp
}
function
build_curl
{
if
[
-e
curl-stamp
]
;
then return
;
fi
if
[
-n
"
$IS_OSX
"
]
;
then
flags
=
"--with-darwinssl"
;
fi
fetch_unpack https://curl.haxx.se/download/curl-
${
CURL_VERSION
}
.tar.gz
(
cd
curl-
${
CURL_VERSION
}
\
&&
./configure
--prefix
=
$BUILD_PREFIX
$flags
\
&&
make
\
&&
make
install
)
touch
curl-stamp
}
function
build_netcdf
{
if
[
-e
netcdf-stamp
]
;
then return
;
fi
build_hdf5
build_curl
fetch_unpack https://github.com/Unidata/netcdf-c/archive/v
${
NETCDF_VERSION
}
.tar.gz
(
cd
netcdf-c-
${
NETCDF_VERSION
}
\
&&
./configure
--prefix
=
$BUILD_PREFIX
\
&&
make
\
&&
make
install
)
touch
netcdf-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