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.

61 lines
1.7 KiB

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