You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/hdf-eos5.mk

36 lines
1.1 KiB

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := hdf-eos5
$(PKG)_WEBSITE := https://hdfeos.org/software/library.php
$(PKG)_DESCR := HDF-EOS5
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.16
$(PKG)_CHECKSUM := 7054de24b90b6d9533329ef8dc89912c5227c83fb447792103279364e13dd452
$(PKG)_SUBDIR := hdfeos5
$(PKG)_FILE := HDF-EOS5.$($(PKG)_VERSION).tar.Z
$(PKG)_URL := https://observer.gsfc.nasa.gov/ftp/edhs/hdfeos5/latest_release/$($(PKG)_FILE)
$(PKG)_DEPS := cc hdf5
define $(PKG)_UPDATE
echo 'TODO: write update script for hdf-eos5.' >&2;
echo $(hdf-eos5_VERSION)
endef
define $(PKG)_BUILD
cd '$(1)' && chmod -R ugo+w .
cd '$(1)' && autoconf
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--enable-install-include
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
'$(TARGET)-gcc' \
-std=c99 -W -Wall -Werror -pedantic \
'$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
-lhe5_hdfeos -lhdf5_hl -lhdf5 -lz
endef
$(PKG)_BUILD_SHARED =