haproxy: update to v2.6.10
[feed/packages.git] / lang / cqueues / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=cqueues
11 PKG_VERSION:=20200726
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Siger Yang <siger.yang@outlook.com>
14
15 PKG_MIRROR_HASH:=45bce9d3400f4c689d07ab3326610c2987424375dc575417eaafc6e5261b6009
16 PKG_SOURCE_URL:=https://github.com/wahern/cqueues.git
17 PKG_SOURCE_VERSION:=rel-$(PKG_VERSION)
18 PKG_SOURCE_PROTO:=git
19
20 PKG_LICENSE:=MIT
21 PKG_LICENSE_FILES:=LICENSE
22
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/cqueues
28 SUBMENU:=Lua
29 SECTION:=lang
30 CATEGORY:=Languages
31 TITLE:=lua cqueues
32 URL:=http://25thandclement.com/~william/projects/cqueues.html
33 DEPENDS:=+liblua +libopenssl
34 endef
35
36 define Package/cqueues/description
37 Continuation Queues: Embeddable asynchronous networking, threading, and
38 notification framework for Lua on Unix.
39 endef
40
41 TARGET_CFLAGS += $(FPIC)
42 TARGET_LDFLAGS += $(FPIC)
43
44 MAKE_FLAGS += \
45 LUA_APIS="5.1" \
46 lua51cpath="/usr/lib/lua" \
47 lua51path="/usr/lib/lua"
48
49 define Package/cqueues/install
50 $(INSTALL_DIR) $(1)/usr/lib/lua
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lua/_cqueues.so $(1)/usr/lib/lua/
52 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lua/cqueues.lua $(1)/usr/lib/lua/
53
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lua/cqueues $(1)/usr/lib/lua/
55 endef
56
57 $(eval $(call BuildPackage,cqueues))