2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
13 PKG_MAINTAINER
:=Dirk Chang
<dirk@kooiot.com
>
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=http
://www.inf.puc-rio.br
/~roberto
/lpeg
/
18 PKG_HASH
:=48d66576051b6c78388faad09b70493093264588fcd0f258ddaab1cdd4a15ffe
20 include $(INCLUDE_DIR
)/package.mk
27 URL
:=http
://www.inf.puc-rio.br
/~roberto
/lpeg
/
31 define Package
/lpeg
/description
32 LPeg is a new pattern-matching library for Lua
, based on Parsing Expression Grammars
(PEGs
)
35 define Build
/Configure
38 # add make variable overrides here
40 COPT
="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -O2"
42 define Package
/lpeg
/install
43 $(INSTALL_DIR
) $(1)/usr
/lib
/lua
44 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/lpeg.so
$(1)/usr
/lib
/lua
47 $(eval
$(call BuildPackage
,lpeg
))