From c0556b2a0d585d93f0b532bf4e3e4b4705b004e8 Mon Sep 17 00:00:00 2001 From: risci_atom Date: Thu, 17 Feb 2011 03:30:16 +0000 Subject: [PATCH] git-svn-id: http://svn.librewrt.org/librewrt@121 d459f2a8-9e7c-4474-95e1-7f88c49cc8e2 --- packages/libs/mpfr/Makefile | 51 +++++++++++++++++++ packages/libs/mpfr/patches/001-no_tests.patch | 24 +++++++++ 2 files changed, 75 insertions(+) create mode 100644 packages/libs/mpfr/Makefile create mode 100644 packages/libs/mpfr/patches/001-no_tests.patch diff --git a/packages/libs/mpfr/Makefile b/packages/libs/mpfr/Makefile new file mode 100644 index 0000000..136b60c --- /dev/null +++ b/packages/libs/mpfr/Makefile @@ -0,0 +1,51 @@ +# +# Copyright (C) 2009 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:=2.4.1 + +PKG_SOURCE_URL:=http://www.mpfr.org/mpfr-$(PKG_VERSION) +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_MD5SUM:=c5ee0a8ce82ad55fe29ac57edd35d09e +PKG_FIXUP:=libtool + +include $(INCLUDE_DIR)/package.mk +PKG_INSTALL=1 +define Package/mpfr + TITLE:=mpfr + SECTION:=libs + CATEGORY:=Libraries + URL:=http://www.mpfr.org + DEPENDS:=+libgmp +endef + +CONFIGURE_ARGS += \ + --enable-static \ + --enable-shared + +define Build/InstallDev + $(INSTALL_DIR) \ + $(1)/usr/include \ + $(1)/usr/lib + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/* \ + $(1)/usr/lib/ + $(CP) \ + $(PKG_INSTALL_DIR)/usr/include/* \ + $(1)/usr/include/ +endef + +define Package/mpfr/install + $(INSTALL_DIR) \ + $(1)/usr/lib + $(CP) \ + $(PKG_INSTALL_DIR)/usr/lib/libmpfr.so* \ + $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,mpfr)) diff --git a/packages/libs/mpfr/patches/001-no_tests.patch b/packages/libs/mpfr/patches/001-no_tests.patch new file mode 100644 index 0000000..e1a6f05 --- /dev/null +++ b/packages/libs/mpfr/patches/001-no_tests.patch @@ -0,0 +1,24 @@ +diff -urN mpfr-2.4.1/Makefile.am mpfr-2.4.1.new/Makefile.am +--- mpfr-2.4.1/Makefile.am 2009-02-20 10:43:17.000000000 +0100 ++++ mpfr-2.4.1.new/Makefile.am 2009-08-20 14:59:00.000000000 +0200 +@@ -1,7 +1,7 @@ + AUTOMAKE_OPTIONS = gnu ansi2knr + ACLOCAL_AMFLAGS = -I m4 + +-SUBDIRS = tests ++SUBDIRS = + EXTRA_DIST = BUGS FAQ.html PATCHES VERSION get_patches.sh round_raw_generic.c gen_inverse.h jyn_asympt.c + + include_HEADERS = mpfr.h mpf2mpfr.h +diff -urN mpfr-2.4.1/Makefile.in mpfr-2.4.1.new/Makefile.in +--- mpfr-2.4.1/Makefile.in 2009-02-25 17:18:06.000000000 +0100 ++++ mpfr-2.4.1.new/Makefile.in 2009-08-20 14:58:32.000000000 +0200 +@@ -295,7 +295,7 @@ + top_srcdir = @top_srcdir@ + AUTOMAKE_OPTIONS = gnu ansi2knr + ACLOCAL_AMFLAGS = -I m4 +-SUBDIRS = tests ++SUBDIRS = + EXTRA_DIST = BUGS FAQ.html PATCHES VERSION get_patches.sh round_raw_generic.c gen_inverse.h jyn_asympt.c + include_HEADERS = mpfr.h mpf2mpfr.h + lib_LTLIBRARIES = libmpfr.la -- 2.35.1