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.

47 lines
1.1 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:=lpeg
  9. PKG_VERSION:=1.0.2
  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:=http://www.inf.puc-rio.br/~roberto/lpeg/
  15. PKG_HASH:=48d66576051b6c78388faad09b70493093264588fcd0f258ddaab1cdd4a15ffe
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/lpeg
  18. SUBMENU:=Lua
  19. SECTION:=lang
  20. CATEGORY:=Languages
  21. TITLE:=LPeg
  22. URL:=http://www.inf.puc-rio.br/~roberto/lpeg/
  23. DEPENDS:=+lua
  24. endef
  25. define Package/lpeg/description
  26. LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs)
  27. endef
  28. define Build/Configure
  29. endef
  30. # add make variable overrides here
  31. MAKE_FLAGS += \
  32. COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -O2"
  33. define Package/lpeg/install
  34. $(INSTALL_DIR) $(1)/usr/lib/lua
  35. $(INSTALL_BIN) $(PKG_BUILD_DIR)/lpeg.so $(1)/usr/lib/lua
  36. endef
  37. $(eval $(call BuildPackage,lpeg))