git-svn-id: http://svn.librewrt.org/librewrt@121 d459f2a8-9e7c-4474-95e1-7f88c49cc8e2
authorrisci_atom <risci_atom@d459f2a8-9e7c-4474-95e1-7f88c49cc8e2>
Thu, 17 Feb 2011 03:30:16 +0000 (03:30 +0000)
committerrisci_atom <risci_atom@d459f2a8-9e7c-4474-95e1-7f88c49cc8e2>
Thu, 17 Feb 2011 03:30:16 +0000 (03:30 +0000)
packages/libs/mpfr/Makefile [new file with mode: 0644]
packages/libs/mpfr/patches/001-no_tests.patch [new file with mode: 0644]

diff --git a/packages/libs/mpfr/Makefile b/packages/libs/mpfr/Makefile
new file mode 100644 (file)
index 0000000..136b60c
--- /dev/null
@@ -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 (file)
index 0000000..e1a6f05
--- /dev/null
@@ -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