summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-05-09 17:06:05 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-05-09 17:06:05 (GMT)
commit3171447283bdba8145e41c8a2d86b486b9d4fe36 (patch)
treec171964110842ab77af26406cc353729776dc592
parentd40af3575f2bf0e9175978a132aef6af56b7b46a (diff)
downloadmxe-3171447283bdba8145e41c8a2d86b486b9d4fe36.zip
mxe-3171447283bdba8145e41c8a2d86b486b9d4fe36.tar.gz
mxe-3171447283bdba8145e41c8a2d86b486b9d4fe36.tar.bz2
remove code duplication between packages gmp and gcc-gmp
-rw-r--r--src/gcc-gmp.mk21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/gcc-gmp.mk b/src/gcc-gmp.mk
index 2125981..a9bb108 100644
--- a/src/gcc-gmp.mk
+++ b/src/gcc-gmp.mk
@@ -3,19 +3,16 @@
# GMP for GCC
PKG := gcc-gmp
-$(PKG)_IGNORE :=
-$(PKG)_VERSION := 5.0.1
-$(PKG)_CHECKSUM := 6340edc7ceb95f9015a758c7c0d196eb0f441d49
-$(PKG)_SUBDIR := gmp-$($(PKG)_VERSION)
-$(PKG)_FILE := gmp-$($(PKG)_VERSION).tar.bz2
-$(PKG)_WEBSITE := http://www.gmplib.org/
-$(PKG)_URL := ftp://ftp.gmplib.org/pub/$($(PKG)_SUBDIR)/$($(PKG)_FILE)
+$(PKG)_IGNORE = $(gmp_IGNORE)
+$(PKG)_VERSION = $(gmp_VERSION)
+$(PKG)_CHECKSUM = $(gmp_CHECKSUM)
+$(PKG)_SUBDIR = $(gmp_SUBDIR)
+$(PKG)_FILE = $(gmp_FILE)
+$(PKG)_WEBSITE = $(gmp_WEBSITE)
+$(PKG)_URL = $(gmp_URL)
+$(PKG)_URL_2 = $(gmp_URL_2)
$(PKG)_DEPS :=
define $(PKG)_UPDATE
- wget -q -O- 'http://www.gmplib.org/' | \
- grep '<a href="' | \
- $(SED) -n 's,.*gmp-\([0-9][^>]*\)\.tar\.bz2.*,\1,p' | \
- grep -v '^4\.' | \
- head -1
+ echo $(gmp_VERSION)
endef