Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=cyassl
  9. PKG_VERSION:=1.4.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
  12. PKG_SOURCE_URL:=http://www.yassl.com/
  13. PKG_MD5SUM:=037397c7df84b9a12e614bf46135df1c
  14. PKG_FIXUP:=libtool
  15. PKG_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libcyassl
  19. SECTION:=libs
  20. SUBMENU:=SSL
  21. CATEGORY:=Libraries
  22. TITLE:=CyaSSL library
  23. URL:=http://www.yassl.com/
  24. endef
  25. define Package/libcyassl/description
  26. CyaSSL is an SSL library optimized for small footprint, both on disk and for
  27. memory use.
  28. endef
  29. TARGET_CFLAGS += $(FPIC)
  30. CONFIGURE_ARGS += \
  31. --without-zlib \
  32. --enable-singleThreaded
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcyassl.{a,so*,la} $(1)/usr/lib/
  38. endef
  39. define Package/libcyassl/install
  40. $(INSTALL_DIR) $(1)/usr/lib
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcyassl.so* $(1)/usr/lib/
  42. endef
  43. $(eval $(call BuildPackage,libcyassl))