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
8c82c374
Commit
8c82c374
authored
Mar 02, 2018
by
Simon Conseil
Committed by
Matthew Brett
Jun 01, 2018
Browse files
Add function to build cfitsio
parent
4f5fb8ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
library_builders.sh
library_builders.sh
+14
-0
No files found.
library_builders.sh
View file @
8c82c374
...
@@ -40,6 +40,7 @@ RAGEL_VERSION=${RAGEL_VERSION:-6.10}
...
@@ -40,6 +40,7 @@ RAGEL_VERSION=${RAGEL_VERSION:-6.10}
FLEX_VERSION
=
${
FLEX_VERSION
:-
2
.6.4
}
FLEX_VERSION
=
${
FLEX_VERSION
:-
2
.6.4
}
BISON_VERSION
=
${
BISON_VERSION
:-
3
.0.4
}
BISON_VERSION
=
${
BISON_VERSION
:-
3
.0.4
}
FFTW_VERSION
=
${
FFTW_VERSION
:-
3
.3.7
}
FFTW_VERSION
=
${
FFTW_VERSION
:-
3
.3.7
}
CFITSIO_VERSION
=
${
CFITSIO_VERSION
:-
3370
}
OPENSSL_ROOT
=
openssl-1.0.2l
OPENSSL_ROOT
=
openssl-1.0.2l
# Hash from https://www.openssl.org/source/openssl-1.0.2?.tar.gz.sha256
# Hash from https://www.openssl.org/source/openssl-1.0.2?.tar.gz.sha256
OPENSSL_HASH
=
ce07195b659e75f4e1db43552860070061f156a98bb37b672b101ba6e3ddf30c
OPENSSL_HASH
=
ce07195b659e75f4e1db43552860070061f156a98bb37b672b101ba6e3ddf30c
...
@@ -427,3 +428,16 @@ function build_fftw {
...
@@ -427,3 +428,16 @@ function build_fftw {
# restore CFLAGS
# restore CFLAGS
export
CFLAGS
=
$old_cflags
export
CFLAGS
=
$old_cflags
}
}
function
build_cfitsio
{
if
[
-n
"
$IS_OSX
"
]
;
then
brew
install
cfitsio
else
# cannot use build_simple because cfitsio has no dash between name and version
local
cfitsio_name_ver
=
cfitsio
${
CFITSIO_VERSION
}
fetch_unpack https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/
${
cfitsio_name_ver
}
.tar.gz
(
cd
cfitsio
\
&&
./configure
--prefix
=
$BUILD_PREFIX
\
&&
make shared
&&
make
install
)
fi
}
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