diff --git a/packages/m/mono/xmake.lua b/packages/m/mono/xmake.lua new file mode 100644 index 000000000..9bc82133f --- /dev/null +++ b/packages/m/mono/xmake.lua @@ -0,0 +1,21 @@ +package("mono") + + set_homepage("https://www.mono-project.com/") + set_description("Cross platform, open source .NET development framework") + + set_urls("https://download.mono-project.com/sources/mono/mono-$(version).tar.xz", + {version = function (version) return version:gsub("%+", ".") end}) + + add_versions("6.8.0+123", "e2e42d36e19f083fc0d82f6c02f7db80611d69767112af353df2f279744a2ac5") + + add_includedirs("include/mono-2.0") + + on_install("macosx", "linux", function (package) + local configs = {"--disable-silent-rules", "--enable-nls=no"} + import("package.tools.autoconf").install(package, configs) + end) + + on_test(function (package) + assert(package:has_cfuncs("mono_object_get_class", {includes = "mono/metadata/object.h"})) + end) +