[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mingw-cross-env-list] [Patch] fixing make update for gtk and sdl
From: |
Mark de Wever |
Subject: |
[Mingw-cross-env-list] [Patch] fixing make update for gtk and sdl |
Date: |
Tue, 20 Oct 2009 17:17:32 +0200 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
Hi,
While testing my gtkmm stuff I discovered that a newer version of the
gtk library wasn't found during the run of make update. Attached a fix
for gtk and some libraries that used the same method as gtk.
I also found out, that a new version of SDL has been released yesterday.
make update didn't find that one either so also a patch to fix that.
I haven't tested whether the updated libraries build properly, I'll test
them after 2.9 has been released. (I assume you want to update these
libraries post 2.9.)
Regards,
Mark de Wever
diff -r ae9c8bdf2ce2 src/atk.mk
--- a/src/atk.mk Mon Oct 19 23:52:01 2009 +0200
+++ b/src/atk.mk Tue Oct 20 14:32:30 2009 +0200
@@ -31,9 +31,12 @@
$(PKG)_DEPS := gcc glib gettext
define $(PKG)_UPDATE
- wget -q -O- 'http://www.gtk.org/download-windows.html' | \
- grep 'atk-' | \
- $(SED) -n 's,.*atk-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ wget -q -O- 'http://ftp.gnome.org/pub/gnome/sources/atk/'$(shell \
+ wget -q -O- 'http://ftp.gnome.org/pub/gnome/sources/atk/' | \
+ $(SED) -n 's,.*"\([0-9][^/]*\)/".*,\1,p' | \
+ tail -1)/ | \
+ grep LATEST-IS | \
+ $(SED) -n 's,.*"LATEST-IS-\([0-9][^"]*\)".*,\1,p' | \
head -1
endef
diff -r ae9c8bdf2ce2 src/glib.mk
--- a/src/glib.mk Mon Oct 19 23:52:01 2009 +0200
+++ b/src/glib.mk Tue Oct 20 14:32:30 2009 +0200
@@ -31,9 +31,12 @@
$(PKG)_DEPS := gcc gettext pcre libiconv
define $(PKG)_UPDATE
- wget -q -O- 'http://www.gtk.org/download-windows.html' | \
- grep 'glib-' | \
- $(SED) -n 's,.*glib-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ wget -q -O- 'http://ftp.gnome.org/pub/gnome/sources/glib/'$(shell \
+ wget -q -O- 'http://ftp.gnome.org/pub/gnome/sources/glib/' | \
+ $(SED) -n 's,.*"\([0-9][^/]*\)/".*,\1,p' | \
+ tail -1)/ | \
+ grep LATEST-IS | \
+ $(SED) -n 's,.*"LATEST-IS-\([0-9][^"]*\)".*,\1,p' | \
head -1
endef
diff -r ae9c8bdf2ce2 src/gtk.mk
--- a/src/gtk.mk Mon Oct 19 23:52:01 2009 +0200
+++ b/src/gtk.mk Tue Oct 20 14:32:30 2009 +0200
@@ -31,9 +31,12 @@
$(PKG)_DEPS := gcc gettext libpng jpeg tiff jasper glib atk pango cairo
define $(PKG)_UPDATE
- wget -q -O- 'http://www.gtk.org/download-windows.html' | \
- grep 'gtk+-' | \
- $(SED) -n 's,.*gtk+-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ wget -q -O- 'http://ftp.gnome.org/pub/gnome/sources/gtk+/'$(shell \
+ wget -q -O- 'http://ftp.gnome.org/pub/gnome/sources/gtk+/' | \
+ $(SED) -n 's,.*"\([0-9][^/]*\)/".*,\1,p' | \
+ tail -1)/ | \
+ grep LATEST-IS | \
+ $(SED) -n 's,.*"LATEST-IS-\([0-9][^"]*\)".*,\1,p' | \
head -1
endef
diff -r ae9c8bdf2ce2 src/pango.mk
--- a/src/pango.mk Mon Oct 19 23:52:01 2009 +0200
+++ b/src/pango.mk Tue Oct 20 14:32:30 2009 +0200
@@ -32,9 +32,12 @@
$(PKG)_DEPS := gcc fontconfig freetype cairo glib
define $(PKG)_UPDATE
- wget -q -O- 'http://www.gtk.org/download-windows.html' | \
- grep 'pango-' | \
- $(SED) -n 's,.*pango-\([0-9][^>]*\)\.tar.*,\1,p' | \
+ wget -q -O- 'http://ftp.gnome.org/pub/gnome/sources/pango/'$(shell \
+ wget -q -O- 'http://ftp.gnome.org/pub/gnome/sources/pango/' | \
+ $(SED) -n 's,.*"\([0-9][^/]*\)/".*,\1,p' | \
+ tail -1)/ | \
+ grep LATEST-IS | \
+ $(SED) -n 's,.*"LATEST-IS-\([0-9][^"]*\)".*,\1,p' | \
head -1
endef
diff -r ae9c8bdf2ce2 src/sdl.mk
--- a/src/sdl.mk Mon Oct 19 23:52:01 2009 +0200
+++ b/src/sdl.mk Tue Oct 20 14:32:46 2009 +0200
@@ -31,7 +31,7 @@
$(PKG)_DEPS := gcc libiconv
define $(PKG)_UPDATE
- wget -q -O- 'http://libsdl.org/release/changes.html' | \
+ wget -q -O- 'http://libsdl.org/release/changes-1.2.html' | \
$(SED) -n 's,.*SDL \([0-9][^>]*\) Release Notes.*,\1,p' | \
head -1
endef
- [Mingw-cross-env-list] [Patch] fixing make update for gtk and sdl,
Mark de Wever <=