cqueues: add cqueues(rel-20200726) to feeds
Signed-off-by: Siger Yang <siger.yang@outlook.com>
This commit is contained in:
parent
34018f1fe0
commit
4137429a25
1 changed files with 57 additions and 0 deletions
57
lang/cqueues/Makefile
Normal file
57
lang/cqueues/Makefile
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2022 Siger Yang <siger.yang@outlook.com>
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=cqueues
|
||||||
|
PKG_VERSION:=20200726
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
PKG_MAINTAINER:=Siger Yang <siger.yang@outlook.com>
|
||||||
|
|
||||||
|
PKG_MIRROR_HASH:=45bce9d3400f4c689d07ab3326610c2987424375dc575417eaafc6e5261b6009
|
||||||
|
PKG_SOURCE_URL:=https://github.com/wahern/cqueues.git
|
||||||
|
PKG_SOURCE_VERSION:=rel-$(PKG_VERSION)
|
||||||
|
PKG_SOURCE_PROTO:=git
|
||||||
|
|
||||||
|
PKG_LICENSE:=MIT
|
||||||
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define Package/cqueues
|
||||||
|
SUBMENU:=Lua
|
||||||
|
SECTION:=lang
|
||||||
|
CATEGORY:=Languages
|
||||||
|
TITLE:=lua cqueues
|
||||||
|
URL:=http://25thandclement.com/~william/projects/cqueues.html
|
||||||
|
DEPENDS:=+liblua +libopenssl
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/cqueues/description
|
||||||
|
Continuation Queues: Embeddable asynchronous networking, threading, and
|
||||||
|
notification framework for Lua on Unix.
|
||||||
|
endef
|
||||||
|
|
||||||
|
TARGET_CFLAGS += $(FPIC)
|
||||||
|
TARGET_LDFLAGS += $(FPIC)
|
||||||
|
|
||||||
|
MAKE_FLAGS += \
|
||||||
|
LUA_APIS="5.1" \
|
||||||
|
lua51cpath="/usr/lib/lua" \
|
||||||
|
lua51path="/usr/lib/lua"
|
||||||
|
|
||||||
|
define Package/cqueues/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
||||||
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lua/_cqueues.so $(1)/usr/lib/lua/
|
||||||
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lua/cqueues.lua $(1)/usr/lib/lua/
|
||||||
|
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lua/cqueues $(1)/usr/lib/lua/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,cqueues))
|
Loading…
Reference in a new issue