* hwloc 2.7.1

* add mma

* port to xmake
pull/1189/head
Hoildkv 3 years ago committed by GitHub
parent 75db19ed2b
commit f0ba10d262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/h/hwloc/xmake.lua
  2. 32
      packages/m/mma/xmake.lua

@ -10,17 +10,20 @@ package("hwloc")
return format("%d.%d/hwloc-win32-build-%s", version:major(), version:minor(), version) return format("%d.%d/hwloc-win32-build-%s", version:major(), version:minor(), version)
end}) end})
add_versions("2.5.0", "0ff33ef99b727a96fcca8fd510e41f73444c5e9ea2b6c475a64a2d9a294f2973") add_versions("2.5.0", "0ff33ef99b727a96fcca8fd510e41f73444c5e9ea2b6c475a64a2d9a294f2973")
add_versions("2.7.1", "217d508f715d42932c6d52e5cf5eb3559d9691d6bb77c34f00b3dcb6517c58e5")
elseif is_arch("x64") then elseif is_arch("x64") then
add_urls("https://download.open-mpi.org/release/hwloc/v$(version).zip", {version = function (version) add_urls("https://download.open-mpi.org/release/hwloc/v$(version).zip", {version = function (version)
return format("%d.%d/hwloc-win64-build-%s", version:major(), version:minor(), version) return format("%d.%d/hwloc-win64-build-%s", version:major(), version:minor(), version)
end}) end})
add_versions("2.5.0", "b64f5ebe534d1ad57cdd4b18ab4035389b68802a97464c1295005043075309ea") add_versions("2.5.0", "b64f5ebe534d1ad57cdd4b18ab4035389b68802a97464c1295005043075309ea")
add_versions("2.7.1", "31031eb09f7d8bfaaa069e537ec26374269dddd5b1f1a368c1ed6593849be5b1")
end end
else else
add_urls("https://download.open-mpi.org/release/hwloc/v$(version).tar.gz", {version = function (version) add_urls("https://download.open-mpi.org/release/hwloc/v$(version).tar.gz", {version = function (version)
return format("%d.%d/hwloc-%s", version:major(), version:minor(), version) return format("%d.%d/hwloc-%s", version:major(), version:minor(), version)
end}) end})
add_versions("2.5.0", "38aa8102faec302791f6b4f0d23960a3ffa25af3af6af006c64dbecac23f852c") add_versions("2.5.0", "38aa8102faec302791f6b4f0d23960a3ffa25af3af6af006c64dbecac23f852c")
add_versions("2.7.1", "4cb0a781ed980b03ad8c48beb57407aa67c4b908e45722954b9730379bc7f6d5")
end end
add_configs("shared", {description = "Build shared library.", default = true, type = "boolean", readonly = true}) add_configs("shared", {description = "Build shared library.", default = true, type = "boolean", readonly = true})

@ -0,0 +1,32 @@
package("mma")
set_homepage("https://github.com/jdumas/mma")
set_description("A self-contained C++ implementation of MMA and GCMMA.")
set_license("MIT")
add_urls("https://github.com/jdumas/mma.git")
add_versions("2018.08.01", "aa51333f942220ac98e5957accb1b7e60590ec6f")
if is_plat("windows") then
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
end
on_install(function (package)
io.writefile("xmake.lua", [[
add_rules("mode.debug", "mode.release")
set_languages("cxx11")
target("mma")
set_kind("$(kind)")
add_files("src/mma/MMASolver.cpp")
add_headerfiles("src/(mma/MMASolver.h)")
target("gcmma")
set_kind("$(kind)")
add_files("src/gcmma/GCMMASolver.cpp")
add_headerfiles("src/(gcmma/GCMMASolver.h)")
]])
import("package.tools.xmake").install(package)
end)
on_test(function (package)
assert(package:has_cxxtypes("MMASolver", {includes = "mma/MMASolver.h"}))
end)
Loading…
Cancel
Save