summaryrefslogtreecommitdiffstats
path: root/src/hdf4.mk
diff options
context:
space:
mode:
authorMartin Lambers <marlam@marlam.de>2012-12-03 18:04:19 (GMT)
committerTony Theodore <tonyt@logyst.com>2012-12-05 07:26:56 (GMT)
commita36c93db651299dcdab5c7625e388b0ce7f78b02 (patch)
treee42e8d6fa039714bd5c827e391bdc834de76d9aa /src/hdf4.mk
parent7337ea85eebbba1bb34851fc7cefeaf47a98a003 (diff)
downloadmxe-a36c93db651299dcdab5c7625e388b0ce7f78b02.zip
mxe-a36c93db651299dcdab5c7625e388b0ce7f78b02.tar.gz
mxe-a36c93db651299dcdab5c7625e388b0ce7f78b02.tar.bz2
Add package netcdf and its prerequisites hdf4, hdf5, and portablexdr.
Also enable the HDF4, HDF5 and NetCDF drivers for GDAL.
Diffstat (limited to 'src/hdf4.mk')
-rw-r--r--src/hdf4.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/hdf4.mk b/src/hdf4.mk
new file mode 100644
index 0000000..904940b
--- /dev/null
+++ b/src/hdf4.mk
@@ -0,0 +1,29 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := hdf4
+$(PKG)_IGNORE :=
+$(PKG)_CHECKSUM := 9d4ab457ccb8e582c265ca3f5f2ec90614d89da4
+$(PKG)_SUBDIR := hdf-$($(PKG)_VERSION)
+$(PKG)_FILE := hdf-$($(PKG)_VERSION).tar.bz2
+$(PKG)_URL := http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc zlib jpeg portablexdr
+
+define $(PKG)_UPDATE
+ /bin/false
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && autoreconf && ./configure \
+ --host='$(TARGET)' \
+ --build="`config.guess`" \
+ --disable-shared \
+ --disable-fortran \
+ --disable-netcdf \
+ --prefix='$(PREFIX)/$(TARGET)' \
+ CPPFLAGS="-DH4_F77_FUNC\(name,NAME\)=NAME"
+ $(MAKE) -C '$(1)'/hdf/src -j '$(JOBS)'
+ $(MAKE) -C '$(1)'/hdf/src -j 1 install
+ $(MAKE) -C '$(1)'/mfhdf/libsrc -j '$(JOBS)'
+ $(MAKE) -C '$(1)'/mfhdf/libsrc -j 1 install
+endef