xmake.lua 1.2 KB

1234567891011121314151617181920212223242526272829
  1. package("autoconf-archive")
  2. set_homepage("http://www.gnu.org/software/autoconf-archive/")
  3. set_description("A mirror of the GNU Autoconf Archive, a collection of more than 500 macros for GNU Autoconf that have been contributed as free software by friendly supporters of the cause from all over the Internet.")
  4. set_license("GPL-3.0-or-later")
  5. add_urls("https://ftpmirror.gnu.org/autoconf-archive/autoconf-archive-$(version).tar.xz",
  6. "https://ftp.gnu.org/gnu/autoconf-archive/autoconf-archive-$(version).tar.xz")
  7. add_versions("2023.02.20", "71d4048479ae28f1f5794619c3d72df9c01df49b1c628ef85fde37596dc31a33")
  8. add_deps("autoconf")
  9. on_install("@macosx", "@linux", "@bsd", function (package)
  10. import("package.tools.autoconf").install(package)
  11. end)
  12. on_test(function (package)
  13. io.writefile("test.m4", [[
  14. AC_INIT(myconfig, version-0.1)
  15. AC_MSG_NOTICE([Hello, world.])
  16. AX_HAVE_SELECT(
  17. [AX_CONFIG_FEATURE_ENABLE(select)],
  18. [AX_CONFIG_FEATURE_DISABLE(select)])
  19. AX_CONFIG_FEATURE(
  20. [select], [This platform supports select(7)],
  21. [HAVE_SELECT], [This platform supports select(7).])
  22. EOS]])
  23. os.vrun("autoconf test.m4")
  24. end)