mxe/src/mpfr.mk

33 lines
1.0 KiB
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.
2011-10-21 23:24:34 +01:00
PKG := mpfr
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.1.2
2013-03-14 15:31:33 +00:00
$(PKG)_CHECKSUM := 03e593cc6e26639ef5e60be1af8dc527209e5172
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
2012-07-04 08:00:57 +01:00
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/$(PKG)/$($(PKG)_FILE)
2011-10-23 03:37:14 +01:00
$(PKG)_URL_2 := http://www.mpfr.org/mpfr-$($(PKG)_VERSION)/$($(PKG)_FILE)
2011-10-21 23:24:34 +01:00
$(PKG)_DEPS := gcc gmp
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://www.mpfr.org/mpfr-current/#download' | \
2011-10-21 23:24:34 +01:00
grep 'mpfr-' | \
$(SED) -n 's,.*mpfr-\([0-9][^>]*\)\.tar.*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
--host='$(TARGET)' \
--enable-static \
--disable-shared \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-threads=win32 \
--with-gmp-include='$(PREFIX)/$(TARGET)/include/'
--with-gmp-lib='$(PREFIX)/$(TARGET)/lib/'
2011-10-21 23:24:34 +01:00
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j '$(JOBS)' install
endef