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.

29 lines
1016 B

package("xcb-util-errors")
set_homepage("https://xcb.freedesktop.org")
set_description("X.Org: XML-XCB protocol descriptions for libxcb code generation")
set_urls("https://xcb.freedesktop.org/dist/xcb-util-errors-$(version).tar.gz")
add_versions("1.0", "7752a722e580efdbada30632cb23aed35c18757399ac3b547b59fd7257cf5e33")
if is_plat("linux") then
add_extsources("pacman::xcb-util-errors")
end
if is_plat("macosx", "linux") then
add_deps("m4", "pkg-config")
add_deps("xcb-proto", "libxcb")
end
on_install("macosx", "linux", function (package)
local configs = {"--sysconfdir=" .. package:installdir("etc"),
"--localstatedir=" .. package:installdir("var"),
"--disable-silent-rules"}
import("package.tools.autoconf").install(package, configs)
end)
on_test(function (package)
assert(package:has_cfuncs("xcb_errors_context_new", {includes = "xcb/xcb_errors.h"}))
end)