f0f424e12956804f12b1c135124f0529ef4cdce8
[openwrt/svn-archive/archive.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 # $Id: $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=luaexpat
12 PKG_VERSION:=1.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/2469/
17 PKG_MD5SUM:=6ecb895ccf5cff1e7f2facd438b1f8d0
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/luaexpat
22 SUBMENU:=LUA
23 SECTION:=lang
24 CATEGORY:=Languages
25 TITLE:=LUAexpat
26 URL:=http://www.keplerproject.org/luaexpat/
27 DEPENDS:=lua +libexpat
28 endef
29
30 define Package/luaexpat/description
31 LuaExpat is a SAX XML parser based on the Expat library.
32 endef
33
34 define Build/Configure
35 endef
36
37 define Build/Compile
38 $(CP) files/compat-5.1r5 $(PKG_BUILD_DIR)/compat-5.1r5
39 $(MAKE) -C $(PKG_BUILD_DIR) \
40 EXPAT_INC="$(STAGING_DIR)/usr/include/" \
41 LUA_INC="$(STAGING_DIR)/usr/include/" \
42 LUA_LIBDIR="$(STAGING_DIR)/usr/lib/" \
43 COMPAT_DIR="$(PKG_BUILD_DIR)/compat-5.1r5" \
44 LIB_OPTION="-shared -L$(STAGING_DIR)/usr/lib/" \
45 CC="$(TARGET_CC) $(TARGET_CFLAGS)" \
46 LD="$(TARGET_CROSS)ld -shared"
47 endef
48
49 define Package/luaexpat/install
50 $(INSTALL_DIR) $(1)/usr/lib/lua
51 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/lxp.so.1.1.0 $(1)/usr/lib/lua/lxp.so
52 $(INSTALL_DIR) $(1)/usr/lib/lua/lxp
53 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/lxp/lom.lua $(1)/usr/lib/lua/lxp
54 endef
55
56 $(eval $(call BuildPackage,luaexpat))