Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] libtommath: new package
@ 2016-04-01  8:07 Francois Perrad
  2016-04-01  8:07 ` [Buildroot] [PATCH 2/3] libtomcrypt: " Francois Perrad
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Francois Perrad @ 2016-04-01  8:07 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
---
 package/Config.in                |  1 +
 package/libtommath/Config.in     |  7 +++++++
 package/libtommath/libtommath.mk | 21 +++++++++++++++++++++
 3 files changed, 29 insertions(+)
 create mode 100644 package/libtommath/Config.in
 create mode 100644 package/libtommath/libtommath.mk

diff --git a/package/Config.in b/package/Config.in
index 7b23519..84df812 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1233,6 +1233,7 @@ menu "Other"
 	source "package/libsigc/Config.in"
 	source "package/libsigsegv/Config.in"
 	source "package/libtasn1/Config.in"
+	source "package/libtommath/Config.in"
 	source "package/libtpl/Config.in"
 	source "package/libubox/Config.in"
 	source "package/libuci/Config.in"
diff --git a/package/libtommath/Config.in b/package/libtommath/Config.in
new file mode 100644
index 0000000..b2ffc72
--- /dev/null
+++ b/package/libtommath/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LIBTOMMATH
+	bool "libtommath"
+	help
+	  LibTomMath is a free open source portable number theoretic
+	  multiple-precision integer library written entirely in C.
+
+	  http://www.libtom.net
diff --git a/package/libtommath/libtommath.mk b/package/libtommath/libtommath.mk
new file mode 100644
index 0000000..44f21ff
--- /dev/null
+++ b/package/libtommath/libtommath.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# libtommath
+#
+################################################################################
+
+LIBTOMMATH_VERSION = v1.0
+LIBTOMMATH_SITE = $(call github,libtom,libtommath,$(LIBTOMMATH_VERSION))
+LIBTOMMATH_LICENSE = WTFPL
+LIBTOMMATH_LICENSE_FILES = LICENSE
+LIBTOMMATH_INSTALL_STAGING = YES
+
+define LIBTOMMATH_BUILD_CMDS
+	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) CFLAGS="-I./ $(TARGET_CFLAGS)"
+endef
+
+define LIBTOMMATH_INSTALL_STAGING_CMDS
+	$(MAKE) -C $(@D) DESTDIR="$(STAGING_DIR)" install
+endef
+
+$(eval $(generic-package))
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-04-01 10:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-01  8:07 [Buildroot] [PATCH 1/3] libtommath: new package Francois Perrad
2016-04-01  8:07 ` [Buildroot] [PATCH 2/3] libtomcrypt: " Francois Perrad
2016-04-01  8:07 ` [Buildroot] [PATCH 3/3] dropbear: use libtomath & libtomcrypt Francois Perrad
2016-04-01  8:42   ` Baruch Siach
2016-04-01  9:14     ` François Perrad
2016-04-01  8:19 ` [Buildroot] [PATCH 1/3] libtommath: new package Yegor Yefremov
2016-04-01  9:11   ` François Perrad
2016-04-01 10:17     ` Yegor Yefremov
2016-04-01 10:21     ` Vicente Olivert Riera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox