diff --git a/packages/l/libogg/xmake.lua b/packages/l/libogg/xmake.lua index 6cfaa2836..70c82a78b 100644 --- a/packages/l/libogg/xmake.lua +++ b/packages/l/libogg/xmake.lua @@ -13,6 +13,14 @@ package("libogg") add_deps("make") end + if is_plat("mingw") and is_subhost("msys") then + add_extsources("pacman::libogg") + elseif is_plat("linux") then + add_extsources("pacman::libogg", "apt::libogg-dev") + elseif is_plat("macosx") then + add_extsources("brew::libogg") + end + on_install("windows", "macosx", "linux", "mingw", "iphoneos", "android", "cross", function (package) local configs = {"-DBUILD_TESTING=OFF"} table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))