Skip to content

Commit

Permalink
Merge pull request #199 from jakirkham/add_hdf5
Browse files Browse the repository at this point in the history
Add HDF5
  • Loading branch information
pelson committed Mar 25, 2016
2 parents e9f6b92 + 6929ec8 commit f125dbf
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 0 deletions.
17 changes: 17 additions & 0 deletions recipes/hdf5/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
mkdir build
cd build

REM set environement variables
set HDF5_EXT_ZLIB=zlib.lib

REM configure step
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE:STRING=RELEASE -DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% -DCMAKE_INSTALL_PREFIX:PATH=%LIBRARY_PREFIX% -DHDF5_BUILD_CPP_LIB=ON -DBUILD_SHARED_LIBS:BOOL=ON -DHDF5_BUILD_HL_LIB=ON -DHDF5_BUILD_TOOLS:BOOL=ON -DHDF5_ENABLE_Z_LIB_SUPPORT:BOOL=ON %SRC_DIR%
if errorlevel 1 exit 1

REM Build C libraries and tools
nmake
if errorlevel 1 exit 1

REM Install step
nmake install
if errorlevel 1 exit 1
11 changes: 11 additions & 0 deletions recipes/hdf5/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

./configure --prefix=$PREFIX \
--enable-linux-lfs --with-zlib \
--with-pthread=yes --enable-cxx --with-default-plugindir=$PREFIX/lib/hdf5/plugin

make
make check
make install

rm -rf $PREFIX/share/hdf5_examples
39 changes: 39 additions & 0 deletions recipes/hdf5/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{% set version = "1.8.16" %}

package:
name: hdf5
version: {{ version }}

source:
fn: hdf5-{{version}}.tar.gz
url: http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-{{version}}.tar.gz
md5: b8ed9a36ae142317f88b0c7ef4b9c618
patches:
- test_Makefile.in.patch

build:
features:
- vc9 # [win and py27]
- vc10 # [win and py34]
- vc14 # [win and py35]
detect_binary_files_with_prefix: True

requirements:
build:
- python # [win]
- cmake >=3.1
- zlib
run:
- zlib

about:
home: http://www.hdfgroup.org/HDF5/
license: HDF5
license_family: BSD
license_file: COPYING
summary: HDF5 is a data model, library, and file format for storing and managing data

extra:
recipe-maintainers:
- jakirkham
- rgrout
13 changes: 13 additions & 0 deletions recipes/hdf5/test_Makefile.in.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git test/Makefile.in test/Makefile.in
index 02ab570..f2b9889 100644
--- test/Makefile.in
+++ test/Makefile.in
@@ -1071,7 +1071,7 @@ check_SCRIPTS = $(TEST_SCRIPT)
# These tests (fheap, btree2) are under development and are not used by
# the library yet. Move them to the end so that their failure do not block
# other current library code tests.
-TEST_PROG = testhdf5 lheap ohdr stab gheap cache cache_api \
+TEST_PROG = testhdf5 lheap ohdr stab gheap cache_api \
pool accum hyperslab istore bittests dt_arith \
dtypes dsets cmpd_dset filter_fail extend external efc objcopy links unlink \
big mtime fillval mount flush1 flush2 app_ref enum \

0 comments on commit f125dbf

Please sign in to comment.