Browse Source

Add extsources to libsdl_ttf (#568)

PucklaMotzer09 4 years ago
parent
commit
ee9de9cf8b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/l/libsdl_ttf/xmake.lua

+ 6 - 0
packages/l/libsdl_ttf/xmake.lua

@@ -11,6 +11,12 @@ package("libsdl_ttf")
         add_versions("2.0.15", "cdb72b5b1c3b27795fa128af36f369fee5d3e38a96c350855da0b81880555dbc")
         add_versions("2.0.15", "cdb72b5b1c3b27795fa128af36f369fee5d3e38a96c350855da0b81880555dbc")
     end
     end
 
 
+    if is_plat("linux") then
+        add_extsources("pacman::sdl2_ttf", "apt::libsdl2-ttf-dev")
+    elseif is_plat("macosx") then
+        add_extsources("brew::sdl2_ttf")
+    end
+
     add_deps("libsdl")
     add_deps("libsdl")
     if is_plat("linux", "macosx") then
     if is_plat("linux", "macosx") then
         add_deps("freetype")
         add_deps("freetype")