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.
 
 
 

23 lines
1.0 KiB

package("kahip")
set_homepage("https://kahip.github.io/")
set_description("KaHIP - Karlsruhe High Quality Partitioning")
set_license("MIT")
add_urls("https://github.com/KaHIP/KaHIP/archive/refs/tags/$(version).tar.gz",
"https://github.com/KaHIP/KaHIP.git")
add_versions("v3.16", "b0ef72a26968d37d9baa1304f7a113b61e925966a15e86578d44e26786e76c75")
add_versions("v3.15", "20760099370ddf7ecb2f92bfdb727def48f6428001165be6ce504264b9a99a0b")
add_deps("cmake", "openmp")
on_install("macosx", "linux", function (package)
local configs = {"-DNOMPI=ON", "-DPARHIP=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
import("package.tools.cmake").install(package, configs)
local excess = package:config("shared") and "kahip_static" or "kahip"
os.rm(path.join(package:installdir("lib"), excess .. ".*"))
end)
on_test(function (package)
assert(package:has_cxxfuncs("kaffpa", {includes = "kaHIP_interface.h"}))
end)