Skip to contentSkip to conversation

mpir: new package

PATCH New Semyon Kolganov 2 participants 2 messages Apr 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mpir: new package

---
Changes between v1 and v2:
- removed host variant
- added package to DEVELOPERS

---
 DEVELOPERS             |  1 +
 package/Config.in      |  1 +
 package/mpir/Config.in |  8 ++++++++
 package/mpir/mpir.hash |  2 ++
 package/mpir/mpir.mk   | 16 ++++++++++++++++
 5 files changed, 28 insertions(+)
 create mode 100644 package/mpir/Config.in
 create mode 100644 package/mpir/mpir.hash
 create mode 100644 package/mpir/mpir.mk
DEVELOPERS +1 -0
index a7e1849..1f42e6e 100644
@@ -1418,6 +1418,7 @@ F:	package/yaml-cpp/
 N:	Semyon Kolganov <[email protected]>
 F:	package/fmt/
 F:	package/libbson/
+F:	package/mpir/
 
 N:	Sergio Prado <[email protected]>
 F:	package/libgdiplus/
package/Config.in +1 -0
index 3683578..0866c13 100644
@@ -1405,6 +1405,7 @@ endif
 	source "package/mpc/Config.in"
 	source "package/mpdecimal/Config.in"
 	source "package/mpfr/Config.in"
+	source "package/mpir/Config.in"
 	source "package/msgpack/Config.in"
 	source "package/mtdev2tuio/Config.in"
 	source "package/musl-compat-headers/Config.in"
package/mpir/Config.in new file +8 -0
new file mode 100644
index 0000000..acd448c
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_MPIR
+	bool "mpir"
+	select BR2_PACKAGE_GMP
+	help
+	  MPIR is a highly optimised library for bignum arithmetic forked 
+	  from the GMP bignum library.
+
+	  http://www.mpir.org/
package/mpir/mpir.hash new file +2 -0
new file mode 100644
index 0000000..8320337
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256	52f63459cf3f9478859de29e00357f004050ead70b45913f2c2269d9708675bb	mpir-3.0.0.tar.bz2
package/mpir/mpir.mk new file +16 -0
new file mode 100644
index 0000000..9b15a0c
@@ -0,0 +1,16 @@
+################################################################################
+#
+# mpir
+#
+################################################################################
+
+MPIR_VERSION = 3.0.0
+MPIR_SITE = http://www.mpir.org
+MPIR_SOURCE = mpir-$(MPIR_VERSION).tar.bz2
+MPIR_LICENSE = LGPL-3.0+
+MPIR_LICENSE_FILES = COPYING.LIB
+MPIR_INSTALL_STAGING = YES
+MPIR_DEPENDENCIES = gmp
+MPIR_MAKE_OPTS = RANLIB=$(TARGET_RANLIB)
+
+$(eval $(autotools-package))
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/1 mpir: new package

Hello,

package/mpir/Config.in line 5

Quoted 1 line · Semyon Kolganov
package/mpir/Config.in new file +1 -0
+	  MPIR is a highly optimised library for bignum arithmetic forked 

This line had a trailing slash, and was too long, so I rewrapped the Config.in help text.

Quoted 1 line

+MPIR_DEPENDENCIES = gmp

A dependency on host-yasm was missing, so I've added it here. Otherwise, the build fails if yasm is not installed on your system.

Quoted 1 line

+MPIR_MAKE_OPTS = RANLIB=$(TARGET_RANLIB)

Everything build successfully without this line for me, so I dropped it. Let me know which problem it solved for you.

I've applied after fixing the above issues.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com