Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package: add polarssl library support
@ 2011-10-12 16:13 Jean-Christophe PLAGNIOL-VILLARD
  2011-10-12 21:16 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-10-12 16:13 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 package/Config.in            |    1 +
 package/polarssl/Config.in   |    6 ++++++
 package/polarssl/polarssl.mk |   29 +++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 0 deletions(-)
 create mode 100644 package/polarssl/Config.in
 create mode 100644 package/polarssl/polarssl.mk

diff --git a/package/Config.in b/package/Config.in
index 7dc8887..b8da8e3 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -257,6 +257,7 @@ source "package/libgcrypt/Config.in"
 source "package/libgpg-error/Config.in"
 source "package/libnss/Config.in"
 source "package/openssl/Config.in"
+source "package/polarssl/Config.in"
 endmenu
 
 menu "Database"
diff --git a/package/polarssl/Config.in b/package/polarssl/Config.in
new file mode 100644
index 0000000..b61b447
--- /dev/null
+++ b/package/polarssl/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_POLARSSL
+	bool "polarssl"
+	help
+	  PolarSSL library - Crypto and SSL made easy
+
+	  http://polarssl.org/
diff --git a/package/polarssl/polarssl.mk b/package/polarssl/polarssl.mk
new file mode 100644
index 0000000..915c5c3
--- /dev/null
+++ b/package/polarssl/polarssl.mk
@@ -0,0 +1,29 @@
+#############################################################
+#
+# polarssl
+#
+#############################################################
+POLARSSL_VERSION:=1.0.0
+POLARSSL_SOURCE = polarssl-$(POLARSSL_VERSION)-gpl.tgz
+POLARSSL_SITE = http://polarssl.org/code/releases/
+POLARSSL_INSTALL_STAGING = YES
+
+define POLARSSL_CONFIGURE_CMDS
+	true
+endef
+
+define POLARSSL_BUILD_CMDS
+	AR="$(TARGET_AR)" CC="$(TARGET_CC)" $(MAKE) -C $(@D)/library all
+endef
+
+define POLARSSL_INSTALL_STAGING_CMDS
+	install -d $(STAGING_DIR)/usr/include/polarssl
+	install -D -m 755 $(@D)/include/polarssl/*.h $(STAGING_DIR)/usr/include/polarssl/
+	install -D -m 644 $(@D)/library/libpolarssl.* $(STAGING_DIR)/usr/lib
+endef
+
+define POLARSSL_INSTALL_TARGET_CMDS
+	install -D -m 644 $(@D)/library/libpolarssl.* $(TARGET_DIR)/usr/lib
+endef
+
+$(eval $(call AUTOTARGETS,package,polarssl))
-- 
1.7.6.3

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

end of thread, other threads:[~2011-10-13 22:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-12 16:13 [Buildroot] [PATCH] package: add polarssl library support Jean-Christophe PLAGNIOL-VILLARD
2011-10-12 21:16 ` Thomas Petazzoni
2011-10-13 22:45   ` Arnout Vandecappelle

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