diff options
author | Tony Theodore <tonyt@logyst.com> | 2013-11-10 04:34:22 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2013-11-10 04:34:22 (GMT) |
commit | 9c97a3932237b993f3b88dc900099d108d1fd4f8 (patch) | |
tree | 7f346e968eefef6c46bc66a16053d67d399543c7 | |
parent | 65835e9735d51de244a59295bb76d52c25e658fa (diff) | |
download | mxe-9c97a3932237b993f3b88dc900099d108d1fd4f8.zip mxe-9c97a3932237b993f3b88dc900099d108d1fd4f8.tar.gz mxe-9c97a3932237b993f3b88dc900099d108d1fd4f8.tar.bz2 |
package glfw2: add update macro
-rw-r--r-- | src/glfw2.mk | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/glfw2.mk b/src/glfw2.mk index ef7d91b..2e52d14 100644 --- a/src/glfw2.mk +++ b/src/glfw2.mk @@ -11,13 +11,16 @@ $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/glfw/glfw/$($(PKG)_VERSI $(PKG)_DEPS := gcc define $(PKG)_UPDATE - echo 'TODO: write update script for $(PKG).' >&2; - echo $($(PKG)_VERSION) + $(WGET) -q -O- 'http://sourceforge.net/projects/glfw/files/glfw/' | \ + $(SED) -n 's,.*/\([0-9][^"]*\)/".*,\1,p' | \ + grep '^2\.' | \ + $(SORT) -V | \ + tail -1 endef define $(PKG)_BUILD $(MAKE) -C '$(1)' -j '$(JOBS)' cross-mgw-install TARGET=$(TARGET)- PREFIX='$(PREFIX)/$(TARGET)' - + #Test '$(TARGET)-gcc' \ -W -Wall -Werror -ansi -pedantic \ |