2014-07-17 00:36:05 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=luaexpat
|
2022-12-20 03:05:13 +01:00
|
|
|
PKG_VERSION:=1.5.1
|
|
|
|
PKG_RELEASE:=1
|
2014-07-17 00:36:05 +02:00
|
|
|
|
2024-04-21 22:42:56 +02:00
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_VERSION:=$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_URL:=https://github.com/lunarmodules/luaexpat
|
|
|
|
PKG_MIRROR_HASH:=7e370d47e947a1acfeb4d00df012f47116fe7971f5b12033e92666e37a9312a1
|
2014-07-17 00:36:05 +02:00
|
|
|
|
2019-09-12 14:13:21 +02:00
|
|
|
PKG_CPE_ID:=cpe:/a:matthewwild:luaexpat
|
|
|
|
|
2014-07-17 00:36:05 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/luaexpat
|
|
|
|
SUBMENU:=Lua
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2022-11-02 13:58:00 +01:00
|
|
|
TITLE:=LuaExpat
|
2016-10-05 13:00:32 +02:00
|
|
|
URL:=http://matthewwild.co.uk/projects/luaexpat/
|
2014-07-17 00:36:05 +02:00
|
|
|
MAINTAINER:=W. Michael Petullo <mike@flyn.org>
|
|
|
|
DEPENDS:=+lua +libexpat
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/luaexpat/description
|
|
|
|
LuaExpat is a SAX XML parser based on the Expat library.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(CP) files/compat-5.1r5 $(PKG_BUILD_DIR)/compat-5.1r5
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2014-09-07 05:51:51 +02:00
|
|
|
EXPAT_INC="-I$(STAGING_DIR)/usr/include/" \
|
|
|
|
LUA_INC="-I$(STAGING_DIR)/usr/include/" \
|
2014-07-17 00:36:05 +02:00
|
|
|
LUA_LIBDIR="$(STAGING_DIR)/usr/lib/" \
|
|
|
|
COMPAT_DIR="$(PKG_BUILD_DIR)/compat-5.1r5" \
|
2015-04-23 13:02:58 +02:00
|
|
|
LDFLAGS="-shared $(TARGET_LDFLAGS)" \
|
2014-07-17 00:36:05 +02:00
|
|
|
CC="$(TARGET_CC) $(TARGET_CFLAGS) $(FPIC) -std=c99" \
|
2022-11-02 13:58:00 +01:00
|
|
|
LD="$(TARGET_CROSS)ld -shared"
|
2014-07-17 00:36:05 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/luaexpat/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua
|
2014-09-07 05:51:51 +02:00
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/lxp.so $(1)/usr/lib/lua/lxp.so
|
2014-07-17 00:36:05 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/lua/lxp
|
|
|
|
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/lxp/lom.lua $(1)/usr/lib/lua/lxp
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,luaexpat))
|