Browse Source

Add extsources to freetype (#601)

* Add extsources to freetype

* Update xmake.lua
ImperatorS79 4 years ago
parent
commit
7e35475005
1 changed files with 4 additions and 2 deletions
  1. 4 2
      packages/f/freetype/xmake.lua

+ 4 - 2
packages/f/freetype/xmake.lua

@@ -14,8 +14,10 @@ package("freetype")
         add_extsources("pkgconfig::freetype2")
     end
 
-    if is_host("linux") then
-        add_extsources("apt::libfreetype6")
+    if is_plat("mingw") and is_subhost("msys") then
+        add_extsources("pacman::freetype")
+    elseif is_host("linux") then
+        add_extsources("pacman::freetype2", "apt::libfreetype-dev")
     elseif is_host("macosx") then
         add_extsources("brew::freetype")
     end