From 8e1ca0ba99f4d28f7514a530bdbcb23adf7575d4 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 8 Jun 2020 22:50:14 +0800 Subject: [PATCH] add mono --- packages/m/mono/xmake.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/m/mono/xmake.lua 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) +