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.
30 lines
1.2 KiB
30 lines
1.2 KiB
package("libxt") |
|
|
|
set_homepage("https://gitlab.freedesktop.org/xorg/lib/libxt") |
|
set_description("X.Org: X Toolkit Intrinsics library") |
|
|
|
add_urls("https://www.x.org/archive/individual/lib/libXt-$(version).tar.gz") |
|
add_versions("1.2.1", "6da1bfa9dd0ed87430a5ce95b129485086394df308998ebe34d98e378e3dfb33") |
|
|
|
if is_plat("linux") then |
|
add_extsources("apt::libxt-dev", "pacman::libxt") |
|
end |
|
|
|
add_deps("libx11", "libsm") |
|
|
|
on_install("macosx", "linux", function (package) |
|
local configs = {"--sysconfdir=" .. package:installdir("etc"), |
|
"--localstatedir=" .. package:installdir("var"), |
|
"--disable-dependency-tracking", |
|
"--disable-silent-rules"} |
|
table.insert(configs, "--enable-static=" .. (package:config("shared") and "no" or "yes")) |
|
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no")) |
|
if package:config("pic") then |
|
table.insert(configs, "--with-pic") |
|
end |
|
import("package.tools.autoconf").install(package, configs) |
|
end) |
|
|
|
on_test(function (package) |
|
assert(package:has_cfuncs("XtConvertAndStore", {includes = "X11/Intrinsic.h"})) |
|
end)
|
|
|