Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #
  2. # Copyright (C) 2006-2014 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:=wolfssl
  9. PKG_VERSION:=3.6.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
  12. PKG_SOURCE_URL:=http://www.wolfssl.com/
  13. PKG_MD5SUM:=69a6700998fdef621103983817b96fe6
  14. PKG_FIXUP:=libtool
  15. PKG_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_LICENSE:=GPL-2.0+
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libcyassl
  20. SECTION:=libs
  21. SUBMENU:=SSL
  22. CATEGORY:=Libraries
  23. TITLE:=CyaSSL library
  24. URL:=http://www.wolfssl.com/
  25. endef
  26. define Package/libcyassl/description
  27. CyaSSL is an SSL library optimized for small footprint, both on disk and for
  28. memory use.
  29. endef
  30. TARGET_CFLAGS += $(FPIC)
  31. CONFIGURE_ARGS += \
  32. --without-zlib \
  33. --enable-singlethreaded \
  34. --enable-opensslextra \
  35. --enable-sni \
  36. --enable-ecc \
  37. --disable-examples
  38. ifneq ($(CONFIG_TARGET_x86),)
  39. CONFIGURE_ARGS += --enable-intelasm
  40. endif
  41. ifneq ($(CONFIG_TARGET_x86_64),)
  42. CONFIGURE_ARGS += --enable-intelasm
  43. endif
  44. define Build/InstallDev
  45. $(INSTALL_DIR) $(1)/usr/include
  46. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwolfssl.{so*,la} $(1)/usr/lib/
  49. ln -s libwolfssl.so $(1)/usr/lib/libcyassl.so
  50. ln -s libwolfssl.la $(1)/usr/lib/libcyassl.la
  51. endef
  52. define Package/libcyassl/install
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwolfssl.so* $(1)/usr/lib/
  55. ln -s libwolfssl.so $(1)/usr/lib/libcyassl.so
  56. endef
  57. $(eval $(call BuildPackage,libcyassl))