1
0

Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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_HASH:=6aad270b91d1b1c6fd75f68e162329a04a644e50e917d55f46cc8384b7120004
  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))