From 716ca530e1c4515d8683c9d5be3d56b301758b66 Mon Sep 17 00:00:00 2001 From: James <> Date: Wed, 4 Nov 2015 11:49:21 +0000 Subject: trunk-47381 --- tools/mpfr/Makefile | 27 +++++++++++++++++++++++++++ tools/mpfr/patches/001-only_src.patch | 22 ++++++++++++++++++++++ tools/mpfr/patches/100-freebsd-compat.patch | 10 ++++++++++ 3 files changed, 59 insertions(+) create mode 100644 tools/mpfr/Makefile create mode 100644 tools/mpfr/patches/001-only_src.patch create mode 100644 tools/mpfr/patches/100-freebsd-compat.patch (limited to 'tools/mpfr') diff --git a/tools/mpfr/Makefile b/tools/mpfr/Makefile new file mode 100644 index 0000000..16624a7 --- /dev/null +++ b/tools/mpfr/Makefile @@ -0,0 +1,27 @@ +# +# Copyright (C) 2009-2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=mpfr +PKG_VERSION:=3.1.3 + +PKG_SOURCE_URL:=http://www.mpfr.org/mpfr-$(PKG_VERSION) \ + @GNU/mpfr +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_MD5SUM:=5fdfa3cfa5c86514ee4a241a1affa138 + +HOST_BUILD_PARALLEL:=1 +HOST_FIXUP:=autoreconf + +include $(INCLUDE_DIR)/host-build.mk + +HOST_CONFIGURE_ARGS += \ + --enable-static \ + --disable-shared \ + --with-gmp=$(STAGING_DIR_HOST) + +$(eval $(call HostBuild)) diff --git a/tools/mpfr/patches/001-only_src.patch b/tools/mpfr/patches/001-only_src.patch new file mode 100644 index 0000000..4a07cb9 --- /dev/null +++ b/tools/mpfr/patches/001-only_src.patch @@ -0,0 +1,22 @@ +--- a/Makefile.am ++++ b/Makefile.am +@@ -18,7 +18,7 @@ + # old Automake version. + ACLOCAL_AMFLAGS = -I m4 + +-SUBDIRS = doc src tests tune ++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 \ +--- a/Makefile.in ++++ b/Makefile.in +@@ -377,7 +377,7 @@ top_builddir = @top_builddir@ + # 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 = src + 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 diff --git a/tools/mpfr/patches/100-freebsd-compat.patch b/tools/mpfr/patches/100-freebsd-compat.patch new file mode 100644 index 0000000..fa28a67 --- /dev/null +++ b/tools/mpfr/patches/100-freebsd-compat.patch @@ -0,0 +1,10 @@ +--- a/src/vasprintf.c ++++ b/src/vasprintf.c +@@ -42,6 +42,7 @@ http://www.gnu.org/licenses/ or write to + #endif /* HAVE_VA_COPY */ + + #ifdef HAVE_WCHAR_H ++#include + #include + #endif + -- cgit v1.2.3