summaryrefslogtreecommitdiffstats
path: root/src/portablexdr.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/portablexdr.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/portablexdr.mk')
-rw-r--r--src/portablexdr.mk24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/portablexdr.mk b/src/portablexdr.mk
new file mode 100644
index 0000000..86267c8
--- /dev/null
+++ b/src/portablexdr.mk
@@ -0,0 +1,24 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := portablexdr
+$(PKG)_IGNORE :=
+$(PKG)_CHECKSUM := 1fb556185ca68d9ba07ad2be0576b166375a75bb
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://people.redhat.com/~rjones/portablexdr/files/$($(PKG)_FILE)
+$(PKG)_DEPS := gcc
+
+define $(PKG)_UPDATE
+ /bin/false
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && ./configure \
+ --host='$(TARGET)' \
+ --build="`config.guess`" \
+ --disable-shared \
+ --prefix='$(PREFIX)/$(TARGET)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j 1 install
+endef