summaryrefslogtreecommitdiff
path: root/package/mbedtls
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-02-19 14:48:55 -0600
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-19 14:49:04 -0600
commitaf1bf1cfba15f891eb6677e046116d5a4420aacb (patch)
tree8e1ed20beb143849e689327eb5ab8778a04c73a0 /package/mbedtls
parent1fca0943f320acd845ae610b4030cbb4aa6a3ac0 (diff)
rename polarssl to mbedtls, update to latest
Diffstat (limited to 'package/mbedtls')
-rw-r--r--package/mbedtls/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/mbedtls/Makefile b/package/mbedtls/Makefile
new file mode 100644
index 000000000..db88c8e0f
--- /dev/null
+++ b/package/mbedtls/Makefile
@@ -0,0 +1,33 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:= mbedtls
+PKG_VERSION:= 1.3.10
+PKG_RELEASE:= 1
+PKG_HASH:= bf981c989b4fddbda4c6ab448623c2f6f928a6c3ab1b0c0295084dae0f63e854
+PKG_DESCR:= embedded ssl/tls library
+PKG_SECTION:= libs/crypto
+PKG_URL:= https://polarssl.org/
+PKG_SITES:= https://github.com/polarssl/polarssl/archive/
+PKG_LIBNAME:= libmbedtls
+PKG_OPTS:= dev
+
+DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
+WRKDIST= $(WRKDIR)/polarssl-$(PKG_NAME)-$(PKG_VERSION)
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIBMBEDTLS,libmbedtls,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
+
+CONFIG_STYLE:= manual
+ALL_TARGET:= lib
+TARGET_CFLAGS+= -DSHARED
+
+libpolarssl-install:
+ $(INSTALL_DIR) $(IDIR_LIBMBEDTLS)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libpolarssl.so* \
+ $(IDIR_LIBMBEDTLS)/usr/lib
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk