|
@@ -11,7 +11,9 @@ package("util-linux")
|
|
|
|
|
|
add_patches("2.36.2", path.join(os.scriptdir(), "patches", "2.36.2", "includes.patch"), "7274762cac2810b5f0d17ecb5ac69c7069e7ff2b880df663b7072628df0867f3")
|
|
add_patches("2.36.2", path.join(os.scriptdir(), "patches", "2.36.2", "includes.patch"), "7274762cac2810b5f0d17ecb5ac69c7069e7ff2b880df663b7072628df0867f3")
|
|
|
|
|
|
- if not is_plat("macosx") then
|
|
|
|
|
|
+ if is_plat("macosx") then
|
|
|
|
+ add_extsources("brew::util-linux")
|
|
|
|
+ else
|
|
add_deps("ncurses", "zlib")
|
|
add_deps("ncurses", "zlib")
|
|
end
|
|
end
|
|
|
|
|
|
@@ -42,8 +44,6 @@ package("util-linux")
|
|
"--disable-silent-rules",
|
|
"--disable-silent-rules",
|
|
"--without-python",
|
|
"--without-python",
|
|
"--without-systemd",
|
|
"--without-systemd",
|
|
- "--enable-static=yes",
|
|
|
|
- "--enable-shared=no",
|
|
|
|
"--with-bashcompletiondir=" .. package:installdir("share/bash-completion")}
|
|
"--with-bashcompletiondir=" .. package:installdir("share/bash-completion")}
|
|
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
|
|
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
|
|
table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
|
|
table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
|