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.

43 lines
1.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libwangle
  3. PKG_VERSION:=2019.06.10.00
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/facebook/wangle/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=3721c003aa5fce889699b0301705eced7a0ea4ab2e7e12af543dab3493ba8be9
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/wangle-$(PKG_VERSION)
  9. PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
  10. PKG_LICENSE:=Apache-2.0
  11. PKG_LICENSE_FILES:=LICENSE
  12. PKG_BUILD_PARALLEL:=1
  13. CMAKE_SOURCE_SUBDIR:=wangle
  14. CMAKE_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/cmake.mk
  17. define Package/libwangle
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=Wangle: C++ networking library
  21. DEPENDS:=+libfizz
  22. endef
  23. define Package/libwangle/description
  24. Wangle is a framework providing a set of common client/server abstractions for building services in a consistent, modular, and composable way.
  25. This package includes the shared library.
  26. endef
  27. CMAKE_OPTIONS:= \
  28. -DBUILD_SHARED_LIBS=ON
  29. define Package/libwangle/install
  30. $(INSTALL_DIR) $(1)/usr/lib
  31. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwangle.so* $(1)/usr/lib/
  32. endef
  33. $(eval $(call BuildPackage,libwangle))