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-eos2.mk

38 lines
1.2 KiB

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := hdf-eos2
$(PKG)_WEBSITE := https://hdfeos.org/software/library.php
$(PKG)_DESCR := HDF-EOS2
$(PKG)_IGNORE :=
$(PKG)_VERSION := 19v1.00
$(PKG)_CHECKSUM := 3fffa081466e85d2b9436d984bc44fe97bbb33ad9d8b7055a322095dc4672e31
$(PKG)_SUBDIR := hdfeos
$(PKG)_FILE := HDF-EOS2.$($(PKG)_VERSION).tar.Z
$(PKG)_URL := ftp://edhs1.gsfc.nasa.gov/edhs/hdfeos/latest_release/$($(PKG)_FILE)
$(PKG)_DEPS := gcc hdf4
define $(PKG)_UPDATE
echo 'TODO: write update script for hdf-eos2.' >&2;
echo $(hdf-eos2_VERSION)
endef
define $(PKG)_BUILD
cd '$(1)' && chmod -R ugo+w .
cd '$(1)' && autoconf
cd '$(1)' && \
ac_cv_func_malloc_0_nonnull=yes \
ac_cv_func_realloc_0_nonnull=yes \
./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' \
-lhdfeos -lmfhdf -ldf -lz -ljpeg -lportablexdr -lws2_32
endef
$(PKG)_BUILD_SHARED =