xmake.lua 1.2 KB

123456789101112131415161718192021222324252627282930
  1. package("xcb-util-renderutil")
  2. set_homepage("https://xcb.freedesktop.org")
  3. set_description("X.Org: XML-XCB protocol descriptions for libxcb code generation")
  4. set_urls("https://xcb.freedesktop.org/dist/xcb-util-renderutil-$(version).tar.gz")
  5. add_versions("0.3.8", "cfa1130bfff8f281e10285ae063475dd172c78dad609ac10bce3924b5ca11484")
  6. add_versions("0.3.9", "55eee797e3214fe39d0f3f4d9448cc53cffe06706d108824ea37bb79fcedcad5")
  7. add_versions("0.3.10", "e04143c48e1644c5e074243fa293d88f99005b3c50d1d54358954404e635128a")
  8. if is_plat("linux") then
  9. add_extsources("apt::libxcb-render-util0-dev", "pacman::xcb-util-renderutil")
  10. end
  11. if is_plat("macosx", "linux") then
  12. add_deps("m4", "pkg-config")
  13. add_deps("libxcb", "xcb-util")
  14. end
  15. on_install("macosx", "linux", function (package)
  16. local configs = {"--sysconfdir=" .. package:installdir("etc"),
  17. "--localstatedir=" .. package:installdir("var"),
  18. "--disable-silent-rules"}
  19. import("package.tools.autoconf").install(package, configs)
  20. end)
  21. on_test(function (package)
  22. assert(package:has_cfuncs("xcb_render_util_find_format", {includes = "xcb/xcb_renderutil.h"}))
  23. end)