1
0

Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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:=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_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. 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))