xmake.lua 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. package("xcb-util-cursor")
  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-cursor-$(version).tar.gz")
  5. add_versions("0.1.0", "fe856df5cfd37ac1a574293790fb93b1414f0d06e3bd3b087ad7da6bba685e11")
  6. add_versions("0.1.1", "3f89a77e1a7bd29bd82b935225f640dee02daf46cb0394bfafb180412b5b7252")
  7. add_versions("0.1.2", "b9e55161eb283ce14b5f73d09aba58c7ccadebc010984db659ae2d95d2ada02e")
  8. add_versions("0.1.3", "a322332716a384c94d3cbf98f2d8fe2ce63c2fe7e2b26664b6cea1d411723df8")
  9. if is_plat("linux") then
  10. add_extsources("apt::libxcb-cursor-dev", "pacman::xcb-util-cursor")
  11. end
  12. if is_plat("macosx", "linux") then
  13. add_deps("m4", "pkg-config")
  14. add_deps("libxcb", "xcb-util-renderutil", "xcb-util-image")
  15. end
  16. on_install("macosx", "linux", function (package)
  17. local configs = {"--sysconfdir=" .. package:installdir("etc"),
  18. "--localstatedir=" .. package:installdir("var"),
  19. "--disable-silent-rules"}
  20. import("package.tools.autoconf").install(package, configs)
  21. end)
  22. on_test(function (package)
  23. assert(package:has_cfuncs("xcb_cursor_context_new", {includes = "xcb/xcb_cursor.h"}))
  24. end)