You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.5 KiB

  1. # SPDX-License-Identifier: GPL-2.0-only
  2. #
  3. # Copyright (C) 2021 Martin Schneider <martschneider@google.com>
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=boringssl
  6. PKG_VERSION:=20210608
  7. PKG_RELEASE:=$(AUTORELEASE)
  8. PKG_SOURCE_PROTO:=git
  9. PKG_SOURCE_URL:=https://boringssl.googlesource.com/boringssl
  10. PKG_SOURCE_DATE:=2021-06-08
  11. PKG_SOURCE_VERSION:=1f54fd9864c054dc33e15b1144e2a6a19fa0a52e
  12. PKG_MIRROR_HASH:=a60c79ca40d1a73639d4c1bba3431ca630ab1d670ab06307e8442b69cfaf0cc7
  13. PKG_MAINTAINER:=Martin Schneider <martschneider@google.com>
  14. PKG_LICENSE:=OpenSSL ISC
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_BUILD_DEPENDS:=golang/host
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. include ../../lang/golang/golang-values.mk
  20. define Package/boringssl
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=An implementation of the TLS protocol
  24. URL:=https://boringssl.googlesource.com/boringssl/
  25. DEPENDS:=+libstdcpp $(GO_ARCH_DEPENDS) @!(mips||mips64)
  26. endef
  27. define Package/boringssl/description
  28. An implementation of the TLS protocol
  29. endef
  30. CMAKE_OPTIONS+=-DBUILD_SHARED_LIBS=ON
  31. define Package/boringssl/install
  32. $(INSTALL_DIR) $(1)/usr/lib/boringssl
  33. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/bin/lib{crypto,ssl}.so $(1)/usr/lib/boringssl
  34. endef
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(1)/usr/lib/boringssl
  37. $(INSTALL_DIR) $(1)/usr/include/boringssl
  38. $(CP) $(PKG_INSTALL_DIR)/usr/bin/lib{crypto,ssl}.so $(1)/usr/lib/boringssl
  39. $(CP) $(PKG_BUILD_DIR)/include/* $(1)/usr/include/boringssl
  40. endef
  41. $(eval $(call BuildPackage,boringssl))