Przeglądaj źródła

add libuuid for fontconfig

ruki 6 lat temu
rodzic
commit
9ade0178cc
2 zmienionych plików z 47 dodań i 0 usunięć
  1. 1 0
      packages/f/fontconfig/xmake.lua
  2. 46 0
      packages/u/util-linux/xmake.lua

+ 1 - 0
packages/f/fontconfig/xmake.lua

@@ -9,6 +9,7 @@ package("fontconfig")
     add_deps("pkg-config", "freetype >= 2.9")
     if not is_plat("macosx") then
         add_deps("autoconf", "automake", "gperf", "bzip2")
+        add_deps("util-linux", {libuuid = true})
     end
  
     on_install("linux", "macosx", function (package)

+ 46 - 0
packages/u/util-linux/xmake.lua

@@ -0,0 +1,46 @@
+package("util-linux")
+
+    set_homepage("https://github.com/karelzak/util-linux")
+    set_description("Collection of Linux utilities.")
+
+    set_urls("https://www.kernel.org/pub/linux/utils/util-linux/v2.32/util-linux-$(version).tar.xz")
+    add_versions("2.32.1", "86e6707a379c7ff5489c218cfaf1e3464b0b95acf7817db0bc5f179e356a67b2")
+
+    if not is_plat("macosx") then
+        add_deps("ncurses", "zlib")
+    end
+
+    add_configs("ipcs",               { description = "Enable ipcs.", default = false, type = "boolean"})
+    add_configs("ipcrm",              { description = "Enable ipcrm.", default = false, type = "boolean"})
+    add_configs("wall",               { description = "Enable wall.", default = false, type = "boolean"})
+    add_configs("libuuid",            { description = "Enable libuuid.", default = false, type = "boolean"})
+    add_configs("libsmartcols",       { description = "Enable libsmartcols.", default = false, type = "boolean"})
+    add_configs("use-tty-group",      { description = "Enable use-tty-group.", default = false, type = "boolean"})
+    add_configs("kill",               { description = "Enable kill.", default = false, type = "boolean"})
+    add_configs("cal",                { description = "Enable cal.", default = false, type = "boolean"})
+    add_configs("systemd",            { description = "Enable systemd.", default = false, type = "boolean"})
+    add_configs("chfn-chsh",          { description = "Enable chfn-chsh.", default = false, type = "boolean"})
+    add_configs("login",              { description = "Enable login.", default = false, type = "boolean"})
+    add_configs("su",                 { description = "Enable su.", default = false, type = "boolean"})
+    add_configs("runuser",            { description = "Enable runuser.", default = false, type = "boolean"})
+    add_configs("makeinstall-chown",  { description = "Enable makeinstall-chown.", default = false, type = "boolean"})
+    add_configs("makeinstall-setuid", { description = "Enable makeinstall-setuid.", default = false, type = "boolean"})
+
+    on_load(function (package)
+        package:addenv("PATH", "bin")
+    end)
+
+    on_install("macosx", "linux", function (package)
+        local configs = {"--disable-dependency-tracking", "--disable-silent-rules", "--without-python"}
+        for name, enabled in pairs(package:configs()) do
+            if not package:extraconf("configs", name, "builtin") then
+                if enabled then
+                    table.insert(configs, "--enable-" .. name)
+                else
+                    table.insert(configs, "--disable-" .. name)
+                end
+            end
+        end
+        import("package.tools.autoconf").install(package, configs)
+    end)
+