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.

42 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libwslay
  3. PKG_VERSION:=1.1.1
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=release-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/tatsuhiro-t/wslay/tar.gz/release-$(PKG_VERSION)?
  7. PKG_HASH:=7b9f4b9df09adaa6e07ec309b68ab376c0db2cfd916613023b52a47adfda224a
  8. PKG_BUILD_DIR:=$(BUILD_DIR)/wslay-release-$(PKG_VERSION)
  9. PKG_MAINTAINER:=James Taylor <james@jtaylor.id.au>
  10. PKG_LICENSE:=MIT
  11. PKG_LICENSE_FILES:=COPYING
  12. CMAKE_INSTALL:=1
  13. PKG_BUILD_PARALLEL:=1
  14. include $(INCLUDE_DIR)/package.mk
  15. include $(INCLUDE_DIR)/cmake.mk
  16. define Package/libwslay
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=Wslay is a WebSocket library written in C
  20. URL:=https://tatsuhiro-t.github.io/wslay/
  21. BUILDONLY:=1
  22. endef
  23. define Package/libwslay/description
  24. Wslay is a WebSocket library written in C. It implements the protocol version 13 described
  25. in RFC 6455. This library offers 2 levels of API: event-based API and frame-based low-level
  26. API. For event-based API, it is suitable for non-blocking reactor pattern style. You can set
  27. callbacks in various events. For frame-based API, you can send WebSocket frame directly.
  28. Wslay only supports data transfer part of WebSocket protocol and does not perform opening
  29. handshake in HTTP.
  30. endef
  31. CMAKE_OPTIONS += \
  32. -DCMAKE_POSITION_INDEPENDENT_CODE=ON
  33. $(eval $(call BuildPackage,libwslay))