2 # Copyright (C) 2009 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
14 PKG_SOURCE
:=$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://github.com
/lunarmodules
/luaexpat
/archive
/refs
/tags
16 PKG_HASH
:=7d455f154de59eb0b073c3620bc8b873f7f697b3f21a112e6ff8dc9fca6d0826
18 PKG_CPE_ID
:=cpe
:/a
:matthewwild
:luaexpat
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/luaexpat
27 URL
:=http
://matthewwild.
co.uk
/projects
/luaexpat
/
28 MAINTAINER
:=W. Michael Petullo
<mike@flyn.org
>
29 DEPENDS
:=+lua
+libexpat
32 define Package
/luaexpat
/description
33 LuaExpat is a SAX XML parser based on the Expat library.
36 define Build
/Configure
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"
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
58 $(eval
$(call BuildPackage
,luaexpat
))