xmake.lua 756 B

1234567891011121314151617181920212223
  1. package("libxaw")
  2. set_homepage("https://gitlab.freedesktop.org/xorg/lib/libxaw")
  3. set_description("X.Org: X Athena Widget Set")
  4. set_urls("https://www.x.org/archive/individual/lib/libXaw-$(version).tar.bz2")
  5. add_versions("1.0.14", "76aef98ea3df92615faec28004b5ce4e5c6855e716fa16de40c32030722a6f8e")
  6. if is_plat("macosx", "linux") then
  7. add_deps("libxmu", "libxpm")
  8. end
  9. if is_plat("linux") then
  10. add_extsources("apt::libxaw7-dev", "pacman::libxaw")
  11. end
  12. on_install("macosx", "linux", function (package)
  13. import("package.tools.autoconf").install(package)
  14. end)
  15. on_test(function (package)
  16. assert(package:has_cfuncs("XawInitializeWidgetSet", {includes = "X11/Xaw/XawInit.h"}))
  17. end)