X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=libs%2Fcyassl%2FMakefile;fp=libs%2Fcyassl%2FMakefile;h=5d712000f3939e5391b0e5ad83bbab9bd0f0bb26;hb=683f436139d71c39e390a9c28ea73bb74d12ff33;hp=0000000000000000000000000000000000000000;hpb=d8232d1e79c39478926533bfacd1f49f2d43696f;p=packages.git diff --git a/libs/cyassl/Makefile b/libs/cyassl/Makefile new file mode 100644 index 000000000..5d712000f --- /dev/null +++ b/libs/cyassl/Makefile @@ -0,0 +1,58 @@ +# +# Copyright (C) 2008 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id: $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=cyassl +PKG_VERSION:=0.9.9 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip +PKG_SOURCE_URL:=http://www.yassl.com/ +PKG_MD5SUM:=2fe084425e7c049d4f03ceed6b61af52 +PKG_FIXUP:=libtool + +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 + 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))