source: packages/libs/cyassl/Makefile @ 17622

Last change on this file since 17622 was 17622, checked in by florian, 7 years ago

[package] update cyassl to 1.1.0 (#5782)

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