diff options
author | Thomas Danckaert <thomas.danckaert@gmail.com> | 2016-03-03 16:20:11 (GMT) |
---|---|---|
committer | Thomas Danckaert <thomas.danckaert@gmail.com> | 2016-05-30 11:45:27 (GMT) |
commit | 88024041f535cbbdb590ef2f0abeeb9ceaa8ab4d (patch) | |
tree | dad592b13cd8c395c409c655f1d6ea269f12daec /src/hdf-eos2.mk | |
parent | b21ca7c1b6cb6a5c9714bcad30d87ab71f1d3e21 (diff) | |
download | mxe-88024041f535cbbdb590ef2f0abeeb9ceaa8ab4d.zip mxe-88024041f535cbbdb590ef2f0abeeb9ceaa8ab4d.tar.gz mxe-88024041f535cbbdb590ef2f0abeeb9ceaa8ab4d.tar.bz2 |
Add package 'HDF-EOS2'.
http://hdfeos.org/software/library.php
"The HDF-EOS2 is a software library designed built on HDF4 to support
EOS-specific data structures, namely Grid, Point, and Swath. The new
data structures are constructed from standard HDF data objects, using
EOS conventions, through the use of a software library. A key feature of
HDF-EOS files is that instrument-independent services, such as
subsetting by geolocation, can be applied to the files across a wide
variety of data products."
Diffstat (limited to 'src/hdf-eos2.mk')
-rw-r--r-- | src/hdf-eos2.mk | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/hdf-eos2.mk b/src/hdf-eos2.mk new file mode 100644 index 0000000..75b9fd3 --- /dev/null +++ b/src/hdf-eos2.mk @@ -0,0 +1,36 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := 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 \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + -lhdfeos -lmfhdf -ldf -lz -ljpeg -lportablexdr -lws2_32 +endef + +$(PKG)_BUILD_SHARED = |