pull/13/head
ruki 6 years ago
parent a0e8808585
commit ec375d2576
No known key found for this signature in database
GPG Key ID: 33341DF9719963FA
  1. 9
      packages/f/fontconfig/xmake.lua
  2. 16
      packages/g/gperf/xmake.lua

@ -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)

@ -0,0 +1,16 @@
package("gperf")
set_homepage("https://www.gnu.org/software/gperf")
set_description("Perfect hash function generator.")
set_urls("https://ftp.gnu.org/gnu/gperf/gperf-$(version).tar.gz",
"https://ftpmirror.gnu.org/gperf/gperf-$(version).tar.gz")
add_versions("3.1", "588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2")
on_install("macosx", "linux", function (package)
import("package.tools.autoconf").install(package)
end)
on_test(function (package)
os.vrun("gperf --version")
end)
Loading…
Cancel
Save