summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2018-09-28 22:37:16 +0800
committerruki <[email protected]>2018-09-28 09:43:39 +0800
commitb92e08d2021a32fbd9fe4fc570825e053f8a8d17 (patch)
tree8f423c4b3b172f4331372eed29feb7aab62b4c36
parent7046c69101bf6d6d17ba9ba744526d1ef6aaa524 (diff)
add autoconf and libtool packages
-rw-r--r--xmake/repository/packages/a/autoconf/xmake.lua25
-rw-r--r--xmake/repository/packages/c/cmake/xmake.lua4
-rw-r--r--xmake/repository/packages/l/libtool/xmake.lua25
3 files changed, 52 insertions, 2 deletions
diff --git a/xmake/repository/packages/a/autoconf/xmake.lua b/xmake/repository/packages/a/autoconf/xmake.lua
new file mode 100644
index 000000000..0a9ee6cfc
--- /dev/null
+++ b/xmake/repository/packages/a/autoconf/xmake.lua
@@ -0,0 +1,25 @@
+package("autoconf")
+
+ set_kind("binary")
+ set_homepage("https://www.gnu.org/software/autoconf/autoconf.html")
+ set_description("An extensible package of M4 macros that produce shell scripts to automatically configure software source code packages.")
+
+ if is_host("macosx", "linux") then
+ add_urls("http://ftp.gnu.org/gnu/autoconf/autoconf-$(version).tar.gz",
+ "https://mirrors.ustc.edu.cn/gnu/autoconf/autoconf-$(version).tar.gz",
+ "git://git.sv.gnu.org/autoconf")
+ add_versions("2.69", "954bd69b391edc12d6a4a51a2dd1476543da5c6bbf05a95b59dc0dd6fd4c2969")
+ add_versions("2.68", "eff70a2916f2e2b3ed7fe8a2d7e63d72cf3a23684b56456b319c3ebce0705d99")
+ 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("autoconf --version")
+ end)
diff --git a/xmake/repository/packages/c/cmake/xmake.lua b/xmake/repository/packages/c/cmake/xmake.lua
index 5a8eedac4..4e17cc453 100644
--- a/xmake/repository/packages/c/cmake/xmake.lua
+++ b/xmake/repository/packages/c/cmake/xmake.lua
@@ -12,10 +12,10 @@ package("cmake")
add_versions("3.11.4", "6dab016a6b82082b8bcd0f4d1e53418d6372015dd983d29367b9153f1a376435")
elseif is_host("windows") then
if os.arch() == "x64" then
- add_urls("https://cmake.org/files/v3.11/cmake-3.11.4-win64-x64.zip")
+ add_urls("https://cmake.org/files/v3.11/cmake-3.11.4-win64-x64.zip", {excludes = "*/doc/*"})
add_versions("3.11.4", "d3102abd0ded446c898252b58857871ee170312d8e7fd5cbff01fbcb1068a6e5")
else
- add_urls("https://cmake.org/files/v3.11/cmake-3.11.4-win32-x86.zip")
+ add_urls("https://cmake.org/files/v3.11/cmake-3.11.4-win32-x86.zip", {excludes = "*/doc/*"})
add_versions("3.11.4", "b068001ff879f86e704977c50a8c5917e4b4406c66242366dba2674abe316579")
end
end
diff --git a/xmake/repository/packages/l/libtool/xmake.lua b/xmake/repository/packages/l/libtool/xmake.lua
new file mode 100644
index 000000000..155ff8320
--- /dev/null
+++ b/xmake/repository/packages/l/libtool/xmake.lua
@@ -0,0 +1,25 @@
+package("libtool")
+
+ set_kind("binary")
+ set_homepage("https://www.gnu.org/software/libtool/")
+ set_description("A generic library support script.")
+
+ if is_host("macosx", "linux") then
+ add_urls("http://ftpmirror.gnu.org/libtool/libtool-$(version).tar.gz",
+ "https://mirrors.ustc.edu.cn/gnu/libtool/libtool-$(version).tar.gz",
+ "git://git.savannah.gnu.org/libtool.git")
+ add_versions("2.4.6", "e3bd4d5d3d025a36c21dd6af7ea818a2afcd4dfc1ea5a17b39d7854bcd0c06e3")
+ add_versions("2.4.5", "509cb49c7de14ce7eaf88993cf09fd4071882699dfd874c2e95b31ab107d6987")
+ 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("libtool --version")
+ end)