comparison src/gcc-gmp.mk @ 944:26c10955389a

remove code duplication between packages gmp and gcc-gmp
author Volker Grabsch <vog@notjusthosting.com>
date Sun, 09 May 2010 19:06:05 +0200
parents 80ad871e84ff
children f653602a0500
comparison
equal deleted inserted replaced
943:bc40d4f60207 944:26c10955389a
1 # This file is part of mingw-cross-env. 1 # This file is part of mingw-cross-env.
2 # See doc/index.html for further information. 2 # See doc/index.html for further information.
3 3
4 # GMP for GCC 4 # GMP for GCC
5 PKG := gcc-gmp 5 PKG := gcc-gmp
6 $(PKG)_IGNORE := 6 $(PKG)_IGNORE = $(gmp_IGNORE)
7 $(PKG)_VERSION := 5.0.1 7 $(PKG)_VERSION = $(gmp_VERSION)
8 $(PKG)_CHECKSUM := 6340edc7ceb95f9015a758c7c0d196eb0f441d49 8 $(PKG)_CHECKSUM = $(gmp_CHECKSUM)
9 $(PKG)_SUBDIR := gmp-$($(PKG)_VERSION) 9 $(PKG)_SUBDIR = $(gmp_SUBDIR)
10 $(PKG)_FILE := gmp-$($(PKG)_VERSION).tar.bz2 10 $(PKG)_FILE = $(gmp_FILE)
11 $(PKG)_WEBSITE := http://www.gmplib.org/ 11 $(PKG)_WEBSITE = $(gmp_WEBSITE)
12 $(PKG)_URL := ftp://ftp.gmplib.org/pub/$($(PKG)_SUBDIR)/$($(PKG)_FILE) 12 $(PKG)_URL = $(gmp_URL)
13 $(PKG)_URL_2 = $(gmp_URL_2)
13 $(PKG)_DEPS := 14 $(PKG)_DEPS :=
14 15
15 define $(PKG)_UPDATE 16 define $(PKG)_UPDATE
16 wget -q -O- 'http://www.gmplib.org/' | \ 17 echo $(gmp_VERSION)
17 grep '<a href="' | \
18 $(SED) -n 's,.*gmp-\([0-9][^>]*\)\.tar\.bz2.*,\1,p' | \
19 grep -v '^4\.' | \
20 head -1
21 endef 18 endef