Advertisement
Guest User

Untitled

a guest
Jun 6th, 2021
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. include $(TOPDIR)/rules.mk
  2.  
  3. PKG_NAME:=bearssl
  4. PKG_VERSION:=0.6
  5. PKG_RELEASE:=1
  6.  
  7. PKG_BUILD_DIR:=$(BUILD_DIR)/bearssl-$(PKG_VERSION)
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  9. PKG_SOURCE_URL:=https://bearssl.org/
  10. PKG_HASH:=6705bba1714961b41a728dfc5debbe348d2966c117649392f8c8139efc83ff14
  11. PKG_LICENSE:=MIT
  12.  
  13. include $(INCLUDE_DIR)/package.mk
  14.  
  15. define Package/bearssl
  16. TITLE:=Bear SSL (library)
  17. URL:=https://bearssl.org
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. SUBMENU:=SSL
  21. endef
  22.  
  23. define Package/bearssl/description
  24. BearSSL is an implementation of the SSL/TLS protocol (RFC 5246) written in C.
  25. endef
  26.  
  27. define Build/Configure
  28. $(CP) ./files/openwrt.mk $(PKG_BUILD_DIR)/conf
  29. endef
  30.  
  31. define Build/Compile
  32. $(call Build/Compile/Default,CONF="openwrt")
  33. endef
  34.  
  35. TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
  36. TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib
  37.  
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include
  40. $(CP) $(PKG_BUILD_DIR)/inc/*.h $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_BUILD_DIR)/build/libbearssl.a $(1)/usr/lib/
  43. endef
  44.  
  45. $(eval $(call BuildPackage,bearssl))
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement