2158bb1028453381788cf9bf62c147d3033a4533
[openwrt/svn-archive/archive.git] / libs / cyassl / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=cyassl
11 PKG_VERSION:=1.3.0
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
15 PKG_SOURCE_URL:=http://www.yassl.com/
16 PKG_MD5SUM:=f8b6cdcc2c299c66c74b7e4305745350
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libcyassl
23 SECTION:=libs
24 SUBMENU:=SSL
25 CATEGORY:=Libraries
26 DEPENDS:=+zlib
27 TITLE:=CyaSSL library
28 URL:=http://www.yassl.com/
29 endef
30
31 define Package/libcyassl/description
32 CyaSSL is an SSL library optimized for small footprint, both on disk and for
33 memory use.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 CONFIGURE_ARGS += \
39 --with-zlib="$(STAGING_DIR)/usr"
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include/ctaocrypt
43 $(CP) $(PKG_BUILD_DIR)/ctaocrypt/include/*.h $(1)/usr/include/ctaocrypt
44
45 $(INSTALL_DIR) $(1)/usr/lib
46 $(CP) $(PKG_BUILD_DIR)/src/.libs/libcyassl.{a,so*} $(1)/usr/lib/
47 $(CP) $(PKG_BUILD_DIR)/src/libcyassl.la $(1)/usr/lib/
48 endef
49
50 define Package/libcyassl/install
51 $(INSTALL_DIR) $(1)/usr/lib
52 $(CP) $(PKG_BUILD_DIR)/src/.libs/libcyassl.so* $(1)/usr/lib/
53 endef
54
55 $(eval $(call BuildPackage,libcyassl))