You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package("pkg-config")
|
|
|
|
|
|
|
|
set_kind("binary")
|
|
|
|
set_homepage("https://freedesktop.org/wiki/Software/pkg-config/")
|
|
|
|
set_description("A helper tool used when compiling applications and libraries.")
|
|
|
|
|
|
|
|
if is_host("macosx", "linux") then
|
|
|
|
add_urls("https://pkgconfig.freedesktop.org/releases/pkg-config-$(version).tar.gz")
|
|
|
|
add_urls("http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/pkgconfig/pkg-config-$(version).tar.g")
|
|
|
|
add_versions("0.29.2", "6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591")
|
|
|
|
end
|
|
|
|
|
|
|
|
on_install("macosx", "linux", function (package)
|
|
|
|
local pcpath = {"/usr/local/lib/pkgconfig", "/usr/lib/pkgconfig"}
|
|
|
|
if is_host("macosx") then
|
|
|
|
table.insert(pcpath, "/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/" .. macos.version():major() .. '.' .. macos.version():minor())
|
|
|
|
end
|
|
|
|
import("package.tools.autoconf").install(package, {"--disable-debug", "--disable-host-tool", "--with-internal-glib", ["with-pc-path"] = table.concat(pcpath, ':')})
|
|
|
|
end)
|
|
|
|
|
|
|
|
on_test(function (package)
|
|
|
|
os.vrun("pkg-config --version")
|
|
|
|
end)
|