Advertisement
svenhoefer

Untitled

Jun 18th, 2019
812
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 2.93 KB | None | 0 0
  1. LUA-STDLIB_VER = 41.2.2
  2. LUA-STDLIB_SOURCE = lua-stdlib-release-v$(LUA-STDLIB_VER).tar.gz
  3. LUA-STDLIB_URL = https://github.com/lua-stdlib/lua-stdlib/archive
  4.  
  5. $(ARCHIVE)/$(LUA-STDLIB_SOURCE):
  6.     $(WGET) $(LUA-STDLIB_URL)/release-v$(LUA-STDLIB_VER).tar.gz -O $@
  7.  
  8. $(D)/lua-stdlib: $(D)/lua $(ARCHIVE)/$(LUA-STDLIB_SOURCE) | $(TARGET_DIR)
  9.     $(REMOVE)/lua-stdlib-release-v$(LUA-STDLIB_VER)
  10.     $(UNTAR)/$(LUA-STDLIB_SOURCE)
  11.     $(CHDIR)/lua-stdlib-release-v$(LUA-STDLIB_VER); \
  12.         $(HOST_LUAROCKS_BUILDENV) \
  13.         $(HOST_LUAROCKS) install stdlib-$(LUA-STDLIB_VER)-1.rockspec
  14.     rm -r $(TARGET_LIB_DIR)/luarocks
  15.     $(REMOVE)/lua-stdlib-release-v$(LUA-STDLIB_VER)
  16.     $(TOUCH)
  17.  
  18. # -----------------------------------------------------------------------------
  19.  
  20. LUA-STD.NORMALIZE_VER = 1.0.2
  21. LUA-STD.NORMALIZE_SOURCE = normalize-$(LUA-STD.NORMALIZE_VER).tar.gz
  22. LUA-STD.NORMALIZE_URL = https://github.com/lua-stdlib/normalize/archive
  23.  
  24. $(ARCHIVE)/$(LUA-STD.NORMALIZE_SOURCE):
  25.     $(WGET) $(LUA-STD.NORMALIZE_URL)/v$(LUA-STD.NORMALIZE_VER).tar.gz -O $@
  26.  
  27. $(D)/lua-std.normalize: $(D)/lua $(D)/lua-stdlib $(ARCHIVE)/$(LUA-STD.NORMALIZE_SOURCE) | $(TARGET_DIR)
  28.     $(REMOVE)/normalize-$(LUA-STD.NORMALIZE_VER)
  29.     $(UNTAR)/$(LUA-STD.NORMALIZE_SOURCE)
  30.     $(CHDIR)/normalize-$(LUA-STD.NORMALIZE_VER); \
  31.         $(HOST_LUAROCKS_BUILDENV) \
  32.         $(HOST_LUAROCKS) install std.normalize-$(LUA-STD.NORMALIZE_VER)-1.rockspec
  33.     rm -r $(TARGET_LIB_DIR)/luarocks
  34.     $(REMOVE)/normalize-$(LUA-STD.NORMALIZE_VER)
  35.     $(TOUCH)
  36.  
  37. # -----------------------------------------------------------------------------
  38.  
  39. LUA-STD._DEBUG_VER = 1.0.1
  40. LUA-STD._DEBUG_SOURCE = _debug-$(LUA-STD._DEBUG_VER).tar.gz
  41. LUA-STD._DEBUG_URL = https://github.com/lua-stdlib/_debug/archive
  42.  
  43. $(ARCHIVE)/$(LUA-STD._DEBUG_SOURCE):
  44.     $(WGET) $(LUA-STD._DEBUG_URL)/v$(LUA-STD._DEBUG_VER).tar.gz -O $@
  45.  
  46. $(D)/lua-std._debug: $(D)/lua $(D)/lua-stdlib $(ARCHIVE)/$(LUA-STD._DEBUG_SOURCE) | $(TARGET_DIR)
  47.     $(REMOVE)/_debug-$(LUA-STD._DEBUG_VER)
  48.     $(UNTAR)/$(LUA-STD._DEBUG_SOURCE)
  49.     $(CHDIR)/_debug-$(LUA-STD._DEBUG_VER); \
  50.         $(HOST_LUAROCKS_BUILDENV) \
  51.         $(HOST_LUAROCKS) install std._debug-$(LUA-STD._DEBUG_VER)-1.rockspec
  52.     rm -r $(TARGET_LIB_DIR)/luarocks
  53.     $(REMOVE)/_debug-$(LUA-STD._DEBUG_VER)
  54.     $(TOUCH)
  55.  
  56. # -----------------------------------------------------------------------------
  57.  
  58. LUA_POSIX_VER = 34.0.4
  59. LUA_POSIX_SOURCE = luaposix-$(LUA_POSIX_VER).tar.gz
  60. LUA_POSIX_URL = https://github.com/luaposix/luaposix/archive
  61.  
  62. $(ARCHIVE)/$(LUA_POSIX_SOURCE):
  63.     $(WGET) $(LUA_POSIX_URL)/v$(LUA_POSIX_VER).tar.gz -O $@
  64.  
  65. $(D)/lua-posix: $(D)/lua $(D)/luaexpat $(D)/lua-stdlib $(D)/lua-std.normalize $(D)/lua-std._debug $(ARCHIVE)/$(LUA_POSIX_SOURCE) | $(TARGET_DIR)
  66.     $(REMOVE)/luaposix-$(LUA_POSIX_VER)
  67.     $(UNTAR)/$(LUA_POSIX_SOURCE)
  68.     $(CHDIR)/luaposix-$(LUA_POSIX_VER); \
  69.         $(HOST_LUAROCKS_BUILDENV) \
  70.         $(HOST_LUAROCKS) install luaposix-$(LUA_POSIX_VER)-1.rockspec
  71.     rm -r $(TARGET_LIB_DIR)/luarocks
  72.     $(REMOVE)/luaposix-$(LUA_POSIX_VER)
  73.     $(TOUCH)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement