xmake.lua 730 B

12345678910111213141516171819
  1. package("niftiheader")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://nifti.nimh.nih.gov/")
  4. set_description("Header structure descriptions for the nifti1 and nifti2 file formats.")
  5. set_license("Public Domain")
  6. add_urls("https://github.com/xmake-mirror/nifti2.git")
  7. add_versions("0.0.1", "d2461b27888fd5db659edb8b788c7ce6203f703c")
  8. on_install(function(package)
  9. os.cp("nifti1.h", package:installdir("include"))
  10. os.cp("nifti2.h", package:installdir("include"))
  11. end)
  12. on_test(function(package)
  13. assert(package:has_ctypes("nifti_1_header", {includes = {"nifti1.h"}}))
  14. assert(package:has_ctypes("nifti_2_header", {includes = {"nifti2.h"}}))
  15. end)