Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/a/armadillo/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ package("armadillo")
set_license("Apache-2.0")

add_urls("http://sourceforge.net/projects/arma/files/armadillo-$(version).tar.xz")
add_versions("15.2.6", "97cb8ef708541f632e861d005a462dd0367240f81ff96f8e63ebbdd75c8ce55f")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The version 15.2.6 does not exist for the Armadillo C++ linear algebra library. The latest stable release is 14.2.2. It appears this version number may have been confused with another software of the same name. Additionally, Armadillo 14.0 and later require C++17, so the on_test block at line 53 should be updated to use c++17 instead of c++14 to ensure the package can be verified correctly.

    add_versions("14.2.2", "6e10669665163a60e6493913f1ad7290168da4a939c64531370896d7bc623ad1")

add_versions("11.2.3", "4c2e97ce60707fc1f348f44f7af0cb6d2466d0aad0d0ea4bf5d5dc180e6cba41")
add_versions("10.8.1", "5087ab5a2268e5ce71798c1afcb6d1fb246463f8dc88a60db49a083600f98332")
add_versions("10.7.0", "9bf60db6fd237721908747a0e56797b97b7ceae3603f2cca0b012a3b88265d3f")
add_versions("10.7.3", "aac930d5fbc23dca9453ff3647d03f7d90d9584a4556719ad7bc7adab7db6ff5")

add_configs("blas", {description = "Choose BLAS library to use.", default = "openblas", type = "string", values = {"mkl", "openblas"}})

on_load("windows", "macosx", "linux", function (package)
on_load("windows|!arm*", "macosx", "linux", function (package)
package:add("deps", "superlu", {configs = {blas = package:config("blas")}})
end)

on_install("windows", "macosx", "linux", function (package)
on_install("windows|!arm*", "macosx", "linux", function (package)
os.cd("include")
io.gsub("armadillo_bits/config.hpp.cmake", "${.-}/?", "")
io.gsub("armadillo_bits/config.hpp.cmake", "#cmakedefine (.-)\n", "${define %1}\n")
Expand Down
Loading