Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LUA-STDLIB_VER = 41.2.2
- LUA-STDLIB_SOURCE = lua-stdlib-release-v$(LUA-STDLIB_VER).tar.gz
- LUA-STDLIB_URL = https://github.com/lua-stdlib/lua-stdlib/archive
- $(ARCHIVE)/$(LUA-STDLIB_SOURCE):
- $(WGET) $(LUA-STDLIB_URL)/release-v$(LUA-STDLIB_VER).tar.gz -O $@
- $(D)/lua-stdlib: $(D)/lua $(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_BUILDENV) \
- $(HOST_LUAROCKS) install stdlib-$(LUA-STDLIB_VER)-1.rockspec
- rm -r $(TARGET_LIB_DIR)/luarocks
- $(REMOVE)/lua-stdlib-release-v$(LUA-STDLIB_VER)
- $(TOUCH)
- # -----------------------------------------------------------------------------
- LUA-STD.NORMALIZE_VER = 1.0.2
- LUA-STD.NORMALIZE_SOURCE = normalize-$(LUA-STD.NORMALIZE_VER).tar.gz
- LUA-STD.NORMALIZE_URL = https://github.com/lua-stdlib/normalize/archive
- $(ARCHIVE)/$(LUA-STD.NORMALIZE_SOURCE):
- $(WGET) $(LUA-STD.NORMALIZE_URL)/v$(LUA-STD.NORMALIZE_VER).tar.gz -O $@
- $(D)/lua-std.normalize: $(D)/lua $(D)/lua-stdlib $(ARCHIVE)/$(LUA-STD.NORMALIZE_SOURCE) | $(TARGET_DIR)
- $(REMOVE)/normalize-$(LUA-STD.NORMALIZE_VER)
- $(UNTAR)/$(LUA-STD.NORMALIZE_SOURCE)
- $(CHDIR)/normalize-$(LUA-STD.NORMALIZE_VER); \
- $(HOST_LUAROCKS_BUILDENV) \
- $(HOST_LUAROCKS) install std.normalize-$(LUA-STD.NORMALIZE_VER)-1.rockspec
- rm -r $(TARGET_LIB_DIR)/luarocks
- $(REMOVE)/normalize-$(LUA-STD.NORMALIZE_VER)
- $(TOUCH)
- # -----------------------------------------------------------------------------
- LUA-STD._DEBUG_VER = 1.0.1
- LUA-STD._DEBUG_SOURCE = _debug-$(LUA-STD._DEBUG_VER).tar.gz
- LUA-STD._DEBUG_URL = https://github.com/lua-stdlib/_debug/archive
- $(ARCHIVE)/$(LUA-STD._DEBUG_SOURCE):
- $(WGET) $(LUA-STD._DEBUG_URL)/v$(LUA-STD._DEBUG_VER).tar.gz -O $@
- $(D)/lua-std._debug: $(D)/lua $(D)/lua-stdlib $(ARCHIVE)/$(LUA-STD._DEBUG_SOURCE) | $(TARGET_DIR)
- $(REMOVE)/_debug-$(LUA-STD._DEBUG_VER)
- $(UNTAR)/$(LUA-STD._DEBUG_SOURCE)
- $(CHDIR)/_debug-$(LUA-STD._DEBUG_VER); \
- $(HOST_LUAROCKS_BUILDENV) \
- $(HOST_LUAROCKS) install std._debug-$(LUA-STD._DEBUG_VER)-1.rockspec
- rm -r $(TARGET_LIB_DIR)/luarocks
- $(REMOVE)/_debug-$(LUA-STD._DEBUG_VER)
- $(TOUCH)
- # -----------------------------------------------------------------------------
- LUA_POSIX_VER = 34.0.4
- LUA_POSIX_SOURCE = luaposix-$(LUA_POSIX_VER).tar.gz
- LUA_POSIX_URL = https://github.com/luaposix/luaposix/archive
- $(ARCHIVE)/$(LUA_POSIX_SOURCE):
- $(WGET) $(LUA_POSIX_URL)/v$(LUA_POSIX_VER).tar.gz -O $@
- $(D)/lua-posix: $(D)/lua $(D)/luaexpat $(D)/lua-stdlib $(D)/lua-std.normalize $(D)/lua-std._debug $(ARCHIVE)/$(LUA_POSIX_SOURCE) | $(TARGET_DIR)
- $(REMOVE)/luaposix-$(LUA_POSIX_VER)
- $(UNTAR)/$(LUA_POSIX_SOURCE)
- $(CHDIR)/luaposix-$(LUA_POSIX_VER); \
- $(HOST_LUAROCKS_BUILDENV) \
- $(HOST_LUAROCKS) install luaposix-$(LUA_POSIX_VER)-1.rockspec
- rm -r $(TARGET_LIB_DIR)/luarocks
- $(REMOVE)/luaposix-$(LUA_POSIX_VER)
- $(TOUCH)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement