xmake.lua 788 B

123456789101112131415161718
  1. package("talloc")
  2. set_homepage("https://talloc.samba.org/talloc/doc/html/index.html")
  3. set_description("talloc is a hierarchical, reference counted memory pool system with destructors.")
  4. add_urls("https://www.samba.org/ftp/talloc/talloc-$(version).tar.gz")
  5. add_versions("2.3.3", "6be95b2368bd0af1c4cd7a88146eb6ceea18e46c3ffc9330bf6262b40d1d8aaa")
  6. add_configs("shared", {description = "Build shared library.", default = true, type = "boolean", readonly = true})
  7. add_deps("python 3.x", {kind = "binary"})
  8. on_install("macosx", "linux", function (package)
  9. import("package.tools.autoconf").install(package, {"--disable-python"})
  10. end)
  11. on_test(function (package)
  12. assert(package:has_cfuncs("talloc_init", {includes = "talloc.h"}))
  13. end)