You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.5 KiB

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