package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.3 KiB

4 years ago
package("libxau")
set_homepage("https://www.x.org/")
set_description("X.Org: A Sample Authorization Protocol for X")
set_urls("https://www.x.org/archive/individual/lib/libXau-$(version).tar.bz2")
add_versions("1.0.9", "ccf8cbf0dbf676faa2ea0a6d64bcc3b6746064722b606c8c52917ed00dcb73ec")
if is_plat("linux") then
add_extsources("apt::libxau-dev", "pacman::libxau")
end
4 years ago
if is_plat("macosx", "linux") then
add_deps("pkg-config", "util-macros", "xorgproto")
end
4 years ago
on_install("macosx", "linux", function (package)
local configs = {"--sysconfdir=" .. package:installdir("etc"),
"--localstatedir=" .. package:installdir("var"),
"--disable-dependency-tracking",
"--disable-silent-rules"}
table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
if package:config("pic") then
table.insert(configs, "--with-pic")
end
4 years ago
import("package.tools.autoconf").install(package, configs)
end)
on_test(function (package)
assert(package:has_ctypes("Xauth", {includes = "X11/Xauth.h"}))
end)