xmake.lua 1.1 KB

123456789101112131415161718192021222324252627
  1. package("spot")
  2. set_homepage("https://spot.lrde.epita.fr/")
  3. set_description("Spot: a platform for LTL and ω-automata manipulation")
  4. set_license("GPL-3.0")
  5. add_urls("http://www.lrde.epita.fr/dload/spot/spot-2.10.1.tar.gz")
  6. add_versions("2.10.1", "38002989fc8e3725841a0537665bb2d5dfc259d2e09358100322c38f4c7481ad")
  7. on_install("macosx", "linux", function (package)
  8. local configs = {"--disable-python"}
  9. table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no"))
  10. table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes"))
  11. if package:config("pic") then
  12. table.insert(configs, "--with-pic")
  13. end
  14. import("package.tools.autoconf").install(package, configs)
  15. end)
  16. on_test(function (package)
  17. assert(package:check_cxxsnippets({test = [[
  18. #include <spot/tl/parse.hh>
  19. void test() {
  20. spot::formula f = spot::parse_formula("& & G p0 p1 p2");
  21. }
  22. ]]}, {configs = {languages = "c++17"}}))
  23. end)