kcptun: add tcp option
[feed/packages.git] / lang / luaexpat / Makefile
1 #
2 # Copyright (C) 2009 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:=luaexpat
11 PKG_VERSION:=1.3.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://matthewwild.co.uk/projects/luaexpat
16 PKG_HASH:=d060397960d87b2c89cf490f330508b7def1a0677bdc120531c571609fc57dc3
17
18 PKG_CPE_ID:=cpe:/a:matthewwild:luaexpat
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/luaexpat
23 SUBMENU:=Lua
24 SECTION:=lang
25 CATEGORY:=Languages
26 TITLE:=LuaExpat
27 URL:=http://matthewwild.co.uk/projects/luaexpat/
28 MAINTAINER:=W. Michael Petullo <mike@flyn.org>
29 DEPENDS:=+lua +libexpat
30 endef
31
32 define Package/luaexpat/description
33 LuaExpat is a SAX XML parser based on the Expat library.
34 endef
35
36 define Build/Configure
37 endef
38
39 define Build/Compile
40 $(CP) files/compat-5.1r5 $(PKG_BUILD_DIR)/compat-5.1r5
41 $(MAKE) -C $(PKG_BUILD_DIR) \
42 EXPAT_INC="-I$(STAGING_DIR)/usr/include/" \
43 LUA_INC="-I$(STAGING_DIR)/usr/include/" \
44 LUA_LIBDIR="$(STAGING_DIR)/usr/lib/" \
45 COMPAT_DIR="$(PKG_BUILD_DIR)/compat-5.1r5" \
46 LDFLAGS="-shared $(TARGET_LDFLAGS)" \
47 CC="$(TARGET_CC) $(TARGET_CFLAGS) $(FPIC) -std=c99" \
48 LD="$(TARGET_CROSS)ld -shared"
49 endef
50
51 define Package/luaexpat/install
52 $(INSTALL_DIR) $(1)/usr/lib/lua
53 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/lxp.so $(1)/usr/lib/lua/lxp.so
54 $(INSTALL_DIR) $(1)/usr/lib/lua/lxp
55 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/lxp/lom.lua $(1)/usr/lib/lua/lxp
56 endef
57
58 $(eval $(call BuildPackage,luaexpat))