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

Last change on this file since 146326 was 146326, checked in by takeshi@…, 3 years ago

luarocks: update to 2.3.0, using PortGroup github

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

    old new  
    477477   defaults.lib_extension = "so"
    478478   defaults.external_lib_extension = "so"
    479479   defaults.obj_extension = "o"
    480    defaults.external_deps_dirs = { "/usr/local", "/usr" }
    481    defaults.variables.LUA_BINDIR = site_config.LUA_BINDIR or "/usr/local/bin"
    482    defaults.variables.LUA_INCDIR = site_config.LUA_INCDIR or "/usr/local/include"
    483    defaults.variables.LUA_LIBDIR = site_config.LUA_LIBDIR or "/usr/local/lib"
     480   defaults.external_deps_dirs = { "%PREFIX%" }
     481   defaults.variables.LUA_BINDIR = site_config.LUA_BINDIR or "%PREFIX%/bin"
     482   defaults.variables.LUA_INCDIR = site_config.LUA_INCDIR or "%PREFIX%/include"
     483   defaults.variables.LUA_LIBDIR = site_config.LUA_LIBDIR or "%PREFIX%/lib"
    484484   defaults.variables.CFLAGS = "-O2"
    485485   defaults.cmake_generator = "Unix Makefiles"
    486    defaults.variables.CC = "gcc"
    487    defaults.variables.LD = "gcc"
     486   defaults.variables.CC = "%COMPILER%"
     487   defaults.variables.LD = "%COMPILER%"
    488488   defaults.gcc_rpath = true
    489489   defaults.variables.LIBFLAG = "-shared"
    490490   defaults.external_deps_patterns = {
     
    539539   else
    540540      defaults.gcc_rpath = false
    541541   end
    542    defaults.variables.CC = "env MACOSX_DEPLOYMENT_TARGET=10."..version.." gcc"
    543    defaults.variables.LD = "env MACOSX_DEPLOYMENT_TARGET=10."..version.." gcc"
     542   defaults.variables.CC = "env MACOSX_DEPLOYMENT_TARGET=10."..version.." %COMPILER%"
     543   defaults.variables.LD = "env MACOSX_DEPLOYMENT_TARGET=10."..version.." %COMPILER%"
    544544   defaults.web_browser = "open"
    545545end
    546546
Note: See TracBrowser for help on using the repository browser.