source: trunk/dports/devel/luarocks/files/patch-src_luarocks_cfg.diff @ 142417

Last change on this file since 142417 was 142417, checked in by khindenburg@…, 4 years ago

luarocks: update to 2.2.2

File size: 1.6 KB
  • src/luarocks/cfg.lua

     
    397397   defaults.lib_extension = "so"
    398398   defaults.external_lib_extension = "so"
    399399   defaults.obj_extension = "o"
    400    defaults.external_deps_dirs = { "/usr/local", "/usr" }
    401    defaults.variables.LUA_BINDIR = site_config.LUA_BINDIR or "/usr/local/bin"
    402    defaults.variables.LUA_INCDIR = site_config.LUA_INCDIR or "/usr/local/include"
    403    defaults.variables.LUA_LIBDIR = site_config.LUA_LIBDIR or "/usr/local/lib"
     400   defaults.external_deps_dirs = { "%PREFIX%" }
     401   defaults.variables.LUA_BINDIR = site_config.LUA_BINDIR or "%PREFIX%/bin"
     402   defaults.variables.LUA_INCDIR = site_config.LUA_INCDIR or "%PREFIX%/include"
     403   defaults.variables.LUA_LIBDIR = site_config.LUA_LIBDIR or "%PREFIX%/lib"
    404404   defaults.variables.CFLAGS = "-O2"
    405405   defaults.cmake_generator = "Unix Makefiles"
    406406   defaults.platforms = { "unix" }
    407    defaults.variables.CC = "gcc"
    408    defaults.variables.LD = "gcc"
     407   defaults.variables.CC = "%COMPILER%"
     408   defaults.variables.LD = "%COMPILER%"
    409409   defaults.gcc_rpath = true
    410410   defaults.variables.LIBFLAG = "-shared"
    411411   defaults.external_deps_patterns = {
     
    462462   else
    463463      defaults.gcc_rpath = false
    464464   end
    465    defaults.variables.CC = "export MACOSX_DEPLOYMENT_TARGET=10."..version.."; gcc"
    466    defaults.variables.LD = "export MACOSX_DEPLOYMENT_TARGET=10."..version.."; gcc"
     465   defaults.variables.CC = "export MACOSX_DEPLOYMENT_TARGET=10."..version.."; %COMPILER%"
     466   defaults.variables.LD = "export MACOSX_DEPLOYMENT_TARGET=10."..version.."; %COMPILER%"
    467467   defaults.web_browser = "open"
    468468end
    469469
Note: See TracBrowser for help on using the repository browser.