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("xtrans")
|
|
|
|
|
|
|
|
set_homepage("https://www.x.org/")
|
|
|
|
set_description("X.Org: X Network Transport layer shared code")
|
|
|
|
|
|
|
|
set_urls("https://www.x.org/archive/individual/lib/xtrans-$(version).tar.bz2")
|
|
|
|
add_versions("1.4.0", "377c4491593c417946efcd2c7600d1e62639f7a8bbca391887e2c4679807d773")
|
|
|
|
|
|
|
|
add_deps("pkg-config", "util-macros", "xorgproto")
|
|
|
|
|
|
|
|
on_install("macosx", "linux", function (package)
|
|
|
|
local configs = {"--sysconfdir=" .. package:installdir("etc"),
|
|
|
|
"--localstatedir=" .. package:installdir("var"),
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-silent-rules",
|
|
|
|
"--enable-docs=no"}
|
|
|
|
-- fedora systems do not provide sys/stropts.h
|
|
|
|
io.replace("Xtranslcl.c", "# include <sys/stropts.h>", "# include <sys/ioctl.h>")
|
|
|
|
import("package.tools.autoconf").install(package, configs)
|
|
|
|
end)
|
|
|
|
|
|
|
|
on_test(function (package)
|
|
|
|
assert(package:has_ctypes("Xtransaddr", {includes = "X11/Xtrans/Xtrans.h"}))
|
|
|
|
end)
|