2 # Copyright (C) 2006-2010 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
:=669a0582a27a5ec381542f0c67e966b7
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/polarssl
/Default
23 URL
:=http
://polarssl.org
/
26 define Package
/libpolarssl
/Default
/description
27 The aim of the PolarSSL project is to provide a quality
, open-source
28 cryptographic library written in C and targeted at embedded systems.
31 define Package
/libpolarssl
32 $(call Package
/polarssl
/Default
)
38 define Package
/polarssl-progs
39 $(call Package
/polarssl
/Default
)
48 define Build
/Configure
51 TARGET_CFLAGS
+= $(FPIC
)
52 MAKE_FLAGS
+= OFLAGS
="$(TARGET_CFLAGS)"
54 define Build
/InstallDev
55 $(INSTALL_DIR
) $(1)/usr
/include
56 $(CP
) $(PKG_INSTALL_DIR
)/include/polarssl
$(1)/usr
/include/
57 $(INSTALL_DIR
) $(1)/usr
/lib
58 $(CP
) $(PKG_INSTALL_DIR
)/lib
/libpolarssl.
{a
,so
} $(1)/usr
/lib
/
61 define Package
/libpolarssl
/install
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/lib
/libpolarssl.so
$(1)/usr
/lib
/
66 define Package
/polarssl-progs
/install
67 $(INSTALL_DIR
) $(1)/usr
/bin
68 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/bin
/polarssl_
* $(1)/usr
/bin
/
71 $(eval
$(call BuildPackage
,libpolarssl
))
72 $(eval
$(call BuildPackage
,polarssl-progs
))