package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
730 B
20 lines
730 B
3 years ago
|
package("niftiheader")
|
||
|
|
||
|
set_kind("library", {headeronly = true})
|
||
|
set_homepage("https://nifti.nimh.nih.gov/")
|
||
|
set_description("Header structure descriptions for the nifti1 and nifti2 file formats.")
|
||
|
set_license("Public Domain")
|
||
|
|
||
|
add_urls("https://github.com/xmake-mirror/nifti2.git")
|
||
|
add_versions("0.0.1", "d2461b27888fd5db659edb8b788c7ce6203f703c")
|
||
|
|
||
|
on_install(function(package)
|
||
|
os.cp("nifti1.h", package:installdir("include"))
|
||
|
os.cp("nifti2.h", package:installdir("include"))
|
||
|
end)
|
||
|
|
||
|
on_test(function(package)
|
||
|
assert(package:has_ctypes("nifti_1_header", {includes = {"nifti1.h"}}))
|
||
|
assert(package:has_ctypes("nifti_2_header", {includes = {"nifti2.h"}}))
|
||
|
end)
|