xmake.lua 1.1 KB

1234567891011121314151617181920212223242526272829
  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. if is_plat("linux") then
  8. add_extsources("apt::libxcb-render-util0-dev", "pacman::xcb-util-renderutil")
  9. end
  10. if is_plat("macosx", "linux") then
  11. add_deps("m4", "pkg-config")
  12. add_deps("libxcb", "xcb-util")
  13. end
  14. on_install("macosx", "linux", function (package)
  15. local configs = {"--sysconfdir=" .. package:installdir("etc"),
  16. "--localstatedir=" .. package:installdir("var"),
  17. "--disable-silent-rules"}
  18. import("package.tools.autoconf").install(package, configs)
  19. end)
  20. on_test(function (package)
  21. assert(package:has_cfuncs("xcb_render_util_find_format", {includes = "xcb/xcb_renderutil.h"}))
  22. end)