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.

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