Browse Source

Add linux pacman add_extsources for libwebp (#893)

Arthapz 3 years ago
parent
commit
ef1aa00315
1 changed files with 6 additions and 2 deletions
  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
         add_syslinks("pthread")
     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)
         local configs = {}