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.
26 lines
1.1 KiB
26 lines
1.1 KiB
package("libunistring") |
|
|
|
set_homepage("https://www.gnu.org/software/libunistring/") |
|
set_description("This library provides functions for manipulating Unicode strings and for manipulating C strings according to the Unicode standard.") |
|
set_license("GPL-3.0") |
|
|
|
add_urls("https://ftp.gnu.org/gnu/libunistring/libunistring-$(version).tar.gz") |
|
add_versions("0.9.10", "a82e5b333339a88ea4608e4635479a1cfb2e01aafb925e1290b65710d43f610b") |
|
|
|
add_deps("libiconv") |
|
|
|
on_install("linux", "macosx", function (package) |
|
local configs = {"--disable-dependency-tracking", "--with-pic"} |
|
if package:config("shared") then |
|
table.insert(configs, "--enable-shared=yes") |
|
table.insert(configs, "--enable-static=no") |
|
else |
|
table.insert(configs, "--enable-static=yes") |
|
table.insert(configs, "--enable-shared=no") |
|
end |
|
import("package.tools.autoconf").install(package, configs) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:has_cfuncs("u8_check", {includes = "unistr.h"})) |
|
end)
|
|
|