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
07a9cdc5
Unverified
Commit
07a9cdc5
authored
Nov 04, 2016
by
Matthew Brett
Browse files
Add openssl build
parent
0525a6ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
library_builders.sh
library_builders.sh
+33
-1
No files found.
library_builders.sh
View file @
07a9cdc5
...
...
@@ -25,6 +25,9 @@ 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
}
OPENSSL_ROOT
=
openssl-1.0.2j
OPENSSL_HASH
=
e7aff292be21c259c6af26469c7a9b3ba26e9abaaffd325e3dccc9785256c431
OPENSSL_DOWNLOAD_URL
=
ftp://ftp.openssl.org/source
BUILD_PREFIX
=
"
${
BUILD_PREFIX
:-
/usr/local
}
"
ARCHIVE_SDIR
=
${
ARCHIVE_DIR
:-
archives
}
...
...
@@ -246,7 +249,11 @@ function build_lzo {
function
build_curl
{
if
[
-e
curl-stamp
]
;
then return
;
fi
if
[
-n
"
$IS_OSX
"
]
;
then
flags
=
"--with-darwinssl"
;
fi
if
[
-n
"
$IS_OSX
"
]
;
then
flags
=
"--with-darwinssl"
else
build_openssl
fi
fetch_unpack https://curl.haxx.se/download/curl-
${
CURL_VERSION
}
.tar.gz
(
cd
curl-
${
CURL_VERSION
}
\
&&
./configure
--prefix
=
$BUILD_PREFIX
$flags
\
...
...
@@ -255,6 +262,31 @@ function build_curl {
touch
curl-stamp
}
function
check_sha256sum
{
local
fname
=
$1
if
[
-z
"
$fname
"
]
;
then
echo
"Need path"
;
exit
1
;
fi
local
sha256
=
$2
if
[
-z
"
$sha256
"
]
;
then
echo
"Need SHA256 hash"
;
exit
1
;
fi
echo
"
${
sha256
}
${
fname
}
"
>
${
fname
}
.sha256
if
[
-n
"
$IS_OSX
"
]
;
then
shasum
-a
256
-c
${
fname
}
.sha256
else
sha256sum
-c
${
fname
}
.sha256
fi
rm
${
fname
}
.sha256
}
function
build_openssl
{
if
[
-e
openssl-stamp
]
;
then return
;
fi
fetch_unpack
${
OPENSSL_DOWNLOAD_URL
}
/
${
OPENSSL_ROOT
}
.tar.gz
check_sha256sum
$ARCHIVE_SDIR
/
${
OPENSSL_ROOT
}
.tar.gz
${
OPENSSL_HASH
}
(
cd
${
OPENSSL_ROOT
}
\
&&
./config no-ssl2 no-shared
-fPIC
--prefix
=
$BUILD_PREFIX
\
&&
make
\
&&
make
install
)
touch
openssl-stamp
}
function
build_netcdf
{
if
[
-e
netcdf-stamp
]
;
then return
;
fi
build_hdf5
...
...
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