xmake.lua 1.3 KB

12345678910111213141516171819202122232425262728293031
  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://ftp.gnu.org/gnu/automake/automake-$(version).tar.gz",
  6. "https://mirrors.ustc.edu.cn/gnu/automake/automake-$(version).tar.gz")
  7. add_versions("1.16.4", "8a0f0be7aaae2efa3a68482af28e5872d8830b9813a6a932a2571eac63ca1794")
  8. add_versions("1.16.1", "608a97523f97db32f1f5d5615c98ca69326ced2054c9f82e65bade7fc4c9dea8")
  9. add_versions("1.15.1", "988e32527abe052307d21c8ca000aa238b914df363a617e38f4fb89f5abf6260")
  10. add_versions("1.9.6", "e6d3030dd3f7a07ee2075da5f77864a3cc3e78c5bf76bb48df23dbe3d6ba13b9")
  11. add_versions("1.9.5", "68712753fcb756f3707b7da554917afb348450eb8530cae3b623a067078596fd")
  12. if is_host("linux") then
  13. add_extsources("apt::automake", "pacman::automake")
  14. end
  15. add_deps("autoconf")
  16. on_install("@macosx", "@linux", "@bsd", function (package)
  17. import("package.tools.autoconf").install(package)
  18. io.writefile(path.join(package:installdir("share", "aclocal"), "dirlist"), [[
  19. /usr/local/share/aclocal
  20. /usr/share/aclocal
  21. ]])
  22. end)
  23. on_test(function (package)
  24. os.vrun("automake --version")
  25. end)