summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2012-12-12 11:12:26 (GMT)
committerTony Theodore <tonyt@logyst.com>2012-12-12 11:12:26 (GMT)
commit417513d50ea7e91c83dbde55fb532ab7187cd777 (patch)
treeceefe670af3b474633dabcce1def6cd270b7113f
parent43b01d903f410ca1ca61012ebb01fd4c6aabf7b5 (diff)
downloadmxe-417513d50ea7e91c83dbde55fb532ab7187cd777.zip
mxe-417513d50ea7e91c83dbde55fb532ab7187cd777.tar.gz
mxe-417513d50ea7e91c83dbde55fb532ab7187cd777.tar.bz2
packages hdf4 hdf5: add update script
-rw-r--r--src/hdf4.mk6
-rw-r--r--src/hdf5.mk6
2 files changed, 8 insertions, 4 deletions
diff --git a/src/hdf4.mk b/src/hdf4.mk
index 2d68695..9d1dd74 100644
--- a/src/hdf4.mk
+++ b/src/hdf4.mk
@@ -10,8 +10,10 @@ $(PKG)_URL := http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/$($(PKG)_FILE
$(PKG)_DEPS := gcc zlib jpeg portablexdr
define $(PKG)_UPDATE
- echo 'TODO: write update script for $(PKG).' >&2;
- echo $($(PKG)_VERSION)
+ $(WGET) -q -O- 'http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/' | \
+ grep '<a href.*hdf.*bz2' | \
+ $(SED) -n 's,.*hdf-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
endef
define $(PKG)_BUILD
diff --git a/src/hdf5.mk b/src/hdf5.mk
index 417f2a9..f13f841 100644
--- a/src/hdf5.mk
+++ b/src/hdf5.mk
@@ -10,8 +10,10 @@ $(PKG)_URL := http://www.hdfgroup.org/ftp/HDF5/current/src/$($(PKG)_FILE)
$(PKG)_DEPS := gcc zlib pthreads
define $(PKG)_UPDATE
- echo 'TODO: write update script for $(PKG).' >&2;
- echo $($(PKG)_VERSION)
+ $(WGET) -q -O- 'http://www.hdfgroup.org/ftp/HDF5/current/src/' | \
+ grep '<a href.*hdf5.*bz2' | \
+ $(SED) -n 's,.*hdf5-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ head -1
endef
define $(PKG)_BUILD