浏览代码

Add linux pacman add_extsources for libwebp (#893)

Arthapz 3 年之前
父节点
当前提交
ef1aa00315
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      packages/l/libwebp/xmake.lua

+ 6 - 2
packages/l/libwebp/xmake.lua

@@ -22,8 +22,12 @@ package("libwebp")
     if is_plat("linux", "bsd") then
     if is_plat("linux", "bsd") then
         add_syslinks("pthread")
         add_syslinks("pthread")
     end
     end
-    add_extsources("brew::webp")
-    add_extsources("apt::libwebp-dev")
+
+    if is_plat("macosx") then
+        add_extsources("brew::webp")
+    elseif is_plat("linux") then
+        add_extsources("apt::libwebp-dev", "pacman::libwebp")
+    end
 
 
     on_install("linux", "macosx", "windows", "mingw", "bsd", function (package)
     on_install("linux", "macosx", "windows", "mingw", "bsd", function (package)
         local configs = {}
         local configs = {}