|
@@ -7,6 +7,9 @@ package("fontconfig")
|
|
|
add_versions("2.13.1", "9f0d852b39d75fc655f9f53850eb32555394f36104a044bb2b2fc9e66dbbfa7f")
|
|
|
|
|
|
add_deps("pkg-config", "freetype >= 2.9")
|
|
|
+ if is_plat("linux") then
|
|
|
+ add_deps("gperf")
|
|
|
+ end
|
|
|
|
|
|
on_install("linux", "macosx", function (package)
|
|
|
local font_dirs = {}
|
|
@@ -15,7 +18,11 @@ package("fontconfig")
|
|
|
table.insert(font_dirs, "/Library/Fonts")
|
|
|
table.insert(font_dirs, "~/Library/Fonts")
|
|
|
end
|
|
|
- import("package.tools.autoconf").install(package, {"--disable-dependency-tracking", "--disable-silent-rules", "--enable-static", ["with-add-fonts"] = table.concat(font_dirs, ',')})
|
|
|
+ local configs = {"--disable-dependency-tracking", "--disable-silent-rules", "--enable-static", "--disable-docs"}
|
|
|
+ if #font_dirs > 0 then
|
|
|
+ table.insert(configs, "--with-add-fonts=" .. table.concat(font_dirs, ','))
|
|
|
+ end
|
|
|
+ import("package.tools.autoconf").install(package, configs)
|
|
|
end)
|
|
|
|
|
|
on_test(function (package)
|