changeset 2803:bd0fe0e0dac1

package pthreads: fix update macro
author Mark Brand <mabrand@mabrand.nl>
date Thu, 11 Oct 2012 16:29:24 +0200
parents 6a8438dd88cd
children f61e6eda0c2b
files src/pthreads.mk
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/pthreads.mk	Thu Oct 11 13:27:17 2012 +0200
+++ b/src/pthreads.mk	Thu Oct 11 16:29:24 2012 +0200
@@ -10,10 +10,8 @@
 $(PKG)_DEPS     := gcc
 
 define $(PKG)_UPDATE
-    $(WGET) -q -O- 'ftp://sourceware.org/pub/pthreads-win32/Release_notes' | \
-    $(SED) -n 's,^RELEASE \([0-9][^[:space:]]*\).*,\1,p' | \
-    tr '.' '-' | \
-    head -1
+    $(WGET) -q -O- 'ftp://sourceware.org/pub/pthreads-win32/dll-latest/include/pthread.h' | \
+    $(SED) -n 's/^#define PTW32_VERSION \([^,]*\),\([^,]*\),\([^,]*\),.*/\1-\2-\3/p;'
 endef
 
 define $(PKG)_BUILD