view src/hdf5.mk @ 2988:aca8511e7751

qt.mk: link to correct files in bin directory
author John W. Eaton <jwe@octave.org>
date Thu, 16 May 2013 13:32:57 -0400
parents 4b72e7cf4f30
children 4f9b72cf7ee7
line wrap: on
line source

# This file is part of MXE.
# See index.html for further information.

PKG             := hdf5
$(PKG)_IGNORE   :=
$(PKG)_CHECKSUM := 867a91b75ee0bbd1f1b13aecd52e883be1507a2c
$(PKG)_SUBDIR   := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE     := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL      := http://www.hdfgroup.org/ftp/HDF5/current/src/$($(PKG)_FILE)
$(PKG)_DEPS     := gcc

define $(PKG)_UPDATE
    echo 'Warning: Updates are temporarily disabled for package hdf5.' >&2;
    echo $(hdf5_VERSION)
endef

define $(PKG)_BUILD
    # build GCC and support libraries
    cd '$(1)' && autoreconf
    mkdir '$(1)/.build'
    cd '$(1)/.build' && '$(1)/configure' \
        --host='$(TARGET)' \
        --build="`config.guess`" \
        $(ENABLE_SHARED_OR_STATIC) \
        --prefix='$(PREFIX)/$(TARGET)' \
        --disable-direct-vfd \
        --disable-largefile \
        LIBS=-lws2_32 \
        hdf5_cv_gettimeofday_tz=no \
        hdf5_cv_vsnprintf_works=yes \
        hdf5_cv_printf_ll=l \
        hdf5_cv_system_scope_threads=yes \
        hdf5_cv_ldouble_to_integer_works=yes \
        hdf5_cv_ulong_to_float_accurate=yes \
        hdf5_cv_ulong_to_fp_bottom_bit_accurate=no \
        hdf5_cv_fp_to_ullong_accurate=yes \
        hdf5_cv_fp_to_ullong_right_maximum=no \
        hdf5_cv_fp_to_ullong_right_maximum=no \
        hdf5_cv_ldouble_to_uint_accurate=yes \
        hdf5_cv_ullong_to_ldouble_precision=yes \
        hdf5_cv_fp_to_integer_overflow_works=yes \
        hdf5_cv_ldouble_to_long_special=no \
        hdf5_cv_long_to_ldouble_special=no \
        hdf5_cv_ldouble_to_llong_accurate=yes \
        hdf5_cv_llong_to_ldouble_correct=yes

    echo "#define H5_HAVE_WIN32_API 1" >> $(1)/.build/src/H5pubconf.h
    echo "#define H5_HAVE_MINGW 1" >> $(1)/.build/src/H5pubconf.h
    echo "#define HAVE_WINDOWS_PATH 1" >> $(1)/.build/src/H5pubconf.h

    $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install
endef