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:
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
DEPENDS:=+lua +luac +liblua
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
$(CP) $(INSTALL_DIR)/lanes.lua $(1)/usr/share/lua/5.1/
$(CP) $(INSTALL_DIR)/lua51-lanes.so $(1)/usr/lib/lua/
$(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?