2 # Copyright (C) 2011 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
)-gpl.tgz
15 PKG_SOURCE_URL
:=http
://polarssl.org
/code
/releases
16 PKG_MD5SUM
:=f23fc73b0c5ef1c51294c20f3ea0dcb0
18 include $(INCLUDE_DIR
)/package.mk
19 include $(INCLUDE_DIR
)/cmake.mk
21 define Package
/polarssl
/Default
24 URL
:=http
://polarssl.org
/
27 define Package
/polarssl
/Default
/description
28 The aim of the PolarSSL project is to provide a quality
, open-source
29 cryptographic library written in C and targeted at embedded systems.
32 define Package
/libpolarssl
33 $(call Package
/polarssl
/Default
)
39 define Package
/libpolarssl
/description
40 $(call Package
/polarssl
/Default
/description
)
41 This package contains the PolarSSL library.
44 define Package
/polarssl-progs
45 $(call Package
/polarssl
/Default
)
52 define Package
/polarssl-progs
/description
53 $(call Package
/polarssl
/Default
/description
)
54 This package contains the PolarSSL programs.
60 -DCMAKE_BUILD_TYPE
:String
="Release" \
61 -DUSE_SHARED_POLARSSL_LIBRARY
:Bool
=ON \
63 define Build
/InstallDev
64 $(INSTALL_DIR
) $(1)/usr
/include
65 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/polarssl
$(1)/usr
/include/
66 $(INSTALL_DIR
) $(1)/usr
/lib
67 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpolarssl.so
* $(1)/usr
/lib
/
70 define Package
/libpolarssl
/install
71 $(INSTALL_DIR
) $(1)/usr
/lib
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libpolarssl.so
* $(1)/usr
/lib
/
75 define Package
/polarssl-progs
/install
76 $(INSTALL_DIR
) $(1)/usr
/bin
77 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
80 $(eval
$(call BuildPackage
,libpolarssl
))
81 $(eval
$(call BuildPackage
,polarssl-progs
))