summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/repository/packages/l/libtool/xmake.lua2
-rw-r--r--xmake/repository/packages/p/pkg-config/xmake.lua20
2 files changed, 21 insertions, 1 deletions
diff --git a/xmake/repository/packages/l/libtool/xmake.lua b/xmake/repository/packages/l/libtool/xmake.lua
index 0fb676f98..6c881c1c2 100644
--- a/xmake/repository/packages/l/libtool/xmake.lua
+++ b/xmake/repository/packages/l/libtool/xmake.lua
@@ -13,7 +13,7 @@ package("libtool")
end
on_install("macosx", "linux", function (package)
- import("package.tools.autoconf").install(package)
+ import("package.tools.autoconf").install(package, {"--disable-dependency-tracking", "--enable-ltdl-install"})
end)
on_test(function (package)
diff --git a/xmake/repository/packages/p/pkg-config/xmake.lua b/xmake/repository/packages/p/pkg-config/xmake.lua
new file mode 100644
index 000000000..39650e9bd
--- /dev/null
+++ b/xmake/repository/packages/p/pkg-config/xmake.lua
@@ -0,0 +1,20 @@
+package("pkg-config")
+
+ set_kind("binary")
+ set_homepage("https://freedesktop.org/wiki/Software/pkg-config/")
+ set_description("Manage compile and link flags for libraries.")
+
+ if is_host("macosx", "linux") then
+ add_urls("https://pkgconfig.freedesktop.org/releases/pkg-config-$(version).tar.gz",
+ "http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/pkgconfig/pkg-config-$(version).tar.gz",
+ "git://anongit.freedesktop.org/pkg-config")
+ add_versions("0.29.2", "6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591")
+ end
+
+ on_install("macosx", "linux", function (package)
+ import("package.tools.autoconf").install(package, {"--disable-debug", "--disable-host-tool", "--with-internal-glib"})
+ end)
+
+ on_test(function (package)
+ os.vrun("pkg-config --version")
+ end)