Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -----------------------------------------------------------------------------
- HOST_LUAROCKS = $(HOST_DIR)/bin/luarocks
- HOST_LUAROCKS_VER = 3.1.3
- HOST_LUAROCKS_SOURCE = luarocks-$(HOST_LUAROCKS_VER).tar.gz
- $(ARCHIVE)/$(HOST_LUAROCKS_SOURCE):
- $(WGET) https://luarocks.github.io/luarocks/releases/$(HOST_LUAROCKS_SOURCE)
- HOST_LUAROCKS_CONFIG_DIR = $(HOST_DIR)/etc
- HOST_LUAROCKS_CONFIG_FILE = $(HOST_LUAROCKS_CONFIG_DIR)/luarocks/config-$(LUA_ABIVER).lua
- host_luarocks: $(HOST_LUAROCKS)
- $(HOST_LUAROCKS): $(HOST_LUA) $(ARCHIVE)/$(HOST_LUAROCKS_SOURCE)
- $(REMOVE)/luarocks-$(HOST_LUAROCKS_VER)
- $(UNTAR)/$(HOST_LUAROCKS_SOURCE)
- $(CHDIR)/luarocks-$(HOST_LUAROCKS_VER); \
- ./configure $(SILENT_OPT) \
- --prefix=$(HOST_DIR) \
- --sysconfdir=$(HOST_LUAROCKS_CONFIG_DIR) \
- --with-lua=$(HOST_DIR) \
- ; \
- $(MAKE) bootstrap; \
- $(MAKE) install
- sed -i '/name = "user"/d' $(HOST_LUAROCKS_CONFIG_FILE)
- sed -i 's|root = "$(HOST_DIR)"|root = "$(TARGET_DIR)"|' $(HOST_LUAROCKS_CONFIG_FILE)
- $(REMOVE)/luarocks-$(HOST_LUAROCKS_VER)
- $(TOUCH)
- # -----------------------------------------------------------------------------
- LUA-STDLIB_VER = 41.2.2
- LUA-STDLIB_SOURCE = lua-stdlib-release-v$(LUA-STDLIB_VER).tar.gz
- $(ARCHIVE)/$(LUA-STDLIB_SOURCE):
- $(WGET) https://github.com/lua-stdlib/lua-stdlib/archive/release-v$(LUA-STDLIB_VER).tar.gz -O $@
- $(D)/lua-stdlib: $(ARCHIVE)/$(LUA-STDLIB_SOURCE) | $(TARGET_DIR)
- $(REMOVE)/lua-stdlib-release-v$(LUA-STDLIB_VER)
- $(UNTAR)/$(LUA-STDLIB_SOURCE)
- $(CHDIR)/lua-stdlib-release-v$(LUA-STDLIB_VER); \
- $(HOST_LUAROCKS) install stdlib-$(LUA-STDLIB_VER)-1.rockspec
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement