Mercurial > mxe-octave
comparison src/units.mk @ 4637:b92fc8cfb49a
units: update to v2.16
* src/units.mk: implment PKG_UPDATE rule, update version, checksum
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 24 Mar 2018 07:29:43 -0400 |
parents | 022eeecc83f3 |
children | 46bf69e11b71 |
comparison
equal
deleted
inserted
replaced
4636:b1f044de9b1c | 4637:b92fc8cfb49a |
---|---|
1 # This file is part of MXE. | 1 # This file is part of MXE. |
2 # See index.html for further information. | 2 # See index.html for further information. |
3 | 3 |
4 PKG := units | 4 PKG := units |
5 $(PKG)_IGNORE := | 5 $(PKG)_IGNORE := |
6 $(PKG)_VERSION := 2.14 | 6 $(PKG)_VERSION := 2.16 |
7 $(PKG)_CHECKSUM := de240d52855094ae2b64071ffc55ae1c3fc459f0 | 7 $(PKG)_CHECKSUM := 73b5b4e4fcff422198343cc29f78252673ddff50 |
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | 9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz |
10 $(PKG)_URL := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE) | 10 $(PKG)_URL := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE) |
11 $(PKG)_DEPS := | 11 $(PKG)_DEPS := |
12 | 12 |
13 define $(PKG)_UPDATE | 13 define $(PKG)_UPDATE |
14 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2; | 14 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/$(PKG)/?C=M;O=D' | \ |
15 echo $($(PKG)_VERSION) | 15 $(SED) -n 's,.*<a href="$(PKG)-\([0-9][^"]*\)\.tar.*,\1,p' | \ |
16 head -1 | |
16 endef | 17 endef |
17 | 18 |
18 define $(PKG)_BUILD | 19 define $(PKG)_BUILD |
19 cd '$(1)' && ./configure \ | 20 cd '$(1)' && ./configure \ |
20 --prefix='$(HOST_PREFIX)' \ | 21 --prefix='$(HOST_PREFIX)' \ |