mxe/src/gmp.mk

31 lines
931 B
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
2010-04-10 07:16:56 +01:00
PKG := gmp
$(PKG)_IGNORE :=
2012-02-10 11:03:22 +00:00
$(PKG)_CHECKSUM := ea4ea7c3f10436ef5ae7a75b3fad163a8b86edc0
2010-04-10 07:16:56 +01:00
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := ftp://ftp.gmplib.org/pub/$(PKG)-$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/$(PKG)/$($(PKG)_FILE)
2010-04-10 07:16:56 +01:00
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
wget -q -O- 'http://www.gmplib.org/' | \
grep '<a href="' | \
$(SED) -n 's,.*gmp-\([0-9][^>]*\)\.tar.*,\1,p' | \
2010-04-10 07:16:56 +01:00
grep -v '^4\.' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && CC_FOR_BUILD=gcc ./configure \
2010-04-10 07:16:56 +01:00
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
2011-05-27 21:57:29 +01:00
--enable-cxx \
2010-04-10 07:16:56 +01:00
--without-readline
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef