libre2: fix pkgconfig paths
[feed/packages.git] / lang / lpeg / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lpeg
11 PKG_VERSION:=1.0.2
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
14 PKG_LICENSE:=MIT
15
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
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/lpeg
23 SUBMENU:=Lua
24 SECTION:=lang
25 CATEGORY:=Languages
26 TITLE:=LPeg
27 URL:=http://www.inf.puc-rio.br/~roberto/lpeg/
28 DEPENDS:=+lua
29 endef
30
31 define Package/lpeg/description
32 LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs)
33 endef
34
35 define Build/Configure
36 endef
37
38 # add make variable overrides here
39 MAKE_FLAGS += \
40 COPT="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) -O2"
41
42 define Package/lpeg/install
43 $(INSTALL_DIR) $(1)/usr/lib/lua
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/lpeg.so $(1)/usr/lib/lua
45 endef
46
47 $(eval $(call BuildPackage,lpeg))