Mercurial > mxe-octave
changeset 5021:32fbb60561a6
Add xext update rules
* src/xext.mk, src/xextproto.mk: add update rule
author | John Donoghue |
---|---|
date | Mon, 11 Mar 2019 15:27:37 -0400 |
parents | 59ea6e6b36e3 |
children | 9361f2645513 |
files | src/xext.mk src/xextproto.mk |
diffstat | 2 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xext.mk Mon Mar 11 15:27:36 2019 -0400 +++ b/src/xext.mk Mon Mar 11 15:27:37 2019 -0400 @@ -10,6 +10,13 @@ $(PKG)_URL := http://www.x.org/archive/individual/lib/$($(PKG)_FILE) $(PKG)_DEPS := xextproto xproto +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://www.x.org/archive/individual/lib/' | \ + $(SED) -n 's,.*<a href="libXext-\([0-9\.]*\)\.tar.gz".*,\1,p' | \ + $(SORT) -V | + tail -1 +endef + ifeq ($(MXE_WINDOWS_BUILD),yes) define $(PKG)_BUILD endef
--- a/src/xextproto.mk Mon Mar 11 15:27:36 2019 -0400 +++ b/src/xextproto.mk Mon Mar 11 15:27:37 2019 -0400 @@ -10,6 +10,14 @@ $(PKG)_URL := http://www.x.org/archive/individual/proto/$($(PKG)_FILE) $(PKG)_DEPS := +define $(PKG)_UPDATE + $(WGET) -q -O- 'https://www.x.org/archive/individual/proto/' | \ + $(SED) -n 's,.*<a href="xextproto-\([0-9\.]*\)\.tar.gz".*,\1,p' | \ + $(SORT) -V | + tail -1 +endef + + ifeq ($(MXE_WINDOWS_BUILD),yes) define $(PKG)_BUILD endef