2 # Copyright (C) 2022 Siger Yang <siger.yang@outlook.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Siger Yang
<siger.yang@outlook.com
>
15 PKG_MIRROR_HASH
:=45bce9d3400f4c689d07ab3326610c2987424375dc575417eaafc6e5261b6009
16 PKG_SOURCE_URL
:=https
://github.com
/wahern
/cqueues.git
17 PKG_SOURCE_VERSION
:=rel-
$(PKG_VERSION
)
21 PKG_LICENSE_FILES
:=LICENSE
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/cqueues
32 URL
:=http
://25thandclement.com
/~william
/projects
/cqueues.html
33 DEPENDS
:=+liblua
+libopenssl
36 define Package
/cqueues
/description
37 Continuation Queues
: Embeddable asynchronous networking
, threading
, and
38 notification framework for Lua on Unix.
41 TARGET_CFLAGS
+= $(FPIC
)
42 TARGET_LDFLAGS
+= $(FPIC
)
46 lua51cpath
="/usr/lib/lua" \
47 lua51path
="/usr/lib/lua"
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
/
54 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/lua
/cqueues
$(1)/usr
/lib
/lua
/
57 $(eval
$(call BuildPackage
,cqueues
))