Explorar o código

Add linux pacman add_extsources for libwebp (#893)

Arthapz %!s(int64=3) %!d(string=hai) anos
pai
achega
ef1aa00315
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  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 = {}