diff options
| author | ruki <[email protected]> | 2019-04-04 23:20:12 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-04-04 14:01:17 +0800 |
| commit | 8f0ab36e7405ae0f78d49d181a8cfd23a28d1da2 (patch) | |
| tree | f498fc17cdaabb145f600f552f683345f08dd88c | |
| parent | adbcc87f0699702c32fa8dc63aa8aafaa1deca9d (diff) | |
add gnumake
| -rw-r--r-- | xmake/repository/packages/g/gnumake/xmake.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/xmake/repository/packages/g/gnumake/xmake.lua b/xmake/repository/packages/g/gnumake/xmake.lua new file mode 100644 index 000000000..81544c1c8 --- /dev/null +++ b/xmake/repository/packages/g/gnumake/xmake.lua @@ -0,0 +1,24 @@ +package("gnumake") + + set_kind("binary") + set_homepage("https://www.gnu.org/software/make/") + set_description("GNU make tool.") + + add_urls("https://ftp.gnu.org/gnu/make/make-$(version).tar.gz", + "https://mirrors.ustc.edu.cn/gnu/make/make-$(version).tar.gz", + "http://mirror.easyname.at/gnu/make/make-$(version).tar.gz") + add_versions("4.2.1", "e40b8f018c1da64edd1cc9a6fce5fa63b2e707e404e20cad91fbae337c98a5b7") + + on_install("windows", function(package) + os.vrun("build_w32.bat") + os.cp("WinRel/gnumake.exe", package:installdir("bin")) + os.cp("WinRel/gnumake.exe", path.join(package:installdir("bin"), "make.exe")) + end) + + on_install("macosx", "linux", function (package) + import("package.tools.autoconf").install(package, {"--disable-dependency-tracking", "--disable-gtk", "--disable-silent-rules"}) + end) + + on_test(function (package) + os.vrun("make --version") + end) |
