Mercurial > mxe-octave
annotate 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 |
rev | line source |
---|---|
3274 | 1 # This file is part of MXE. |
2 # See index.html for further information. | |
3 | |
4 PKG := units | |
5 $(PKG)_IGNORE := | |
4637
b92fc8cfb49a
units: update to v2.16
John Donoghue <john.donoghue@ieee.org>
parents:
4395
diff
changeset
|
6 $(PKG)_VERSION := 2.16 |
b92fc8cfb49a
units: update to v2.16
John Donoghue <john.donoghue@ieee.org>
parents:
4395
diff
changeset
|
7 $(PKG)_CHECKSUM := 73b5b4e4fcff422198343cc29f78252673ddff50 |
3274 | 8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz | |
10 $(PKG)_URL := http://ftp.gnu.org/gnu/$(PKG)/$($(PKG)_FILE) | |
11 $(PKG)_DEPS := | |
12 | |
13 define $(PKG)_UPDATE | |
4637
b92fc8cfb49a
units: update to v2.16
John Donoghue <john.donoghue@ieee.org>
parents:
4395
diff
changeset
|
14 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/$(PKG)/?C=M;O=D' | \ |
b92fc8cfb49a
units: update to v2.16
John Donoghue <john.donoghue@ieee.org>
parents:
4395
diff
changeset
|
15 $(SED) -n 's,.*<a href="$(PKG)-\([0-9][^"]*\)\.tar.*,\1,p' | \ |
b92fc8cfb49a
units: update to v2.16
John Donoghue <john.donoghue@ieee.org>
parents:
4395
diff
changeset
|
16 head -1 |
3274 | 17 endef |
18 | |
19 define $(PKG)_BUILD | |
20 cd '$(1)' && ./configure \ | |
21 --prefix='$(HOST_PREFIX)' \ | |
22 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) | |
23 | |
24 $(MAKE) -C '$(1)' -j '$(JOBS)' | |
3342
5e9dc7f88328
Allow file listing of "units" module.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
3274
diff
changeset
|
25 $(MAKE) -C '$(1)' -j 1 install DESTDIR='$(3)' |
3274 | 26 endef |