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.

41 lines
1.3 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libwslay
  3. PKG_VERSION:=1.1.1
  4. PKG_RELEASE:=$(AUTORELEASE)
  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:=Peter van Dijk <peter.van.dijk@powerdns.com>
  10. PKG_LICENSE:=MIT
  11. PKG_LICENSE_FILES:=COPYING
  12. CMAKE_INSTALL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. include $(INCLUDE_DIR)/cmake.mk
  15. define Package/libwslay
  16. SECTION:=libs
  17. CATEGORY:=Libraries
  18. TITLE:=Wslay is a WebSocket library written in C
  19. URL:=https://tatsuhiro-t.github.io/wslay/
  20. BUILDONLY:=1
  21. endef
  22. define Package/libwslay/description
  23. Wslay is a WebSocket library written in C. It implements the protocol version 13 described
  24. in RFC 6455. This library offers 2 levels of API: event-based API and frame-based low-level
  25. API. For event-based API, it is suitable for non-blocking reactor pattern style. You can set
  26. callbacks in various events. For frame-based API, you can send WebSocket frame directly.
  27. Wslay only supports data transfer part of WebSocket protocol and does not perform opening
  28. handshake in HTTP.
  29. endef
  30. CMAKE_OPTIONS += \
  31. -DCMAKE_POSITION_INDEPENDENT_CODE=ON
  32. $(eval $(call BuildPackage,libwslay))