2008-12-12 14:54:26 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=cyassl
|
2009-11-07 10:26:14 +00:00
|
|
|
PKG_VERSION:=1.2.0
|
2008-12-12 14:54:26 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
|
|
|
|
PKG_SOURCE_URL:=http://www.yassl.com/
|
2009-11-07 10:26:14 +00:00
|
|
|
PKG_MD5SUM:=de12e76b3faf760107e45af487adcbde
|
2008-12-12 14:54:26 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/cyassl/Default
|
|
|
|
TITLE:=CyaSSL
|
|
|
|
URL:=http://www.yassl.com/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcyassl
|
|
|
|
$(call Package/cyassl/Default)
|
|
|
|
SECTION:=libs
|
2009-05-26 15:04:50 +00:00
|
|
|
SUBMENU:=SSL
|
2008-12-12 14:54:26 +00:00
|
|
|
CATEGORY:=Libraries
|
|
|
|
DEPENDS:=+zlib
|
|
|
|
TITLE+= (library)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcyassl/description
|
|
|
|
CyaSSL is an SSL library optimized for small footprint, both on disk and for memory use.
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--with-zlib="$(STAGING_DIR)/usr"
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include/ctaocrypt
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/ctaocrypt/include/*.h $(1)/usr/include/ctaocrypt
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/.libs/libcyassl.{a,so*} $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/libcyassl.la $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libcyassl/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/.libs/libcyassl.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libcyassl))
|