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.

57 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2022 Siger Yang <siger.yang@outlook.com>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=cqueues
  9. PKG_VERSION:=20200726
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Siger Yang <siger.yang@outlook.com>
  12. PKG_MIRROR_HASH:=45bce9d3400f4c689d07ab3326610c2987424375dc575417eaafc6e5261b6009
  13. PKG_SOURCE_URL:=https://github.com/wahern/cqueues.git
  14. PKG_SOURCE_VERSION:=rel-$(PKG_VERSION)
  15. PKG_SOURCE_PROTO:=git
  16. PKG_LICENSE:=MIT
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/cqueues
  21. SUBMENU:=Lua
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=lua cqueues
  25. URL:=http://25thandclement.com/~william/projects/cqueues.html
  26. DEPENDS:=+liblua +libopenssl
  27. endef
  28. define Package/cqueues/description
  29. Continuation Queues: Embeddable asynchronous networking, threading, and
  30. notification framework for Lua on Unix.
  31. endef
  32. TARGET_CFLAGS += $(FPIC)
  33. TARGET_LDFLAGS += $(FPIC)
  34. MAKE_FLAGS += \
  35. LUA_APIS="5.1" \
  36. lua51cpath="/usr/lib/lua" \
  37. lua51path="/usr/lib/lua"
  38. define Package/cqueues/install
  39. $(INSTALL_DIR) $(1)/usr/lib/lua
  40. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lua/_cqueues.so $(1)/usr/lib/lua/
  41. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lua/cqueues.lua $(1)/usr/lib/lua/
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/lua/cqueues $(1)/usr/lib/lua/
  43. endef
  44. $(eval $(call BuildPackage,cqueues))