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.

63 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=librsocket-cpp
  3. PKG_SOURCE_DATE:=2019-06-11
  4. PKG_SOURCE_VERSION:=741f817fd519e0610cddb5783aae812355e19435
  5. PKG_RELEASE:=1
  6. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
  7. PKG_SOURCE_URL:=https://codeload.github.com/rsocket/rsocket-cpp/tar.gz/$(PKG_SOURCE_VERSION)?
  8. PKG_HASH:=56886deba0f3594b4a430b1f515c90a138800b8e387440e6b8bf728d660f457a
  9. PKG_BUILD_DIR:=$(BUILD_DIR)/rsocket-cpp-$(PKG_SOURCE_VERSION)
  10. PKG_MAINTAINER:=Amol Bhave <ambhave@fb.com>
  11. PKG_LICENSE:=Apache-2.0
  12. PKG_LICENSE_FILES:=LICENSE
  13. PKG_BUILD_PARALLEL:=1
  14. CMAKE_BINARY_SUBDIR:=builddir
  15. CMAKE_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. define Package/librsocket-cpp
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=C++ implementation of RSocket
  22. DEPENDS:=+libyarpl
  23. endef
  24. define Package/libyarpl
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=yarpl: Yet Another Reactive Programming Library
  28. DEPENDS:=+libfolly
  29. endef
  30. define Package/librsocket-cpp/description
  31. C++ implementation of RSocket, and Application protocol providing Reactive Streams semantics
  32. endef
  33. define Package/libyarpl/description
  34. C++ implementation of reactive functional programming including both Observable and Flowable types.
  35. endef
  36. CMAKE_OPTIONS += \
  37. -DBUILD_BENCHMARKS=OFF \
  38. -DBUILD_EXAMPLES=OFF \
  39. -DBUILD_TESTS=OFF \
  40. -DBUILD_SHARED_LIBS=ON
  41. define Package/librsocket-cpp/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libReactiveSocket.so* $(1)/usr/lib/
  44. endef
  45. define Package/libyarpl/install
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyarpl*.so* $(1)/usr/lib/
  48. endef
  49. $(eval $(call BuildPackage,librsocket-cpp))
  50. $(eval $(call BuildPackage,libyarpl))