xmake.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. package("automake")
  2. set_kind("binary")
  3. set_homepage("https://www.gnu.org/software/automake/")
  4. set_description("A tool for automatically generating Makefile.in files compliant with the GNU Coding Standards.")
  5. add_urls("https://ftpmirror.gnu.org/gnu/automake/automake-$(version).tar.gz",
  6. "https://ftp.gnu.org/gnu/automake/automake-$(version).tar.gz",
  7. "https://mirrors.ustc.edu.cn/gnu/automake/automake-$(version).tar.gz")
  8. add_versions("1.17", "397767d4db3018dd4440825b60c64258b636eaf6bf99ac8b0897f06c89310acd")
  9. add_versions("1.16.5", "07bd24ad08a64bc17250ce09ec56e921d6343903943e99ccf63bbf0705e34605")
  10. add_versions("1.16.4", "8a0f0be7aaae2efa3a68482af28e5872d8830b9813a6a932a2571eac63ca1794")
  11. add_versions("1.16.1", "608a97523f97db32f1f5d5615c98ca69326ced2054c9f82e65bade7fc4c9dea8")
  12. add_versions("1.15.1", "988e32527abe052307d21c8ca000aa238b914df363a617e38f4fb89f5abf6260")
  13. add_versions("1.9.6", "e6d3030dd3f7a07ee2075da5f77864a3cc3e78c5bf76bb48df23dbe3d6ba13b9")
  14. add_versions("1.9.5", "68712753fcb756f3707b7da554917afb348450eb8530cae3b623a067078596fd")
  15. if is_host("linux") then
  16. add_extsources("apt::automake", "pacman::automake")
  17. end
  18. add_deps("autoconf")
  19. on_install("@macosx", "@linux", "@bsd", function (package)
  20. import("package.tools.autoconf").install(package)
  21. io.writefile(path.join(package:installdir("share", "aclocal"), "dirlist"), [[
  22. /usr/local/share/aclocal
  23. /usr/share/aclocal
  24. ]])
  25. end)
  26. on_test(function (package)
  27. os.vrun("automake --version")
  28. end)