diff --git a/recipes/hdf5/bld.bat b/recipes/hdf5/bld.bat new file mode 100644 index 0000000000000..546e5dfad3dda --- /dev/null +++ b/recipes/hdf5/bld.bat @@ -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 diff --git a/recipes/hdf5/build.sh b/recipes/hdf5/build.sh new file mode 100644 index 0000000000000..b443db2a3a19f --- /dev/null +++ b/recipes/hdf5/build.sh @@ -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 diff --git a/recipes/hdf5/meta.yaml b/recipes/hdf5/meta.yaml new file mode 100644 index 0000000000000..51517ebc8cb14 --- /dev/null +++ b/recipes/hdf5/meta.yaml @@ -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 diff --git a/recipes/hdf5/test_Makefile.in.patch b/recipes/hdf5/test_Makefile.in.patch new file mode 100644 index 0000000000000..cb5fc22eab625 --- /dev/null +++ b/recipes/hdf5/test_Makefile.in.patch @@ -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 \