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.
25 lines
1.0 KiB
25 lines
1.0 KiB
package("wigxjpf") |
|
set_homepage("https://fy.chalmers.se/subatom/wigxjpf/") |
|
set_description("WIGXJPF evaluates Wigner 3j, 6j and 9j symbols accurately using prime factorisation and multi-word integer arithmetic.") |
|
set_license("GPL-3.0", "LGPL-3.0") |
|
|
|
set_urls("https://fy.chalmers.se/subatom/wigxjpf/wigxjpf-$(version).tar.gz") |
|
add_versions("1.13", "90ab9bfd495978ad1fdcbb436e274d6f4586184ae290b99920e5c978d64b3e6a") |
|
|
|
on_install("linux", "macosx", function (package) |
|
local configs = {} |
|
if package:config("shared") then |
|
table.insert(configs, "shared") |
|
end |
|
import("package.tools.make").build(package, configs) |
|
os.cp("inc/*.h", package:installdir("include")) |
|
if package:config("shared") then |
|
os.cp("lib/*.so", package:installdir("lib")) |
|
else |
|
os.cp("lib/*.a", package:installdir("lib")) |
|
end |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:has_cfuncs("wig3jj", {includes = "wigxjpf.h"})) |
|
end)
|
|
|