diff options
| author | ruki <[email protected]> | 2018-09-29 22:47:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-09-29 22:47:25 +0800 |
| commit | 55aa91d16840691b5c8d1e6f5b8997db9575a3f8 (patch) | |
| tree | d4a453b0896d384fe64f26f01c4a0c3b31ec2885 | |
| parent | 12d62a3b18d65fb65b20381ba360f8686ee002d3 (diff) | |
add pkg-config package
| -rw-r--r-- | xmake/repository/packages/l/libtool/xmake.lua | 2 | ||||
| -rw-r--r-- | xmake/repository/packages/p/pkg-config/xmake.lua | 20 |
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) |
