diff options
| -rw-r--r-- | xmake/repository/packages/p/pkg-config/xmake.lua | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/xmake/repository/packages/p/pkg-config/xmake.lua b/xmake/repository/packages/p/pkg-config/xmake.lua index 754ecd1f7..036bc9407 100644 --- a/xmake/repository/packages/p/pkg-config/xmake.lua +++ b/xmake/repository/packages/p/pkg-config/xmake.lua @@ -14,11 +14,7 @@ package("pkg-config") on_install("macosx", "linux", function (package) local pcpath = {"/usr/local/lib/pkgconfig", "/usr/lib/pkgconfig"} if is_host("macosx") then - local macver = os.iorun("sw_vers -productVersion"):trim() - if #macver > 0 then - local vers = macver:split('%.') - table.insert(pcpath, "/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/" .. vers[1] .. '.' .. vers[2]) - end + table.insert(pcpath, "/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/" .. macos.version():major() .. '.' .. macos.version():minor()) end import("package.tools.autoconf").install(package, {"--disable-debug", "--disable-host-tool", "--with-internal-glib", ["with-pc-path"] = table.concat(pcpath, ':')}) end) |
