2 # Copyright (C) 2006-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:=f1b2fe9087ab64d7ea40a276a3628583
18 include $(INCLUDE_DIR)/package.mk
20 define Package/polarssl/Default
23 URL:=http://polarssl.org/
26 define Package/polarssl/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/libpolarssl/description
39 $(call Package/polarssl/Default/description)
40 This package contains the PolarSSL library.
43 define Package/polarssl-progs
44 $(call Package/polarssl/Default)
51 define Package/polarssl-progs/description
52 $(call Package/polarssl/Default/description)
53 This package contains the PolarSSL programs.
58 define Build/Configure
61 TARGET_CFLAGS += $(FPIC)
62 MAKE_FLAGS += OFLAGS="$(TARGET_CFLAGS)"
64 define Build/InstallDev
65 $(INSTALL_DIR) $(1)/usr/include
66 $(CP) $(PKG_INSTALL_DIR)/include/polarssl $(1)/usr/include/
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/lib/libpolarssl.{a,so} $(1)/usr/lib/
71 define Package/libpolarssl/install
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/libpolarssl.so $(1)/usr/lib/
76 define Package/polarssl-progs/install
77 $(INSTALL_DIR) $(1)/usr/bin
78 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/polarssl_* $(1)/usr/bin/
81 $(eval $(call BuildPackage,libpolarssl))
82 $(eval $(call BuildPackage,polarssl-progs))