You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.2 KiB

  1. #
  2. # Copyright (C) 2015 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-rings
  9. PKG_VERSION:=1.3.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/rings.git
  15. PKG_SOURCE_PROTO:=git
  16. PKG_SOURCE_VERSION:=2b8a900f8b9dbde304859a3ac9d437795c3fdde3
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/lua-rings
  22. SUBMENU:=Lua
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=Lua-Rings
  26. URL:=http://keplerproject.github.io/rings/
  27. DEPENDS:=+lua
  28. endef
  29. define Package/lua-rings/description
  30. Rings is a library which provides a way to create new Lua states from within Lua.
  31. endef
  32. TARGET_CFLAGS += $(FPIC)
  33. # add make variable overrides here
  34. MAKE_FLAGS +=
  35. define Build/Configure
  36. endef
  37. define Package/lua-rings/install
  38. $(INSTALL_DIR) $(1)/usr/lib/lua
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rings.so $(1)/usr/lib/lua
  40. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/stable.lua $(1)/usr/lib/lua
  41. endef
  42. $(eval $(call BuildPackage,lua-rings))