2
0

xmake.lua 1.1 KB

1234567891011121314151617181920212223242526
  1. package("util-macros")
  2. set_homepage("https://www.x.org/")
  3. set_description("X.Org: Set of autoconf macros used to build other xorg packages")
  4. add_urls("https://www.x.org/archive/individual/util/util-macros-$(version).tar.gz",
  5. "https://xorg.freedesktop.org/archive/individual/util/util-macros-$(version).tar.gz")
  6. add_versions("1.19.3", "624bb6c3a4613d18114a7e3849a3d70f2d7af9dc6eabeaba98060d87e3aef35b")
  7. add_versions("1.20.0", "8daf36913d551a90fd1013cb078401375dabae021cb4713b9b256a70f00eeb74")
  8. if is_plat("linux") then
  9. add_extsources("apt::xutils-dev", "pkgconfig::xorg-macros")
  10. end
  11. add_deps("pkg-config")
  12. on_install("macosx", "linux", "bsd", "cross", function (package)
  13. local configs = {"--sysconfdir=" .. package:installdir("etc"),
  14. "--localstatedir=" .. package:installdir("var")}
  15. import("package.tools.autoconf").install(package, configs)
  16. end)
  17. on_test(function (package)
  18. local envs = {PKG_CONFIG_PATH = path.join(package:installdir(), "share", "pkgconfig")}
  19. os.vrunv("pkg-config", {"--exists", "xorg-macros"}, {envs = envs})
  20. end)