I am currently trying to get Lua Lanes (lualanes) to work with the OpenWRT builroot system. I've written a Makefile, and it does show up in the configuration menu, but it simply does not build. No matter what I do, make simply ignores my Makefile and states: "Nothing to be done for compile". Subsequently installing the firmware on the device does show lanes.lua (which is not compiled), but misses lua51-lanes.so, which is the essential library. The sources were obtained from http://luaforge.net/frs/?group_id=265&a … se_id=1692, version 2.0.3.
My Makefile looks like this:
include $(TOPDIR)/rules.mk
PKG_NAME:=lualanes
PKG_VERSION:=2.0.3
PKG_RELEASE:=1
include $(INCLUDE_DIR)/package.mk
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
define Package/lualanes
SUBMENU:=Lua
SECTION:=lang
CATEGORY:=Languages
TITLE:=LuaLanes
URL:=http://luaforge.net/projects/lanes/
DEPENDS:=+lua +luac +liblua
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
endef
define Package/install
$(CP) $(INSTALL_DIR)/lanes.lua $(1)/usr/share/lua/5.1/
$(CP) $(INSTALL_DIR)/lua51-lanes.so $(1)/usr/lib/lua/
endef
$(eval $(call BuildPackage,lualanes))
I did move all source files to the ./src directory.
I have tried many different Makefiles; tried running the compiler directly from the makefile, instead of from Lanes' own Makefile, but nothing works. I tried letting OpenWRT do the extraction and make process itself; same result.
Did I forget something obvious? Or did someone already port Lanes to OpenWRT?