Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. #
  2. # Copyright (C) 2006-2016 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.8.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
  12. PKG_SOURCE_URL:=https://www.wolfssl.com/
  13. PKG_MD5SUM:=a73d90c5439adea97a5002a73b46ddeb
  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. --enable-sslv3 \
  38. --disable-examples
  39. #ifneq ($(CONFIG_TARGET_x86),)
  40. # CONFIGURE_ARGS += --enable-intelasm
  41. #endif
  42. #ifneq ($(CONFIG_TARGET_x86_64),)
  43. # CONFIGURE_ARGS += --enable-intelasm
  44. #endif
  45. define Build/InstallDev
  46. $(INSTALL_DIR) $(1)/usr/include
  47. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwolfssl.{so*,la} $(1)/usr/lib/
  50. ln -s libwolfssl.so $(1)/usr/lib/libcyassl.so
  51. ln -s libwolfssl.la $(1)/usr/lib/libcyassl.la
  52. endef
  53. define Package/libcyassl/install
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwolfssl.so* $(1)/usr/lib/
  56. ln -s libwolfssl.so $(1)/usr/lib/libcyassl.so
  57. endef
  58. $(eval $(call BuildPackage,libcyassl))