2 # Copyright (C) 2011-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-gpl.tgz
16 PKG_SOURCE_URL
:=https
://tls.mbed.org
/download
/
17 PKG_MD5SUM
:=6b8246a19a7a77737856e729cc8a0952
22 include $(INCLUDE_DIR
)/package.mk
23 include $(INCLUDE_DIR
)/cmake.mk
25 define Package
/mbedtls
/Default
28 URL
:=https
://tls.mbed.org
31 define Package
/mbedtls
/Default
/description
32 The aim of the mbedtls project is to provide a quality
, open-source
33 cryptographic library written in C and targeted at embedded systems.
36 define Package
/libmbedtls
37 $(call Package
/mbedtls
/Default
)
41 ABI_VERSION
:=$(PKG_VERSION
)-$(PKG_RELEASE
)
44 define Package
/libmbedtls
/description
45 $(call Package
/mbedtls
/Default
/description
)
46 This package contains the mbedtls library.
52 -DCMAKE_BUILD_TYPE
:String
="Release" \
53 -DUSE_SHARED_MBEDTLS_LIBRARY
:Bool
=ON \
54 -DENABLE_TESTING
:Bool
=OFF \
55 -DENABLE_PROGRAMS
:Bool
=OFF \
57 define Build
/InstallDev
58 $(INSTALL_DIR
) $(1)/usr
/include
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/mbedtls
$(1)/usr
/include/
60 $(INSTALL_DIR
) $(1)/usr
/lib
61 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
*.so
* $(1)/usr
/lib
/
64 define Package
/libmbedtls
/install
65 $(INSTALL_DIR
) $(1)/usr
/lib
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lib
*.so
* $(1)/usr
/lib
/
69 $(eval
$(call BuildPackage
,libmbedtls
))