summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2018-09-28 22:41:41 +0800
committerruki <[email protected]>2018-09-28 10:10:09 +0800
commit27cf709dda7b6626822534a7e2d18b41cf315c4f (patch)
tree15386f2ab11ba74623657ad92dfef509a1cf86d1
parentb92e08d2021a32fbd9fe4fc570825e053f8a8d17 (diff)
add automake
-rw-r--r--xmake/core/package/package.lua2
-rw-r--r--xmake/repository/packages/a/automake/xmake.lua26
2 files changed, 27 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 39d356127..b779a1e83 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -624,7 +624,7 @@ end
-- get the prefix directory
function package.prefixdir(is_global, is_debug, plat, arch)
- return path.join(is_global and global.directory() or config.directory(), "prefix", is_debug and "debug" or "release", plat or os.host(), arch or os.arch())
+ return path.join(is_global and global.directory() or config.directory(), "prefix", plat or os.host(), arch or os.arch(), is_debug and "debug" or "release")
end
-- get the prefix info
diff --git a/xmake/repository/packages/a/automake/xmake.lua b/xmake/repository/packages/a/automake/xmake.lua
new file mode 100644
index 000000000..b16837cc9
--- /dev/null
+++ b/xmake/repository/packages/a/automake/xmake.lua
@@ -0,0 +1,26 @@
+package("automake")
+
+ set_kind("binary")
+ set_homepage("https://www.gnu.org/software/automake/")
+ set_description("A tool for automatically generating Makefile.in files compliant with the GNU Coding Standards.")
+
+ if is_host("macosx", "linux") then
+ add_urls("http://ftp.gnu.org/gnu/automake/automake-$(version).tar.gz",
+ "https://mirrors.ustc.edu.cn/gnu/automake/automake-$(version).tar.gz")
+ add_versions("1.16.1", "608a97523f97db32f1f5d5615c98ca69326ced2054c9f82e65bade7fc4c9dea8")
+ add_versions("1.15.1", "988e32527abe052307d21c8ca000aa238b914df363a617e38f4fb89f5abf6260")
+ add_versions("1.9.6", "e6d3030dd3f7a07ee2075da5f77864a3cc3e78c5bf76bb48df23dbe3d6ba13b9")
+ add_versions("1.9.5", "68712753fcb756f3707b7da554917afb348450eb8530cae3b623a067078596fd")
+ end
+
+ on_build("macosx", "linux", function (package)
+ import("package.builder.autoconf").build(package)
+ end)
+
+ on_install("macosx", "linux", function (package)
+ import("package.builder.autoconf").install(package)
+ end)
+
+ on_test(function (package)
+ os.vrun("automake --version")
+ end)