diff options
author | Tony Theodore <tonyt@logyst.com> | 2013-01-08 11:37:11 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2013-01-08 11:37:11 (GMT) |
commit | b526ec623f55d7fbac8247cb20581e9734546af1 (patch) | |
tree | b335943c33560a0476c348c048b8b35ea37fd278 | |
parent | 1262c929387fb80f59337e6c52e84527b33d044d (diff) | |
download | mxe-b526ec623f55d7fbac8247cb20581e9734546af1.zip mxe-b526ec623f55d7fbac8247cb20581e9734546af1.tar.gz mxe-b526ec623f55d7fbac8247cb20581e9734546af1.tar.bz2 |
package netcdf: add update script
-rw-r--r-- | src/netcdf.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/netcdf.mk b/src/netcdf.mk index d9587d6..b59397e 100644 --- a/src/netcdf.mk +++ b/src/netcdf.mk @@ -10,8 +10,11 @@ $(PKG)_URL := http://www.unidata.ucar.edu/downloads/netcdf/ftp/$($(PKG)_FIL $(PKG)_DEPS := gcc curl zlib hdf4 hdf5 define $(PKG)_UPDATE - echo 'TODO: write update script for $(PKG).' >&2; - echo $($(PKG)_VERSION) + $(WGET) -q -O- 'http://www.unidata.ucar.edu/downloads/netcdf/index.jsp' | \ + grep netcdf | \ + $(SED) -n 's,.*href="netcdf-\([0-9_]*\)">.*,\1,p' | \ + head -1 | \ + tr '_' '.' endef # NetCDF uses '#ifdef IGNORE' as a synonym to '#if 0' in several places. |