@ -7,10 +7,12 @@ package("openblas")
if is_arch ( " x64 " , " x86_64 " ) then
add_urls ( " https://github.com/xianyi/OpenBLAS/releases/download/v$(version)/OpenBLAS-$(version)-x64.zip " )
add_versions ( " 0.3.12 " , " f1d231594365d5c7f2c625f9d8bd4eeea4f7b748675a95301d3cb2c0aa118e26 " )
add_versions ( " 0.3.13 " , " 85cacd71dec9bc1e1168a8463fd0aa29a31f449b4583ed3a1c689a56df8eae29 " )
end
else
add_urls ( " https://github.com/xianyi/OpenBLAS/releases/download/v$(version)/OpenBLAS-$(version).tar.gz " )
add_versions ( " 0.3.12 " , " 65a7d3a4010a4e3bd5c0baa41a234797cd3a1735449a4a5902129152601dc57b " )
add_versions ( " 0.3.13 " , " 79197543b17cc314b7e43f7a33148c308b0807cd6381ee77f77e15acf3e6459e " )
add_configs ( " with_fortran " , { description = " Compile with fortran enabled. " , default = true , type = " boolean " } )
end
@ -19,7 +21,7 @@ package("openblas")
add_syslinks ( " pthread " )
end
on_install ( " windows " , function ( package )
on_install ( " windows|x64 " , function ( package )
if package : is_arch ( " x64 " , " x86_64 " ) then
os.cp ( " bin " , package : installdir ( ) )
os.cp ( " include " , package : installdir ( ) )
@ -28,7 +30,7 @@ package("openblas")
end
end )
on_install ( " linux " , " mingw " , function ( package )
on_install ( " linux " , " mingw@windows,msys " , function ( package )
local configs = { }
if package : config ( " debug " ) then table.insert ( configs , " DEBUG=1 " ) end
if not package : config ( " shared " ) then