Mercurial > mxe-octave
comparison src/libpng.mk @ 3561:ae4193aad5fe
revise and enable more $(PKG)_UPDATE rules
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 08 Mar 2014 17:40:00 -0500 |
parents | 0db08921272d |
children | 7dafcc683b78 |
comparison
equal
deleted
inserted
replaced
3560:e14baae9ec8c | 3561:ae4193aad5fe |
---|---|
15 ifeq ($(MXE_SYSTEM),msvc) | 15 ifeq ($(MXE_SYSTEM),msvc) |
16 $(PKG)_CONFIGURE_OPTIONS := ac_cv_func_memset=yes ac_cv_func_pow=yes | 16 $(PKG)_CONFIGURE_OPTIONS := ac_cv_func_memset=yes ac_cv_func_pow=yes |
17 endif | 17 endif |
18 | 18 |
19 define $(PKG)_UPDATE | 19 define $(PKG)_UPDATE |
20 $(WGET) -q -O- 'http://libpng.git.sourceforge.net/git/gitweb.cgi?p=libpng/libpng;a=tags' | \ | 20 $(WGET) -q -O- 'http://sourceforge.net/p/libpng/code/ref/master/tags/' | \ |
21 grep '<a class="list name"' | \ | |
22 $(SED) -n 's,.*<a[^>]*>v\([0-9][^<]*\)<.*,\1,p' | \ | 21 $(SED) -n 's,.*<a[^>]*>v\([0-9][^<]*\)<.*,\1,p' | \ |
23 grep -v alpha | \ | 22 grep -v alpha | \ |
24 grep -v beta | \ | 23 grep -v beta | \ |
25 grep -v rc | \ | 24 grep -v rc | \ |
26 grep -v '^1\.[0-4]\.' | \ | 25 $(SORT) -V | \ |
27 head -1 | 26 tail -1 |
28 endef | 27 endef |
29 | 28 |
30 define $(PKG)_BUILD | 29 define $(PKG)_BUILD |
31 cd '$(1)' && ./configure \ | 30 cd '$(1)' && ./configure \ |
32 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ | 31 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \ |