-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathhdf5.yaml
More file actions
66 lines (58 loc) · 1.77 KB
/
hdf5.yaml
File metadata and controls
66 lines (58 loc) · 1.77 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
extends: [autotools_package]
dependencies:
build: [mpi, zlib, szip]
sources:
- key: tar.bz2:yl22ieqqpk5g7gp5pjfj3nwol5p4qfy6
url: http://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8.13/src/hdf5-1.8.13.tar.bz2
defaults:
# /bin/h5pcc contains hard-coded path
relocatable: false
build_stages:
- name: set-cc-compiler
after: prologue
before: configure
handler: bash
bash: |
export CC=${MPICC}
- when: machine == 'CrayXE6' or machine == 'CrayXC30'
name: make_exe_builds_static
handler: bash
after: configure
before: make
bash: |
for f in {test,testpar,tools/*,perform,hl/*,hl/*/*}/Makefile
do
sed -i 's/CCLD = $(CC)/CCLD = $(CC) -static/g' $f
done
for f in {src,test,testpar,tools/*,perform,hl/*,hl/*/*}/Makefile
do
sed -i "s/sed -e 's\/-L\/:\/g' -e 's\/ \/\/g'/sed -e 's\/-L\/:\/g' -e 's\/-rpath=\/:\/g' -e 's\/-Wl,\/\/g' -e 's\/ \/\/g'/g" $f
done
- name: configure
extra: ['--with-zlib=${ZLIB_DIR}',
'--with-szlib=${SZIP_DIR}',
'--with-pthread',
'--enable-unsupported',
'--enable-shared',
'--enable-production=yes',
'--enable-parallel=yes',
'--enable-largefile=yes',
'--with-default-api-version=v18']
- when: machine == 'CrayXE6' or machine == 'CrayXC30'
name: configure
extra: ['--enable-static-exec',
'--with-zlib=${ZLIB_DIR}',
'--with-szlib=${SZIP_DIR}',
'--with-pthread',
'--enable-unsupported',
'--enable-shared',
'--enable-production=yes',
'--enable-parallel=yes',
'--enable-largefile=yes',
'--with-default-api-version=v18',
'--with-pic']
when_build_dependency:
- set: HDF5_ROOT
value: '${ARTIFACT}'
- prepend_path: PATH
value: '${ARTIFACT}/bin'