2011-03-06 16:00:07 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2009-03-06 12:59:45 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=polarssl
|
2011-05-15 08:50:38 +00:00
|
|
|
PKG_VERSION:=0.14.3
|
2010-11-13 22:28:48 +00:00
|
|
|
PKG_RELEASE:=1
|
2009-03-06 12:59:45 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-gpl.tgz
|
2011-03-06 16:00:07 +00:00
|
|
|
PKG_SOURCE_URL:=http://polarssl.org/code/releases
|
2011-05-15 08:50:38 +00:00
|
|
|
PKG_MD5SUM:=f1b2fe9087ab64d7ea40a276a3628583
|
2009-03-06 12:59:45 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/polarssl/Default
|
2009-05-26 15:04:50 +00:00
|
|
|
SUBMENU:=SSL
|
2009-03-06 12:59:45 +00:00
|
|
|
TITLE:=Embedded SSL
|
|
|
|
URL:=http://polarssl.org/
|
|
|
|
endef
|
|
|
|
|
2011-03-06 16:00:07 +00:00
|
|
|
define Package/polarssl/Default/description
|
2010-02-16 16:18:03 +00:00
|
|
|
The aim of the PolarSSL project is to provide a quality, open-source
|
|
|
|
cryptographic library written in C and targeted at embedded systems.
|
2009-03-06 12:59:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libpolarssl
|
|
|
|
$(call Package/polarssl/Default)
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+= (library)
|
|
|
|
endef
|
|
|
|
|
2011-03-06 16:00:07 +00:00
|
|
|
define Package/libpolarssl/description
|
|
|
|
$(call Package/polarssl/Default/description)
|
|
|
|
This package contains the PolarSSL library.
|
|
|
|
endef
|
|
|
|
|
2009-03-06 12:59:45 +00:00
|
|
|
define Package/polarssl-progs
|
|
|
|
$(call Package/polarssl/Default)
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+libpolarssl
|
|
|
|
TITLE+= (programs)
|
|
|
|
endef
|
|
|
|
|
2011-03-06 16:00:07 +00:00
|
|
|
define Package/polarssl-progs/description
|
|
|
|
$(call Package/polarssl/Default/description)
|
|
|
|
This package contains the PolarSSL programs.
|
|
|
|
endef
|
|
|
|
|
2010-02-16 16:18:03 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2009-03-06 12:59:45 +00:00
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
2010-02-16 16:18:03 +00:00
|
|
|
MAKE_FLAGS += OFLAGS="$(TARGET_CFLAGS)"
|
2009-03-06 12:59:45 +00:00
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2010-02-16 16:18:03 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/include/polarssl $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-02-16 16:18:03 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/lib/libpolarssl.{a,so} $(1)/usr/lib/
|
2009-03-06 12:59:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libpolarssl/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-02-16 16:18:03 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/lib/libpolarssl.so $(1)/usr/lib/
|
2009-03-06 12:59:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/polarssl-progs/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2010-02-16 16:18:03 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/polarssl_* $(1)/usr/bin/
|
2009-03-06 12:59:45 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libpolarssl))
|
|
|
|
$(eval $(call BuildPackage,polarssl-progs))
|