|
|
|
@ -1,13 +1,20 @@ |
|
|
|
|
package("pkgconf") |
|
|
|
|
|
|
|
|
|
set_kind("binary") |
|
|
|
|
set_homepage("http://pkgconf.org") |
|
|
|
|
set_description("A program which helps to configure compiler and linker flags for development frameworks.") |
|
|
|
|
|
|
|
|
|
add_urls("https://distfiles.dereferenced.org/pkgconf/pkgconf-$(version).tar.xz") |
|
|
|
|
add_versions("1.7.4", "d73f32c248a4591139a6b17777c80d4deab6b414ec2b3d21d0a24be348c476ab") |
|
|
|
|
add_versions("1.8.0", "ef9c7e61822b7cb8356e6e9e1dca58d9556f3200d78acab35e4347e9d4c2bbaf") |
|
|
|
|
add_versions("1.9.3", "5fb355b487d54fb6d341e4f18d4e2f7e813a6622cf03a9e87affa6a40565699d") |
|
|
|
|
add_urls("https://distfiles.ariadne.space/pkgconf/pkgconf-$(version).tar.xz", {alias = "tarball"}) |
|
|
|
|
add_urls("https://github.com/pkgconf/pkgconf.git", {alias = "git"}) |
|
|
|
|
add_versions("tarball:1.7.4", "d73f32c248a4591139a6b17777c80d4deab6b414ec2b3d21d0a24be348c476ab") |
|
|
|
|
add_versions("tarball:1.8.0", "ef9c7e61822b7cb8356e6e9e1dca58d9556f3200d78acab35e4347e9d4c2bbaf") |
|
|
|
|
add_versions("tarball:1.9.3", "5fb355b487d54fb6d341e4f18d4e2f7e813a6622cf03a9e87affa6a40565699d") |
|
|
|
|
add_versions("tarball:1.9.4", "daccf1bbe5a30d149b556c7d2ffffeafd76d7b514e249271abdd501533c1d8ae") |
|
|
|
|
add_versions("tarball:1.9.5", "1ac1656debb27497563036f7bffc281490f83f9b8457c0d60bcfb638fb6b6171") |
|
|
|
|
add_versions("git:1.7.4", "pkgconf-1.7.4") |
|
|
|
|
add_versions("git:1.8.0", "pkgconf-1.8.0") |
|
|
|
|
add_versions("git:1.9.3", "pkgconf-1.9.3") |
|
|
|
|
add_versions("git:1.9.4", "pkgconf-1.9.4") |
|
|
|
|
add_versions("git:1.9.5", "pkgconf-1.9.5") |
|
|
|
|
|
|
|
|
|
on_load(function (package) |
|
|
|
|
if not package:is_precompiled() and is_host("windows") then |
|
|
|
@ -20,7 +27,7 @@ package("pkgconf") |
|
|
|
|
end) |
|
|
|
|
|
|
|
|
|
on_install("@windows", function(package) |
|
|
|
|
import("package.tools.meson").install(package, {"-Dtests=false"}) |
|
|
|
|
import("package.tools.meson").install(package, {"-Dtests=disabled"}) |
|
|
|
|
local bindir = package:installdir("bin") |
|
|
|
|
os.cp(path.join(bindir, "pkgconf.exe"), path.join(bindir, "pkg-config.exe")) |
|
|
|
|
end) |
|
|
|
|