diff options
author | Thomas Danckaert <thomas.danckaert@gmail.com> | 2016-03-03 10:55:23 (GMT) |
---|---|---|
committer | Thomas Danckaert <thomas.danckaert@gmail.com> | 2016-03-07 14:32:02 (GMT) |
commit | 3b26de48c85eff9a73f7fb55f5172f77a98e4607 (patch) | |
tree | 3c0f1879c2c8455fa2b18b5e8a3c2b5799d81f67 /src/coda.mk | |
parent | 372cf0e09f679684182fe3a019827265af056b6e (diff) | |
download | mxe-3b26de48c85eff9a73f7fb55f5172f77a98e4607.zip mxe-3b26de48c85eff9a73f7fb55f5172f77a98e4607.tar.gz mxe-3b26de48c85eff9a73f7fb55f5172f77a98e4607.tar.bz2 |
Add package 'coda'.
https://stcorp.nl/coda
"The Common Data Access toolbox (CODA) provides a set of interfaces for
reading remote sensing data from earth observation data files. These
interfaces consist of command line applications, libraries, interfaces
to scientific applications (such as IDL and MATLAB), and interfaces to
programming languages (such as C, Fortran, Python, and Java)."
Diffstat (limited to 'src/coda.mk')
-rw-r--r-- | src/coda.mk | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/coda.mk b/src/coda.mk new file mode 100644 index 0000000..ecba702 --- /dev/null +++ b/src/coda.mk @@ -0,0 +1,38 @@ +# This file is part of MXE. +# See index.html for further information. + +PKG := coda +$(PKG)_IGNORE := +$(PKG)_VERSION := 2.15.1 +$(PKG)_CHECKSUM := 51076ff958ec15633d741ea021761fc6d8c6492f931175c489288481e37ac810 +$(PKG)_SUBDIR := coda-$($(PKG)_VERSION) +$(PKG)_FILE := coda-$($(PKG)_VERSION).tar.gz +$(PKG)_URL := https://github.com/stcorp/coda/releases/download/$($(PKG)_VERSION)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc + +define $(PKG)_UPDATE + echo 'TODO: write update script for $(PKG).' >&2; + echo $($(PKG)_VERSION) +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + $(MXE_CONFIGURE_OPTS) \ + --disable-idl \ + --disable-matlab \ + --disable-python \ + --without-hdf5 \ + --without-hdf4 + + # Fortran includes are generated by the tool 'generate-finc', + # which needs to run natively: + cd '$(1)' && $(CC) -I . -o generate-finc fortran/generate-finc.c + + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)' -j 1 install-libLTLIBRARIES install-nodist_includeHEADERS install-fortranDATA + + '$(TARGET)-gcc' \ + -std=c99 -W -Wall -Werror -pedantic \ + '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-coda.exe' \ + -lcoda +endef |