Merge pull request #4708 from commodo/python-cffi-fix
[feed/packages.git] / lang / lua-copas / Makefile
1 #
2 # Copyright (C) 2009-2013 OpenWrt.org
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:=lua-copas
11 PKG_VERSION:=2.0.0
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
14 PKG_LICENSE:=MIT
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_MIRROR_HASH:=a47a8b5f6c1cf0d9fff4770a28bf7a3efdd8f37415dde8e02528f3e63f8a7899
18 PKG_SOURCE_URL:=https://github.com/keplerproject/copas.git
19 PKG_SOURCE_PROTO:=git
20 PKG_SOURCE_VERSION:=f39a80add9f7c010ac979297652bbaaea0360a27
21 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
22
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/lua-copas
28 SUBMENU:=Lua
29 SECTION:=lang
30 CATEGORY:=Languages
31 TITLE:=Lua-Copas
32 URL:=https://github.com/keplerproject/copas
33 DEPENDS:=+lua
34 endef
35
36 define Package/lua-copas/description
37 Copas is a dispatcher based on coroutines that can be used by TCP/IP servers.
38 endef
39
40 define Build/Configure
41 endef
42
43 define Build/Compile
44 $(MAKE) -C $(PKG_BUILD_DIR) \
45 T="$(BUILD_VARIANT)" \
46 PREFIX="$(PKG_INSTALL_DIR)/usr" \
47 install
48 endef
49
50 # add make variable overrides here
51 MAKE_FLAGS +=
52
53 define Package/lua-copas/install
54 $(INSTALL_DIR) $(1)/usr/lib/lua
55 $(INSTALL_DIR) $(1)/usr/lib/lua/copas
56 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas.lua $(1)/usr/lib/lua
57 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/ftp.lua $(1)/usr/lib/lua/copas
58 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/smtp.lua $(1)/usr/lib/lua/copas
59 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/http.lua $(1)/usr/lib/lua/copas
60 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/limit.lua $(1)/usr/lib/lua/copas
61 endef
62
63 $(eval $(call BuildPackage,lua-copas))