change fixup method and fix CFLAGS handling
[lede.git] / package / libs / cyassl / Makefile
1 #
2 # Copyright (C) 2006-2013 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:=2.8.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:=7465d4815af90eff01095fa1b031ce09
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libcyassl
25   SECTION:=libs
26   SUBMENU:=SSL
27   CATEGORY:=Libraries
28   TITLE:=CyaSSL library
29   URL:=http://www.yassl.com/
30 endef
31
32 define Package/libcyassl/description
33 CyaSSL is an SSL library optimized for small footprint, both on disk and for
34 memory use.
35 endef
36
37 TARGET_CFLAGS += $(FPIC)
38
39 CONFIGURE_ARGS += \
40         --without-zlib \
41         --enable-singlethreaded \
42         --disable-examples
43
44 define Build/InstallDev
45         $(INSTALL_DIR) $(1)/usr/include
46         $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
47
48         $(INSTALL_DIR) $(1)/usr/lib
49         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcyassl.{so*,la} $(1)/usr/lib/
50 endef
51
52 define Package/libcyassl/install
53         $(INSTALL_DIR) $(1)/usr/lib
54         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcyassl.so* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libcyassl))