package An official xmake package repository https://xrepo.xmake.io/
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.

22 lines
837 B

package("argp-standalone")
set_homepage("https://www.lysator.liu.se/~nisse/misc/")
set_description("Standalone version of arguments parsing functions from GLIBC")
add_urls("https://www.lysator.liu.se/~nisse/misc/argp-standalone-$(version).tar.gz")
add_versions("1.3", "dec79694da1319acd2238ce95df57f3680fea2482096e483323fddf3d818d8be")
on_install("macosx", "android", function (package)
local cxflags
if package:config("pic") ~= false then
cxflags = "-fPIC"
end
import("package.tools.autoconf").install(package, {}, {cxflags = cxflags})
os.vcp("libargp.a", package:installdir("lib"))
os.vcp("argp.h", package:installdir("include"))
end)
on_test(function (package)
assert(package:has_cfuncs("argp_parse", {includes = "argp.h"}))
end)