include $(TOPDIR)/rules.mk
PKG_NAME:=mpfr
-PKG_VERSION:=3.1.6
+PKG_VERSION:=4.0.0
PKG_CPE_ID:=cpe:/a:mpfr:gnu_mpfr
PKG_SOURCE_URL:=http://www.mpfr.org/mpfr-$(PKG_VERSION) \
@GNU/mpfr
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
-PKG_HASH:=7a62ac1a04408614fccdc506e4844b10cf0ad2c2b1677097f8f35d3a1344a950
+PKG_HASH:=fbe2cd1418b321f5c899ce4f0f0f4e73f5ecc7d02145b0e1fd096f5c3afb8a1d
HOST_BUILD_PARALLEL:=1
HOST_FIXUP:=autoreconf
# old Automake version.
ACLOCAL_AMFLAGS = -I m4
--SUBDIRS = doc src tests tune
+-SUBDIRS = doc src tests tune tools/bench
+SUBDIRS = src
- nobase_dist_doc_DATA = AUTHORS BUGS COPYING COPYING.LESSER NEWS TODO \
- examples/ReadMe examples/divworst.c examples/rndo-add.c examples/sample.c \
+ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = mpfr.pc
--- a/Makefile.in
+++ b/Makefile.in
-@@ -378,7 +378,7 @@ AUTOMAKE_OPTIONS = gnu
+@@ -383,7 +383,7 @@ AUTOMAKE_OPTIONS = gnu
# libtoolize and in case some developer needs to switch back to an
# old Automake version.
ACLOCAL_AMFLAGS = -I m4
--SUBDIRS = doc src tests tune
+-SUBDIRS = doc src tests tune tools/bench
+SUBDIRS = src
+ pkgconfigdir = $(libdir)/pkgconfig
+ pkgconfig_DATA = mpfr.pc
nobase_dist_doc_DATA = AUTHORS BUGS COPYING COPYING.LESSER NEWS TODO \
- examples/ReadMe examples/divworst.c examples/rndo-add.c examples/sample.c \
- examples/version.c
--- a/src/vasprintf.c
+++ b/src/vasprintf.c
-@@ -42,6 +42,7 @@ http://www.gnu.org/licenses/ or write to
+@@ -61,6 +61,7 @@ http://www.gnu.org/licenses/ or write to
#endif /* HAVE_VA_COPY */
#ifdef HAVE_WCHAR_H