1
0

Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=lua-copas
  9. PKG_VERSION:=2.0.0
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
  12. PKG_LICENSE:=MIT
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=https://github.com/keplerproject/copas.git
  15. PKG_SOURCE_PROTO:=git
  16. PKG_SOURCE_VERSION:=f39a80add9f7c010ac979297652bbaaea0360a27
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/lua-copas
  21. SUBMENU:=Lua
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=Lua-Copas
  25. URL:=https://github.com/keplerproject/copas
  26. DEPENDS:=+lua
  27. endef
  28. define Package/lua-copas/description
  29. Copas is a dispatcher based on coroutines that can be used by TCP/IP servers.
  30. endef
  31. define Build/Configure
  32. endef
  33. define Build/Compile
  34. $(MAKE) -C $(PKG_BUILD_DIR) \
  35. T="$(BUILD_VARIANT)" \
  36. PREFIX="$(PKG_INSTALL_DIR)/usr" \
  37. install
  38. endef
  39. # add make variable overrides here
  40. MAKE_FLAGS +=
  41. define Package/lua-copas/install
  42. $(INSTALL_DIR) $(1)/usr/lib/lua
  43. $(INSTALL_DIR) $(1)/usr/lib/lua/copas
  44. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas.lua $(1)/usr/lib/lua
  45. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/ftp.lua $(1)/usr/lib/lua/copas
  46. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/smtp.lua $(1)/usr/lib/lua/copas
  47. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/http.lua $(1)/usr/lib/lua/copas
  48. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/limit.lua $(1)/usr/lib/lua/copas
  49. endef
  50. $(eval $(call BuildPackage,lua-copas))