comparison src/binutils.mk @ 994:07e346dfcd76

improved version recognition of packages binutils and gcc
author Volker Grabsch <vog@notjusthosting.com>
date Thu, 20 May 2010 22:38:49 +0200
parents 7bc91d496bb8
children 3443a9b9a415
comparison
equal deleted inserted replaced
993:be3969597cbd 994:07e346dfcd76
12 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/binutils/$($(PKG)_FILE) 12 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/binutils/$($(PKG)_FILE)
13 $(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/binutils/$($(PKG)_FILE) 13 $(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/binutils/$($(PKG)_FILE)
14 $(PKG)_DEPS := 14 $(PKG)_DEPS :=
15 15
16 define $(PKG)_UPDATE 16 define $(PKG)_UPDATE
17 wget -q -O- 'http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/?cvsroot=src' | \ 17 wget -q -O- 'http://ftp.gnu.org/gnu/binutils/?C=M;O=D' | \
18 grep '<OPTION>binutils-' | \ 18 $(SED) -n 's,.*<a href="binutils-\([0-9][^"]*\)\.tar.*,\1,p' | \
19 $(SED) -n 's,.*binutils-\([0-9][0-9_]*\).*,\1,p' | \
20 $(SED) 's,_,.,g' | \
21 head -1 19 head -1
22 endef 20 endef
23 21
24 define $(PKG)_BUILD 22 define $(PKG)_BUILD
25 cd '$(1)' && ./configure \ 23 cd '$(1)' && ./configure \