2 # Copyright (C) 2011-2013 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
://polarssl.org
/code
/releases
17 PKG_MD5SUM
:=b656e4c83ee94f93d19eb0832fd7f976
19 include $(INCLUDE_DIR
)/package.mk
20 include $(INCLUDE_DIR
)/cmake.mk
22 define Package
/polarssl
/Default
25 URL
:=http
://polarssl.org
/
28 define Package
/polarssl
/Default
/description
29 The aim of the PolarSSL project is to provide a quality
, open-source
30 cryptographic library written in C and targeted at embedded systems.
33 define Package
/libpolarssl
34 $(call Package
/polarssl
/Default
)
38 ABI_VERSION
:=$(PKG_VERSION
)
41 define Package
/libpolarssl
/description
42 $(call Package
/polarssl
/Default
/description
)
43 This package contains the PolarSSL library.
49 -DCMAKE_BUILD_TYPE
:String
="Release" \
50 -DUSE_SHARED_POLARSSL_LIBRARY
:Bool
=ON \
51 -DENABLE_TESTING
:Bool
=OFF \
53 define Build
/InstallDev
54 $(INSTALL_DIR
) $(1)/usr
/include
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/polarssl
$(1)/usr
/include/
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpolarssl.so
* $(1)/usr
/lib
/
60 define Package
/libpolarssl
/install
61 $(INSTALL_DIR
) $(1)/usr
/lib
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpolarssl.so
* $(1)/usr
/lib
/
65 $(eval
$(call BuildPackage
,libpolarssl
))