parent
74a7d84af0
commit
0046d9c3ba
1 changed files with 23 additions and 0 deletions
@ -0,0 +1,23 @@ |
||||
package("xorgproto") |
||||
|
||||
set_homepage("https://www.x.org/") |
||||
set_description("X.Org: Protocol Headers") |
||||
|
||||
set_urls("https://xorg.freedesktop.org/archive/individual/proto/xorgproto-$(version).tar.bz2") |
||||
add_versions("2019.2", "46ecd0156c561d41e8aa87ce79340910cdf38373b759e737fcbba5df508e7b8e") |
||||
|
||||
add_deps("autoconf", "util-macros") |
||||
|
||||
on_install("macosx", "linux", function (package) |
||||
local configs = {"--sysconfdir=" .. package:installdir("etc"), |
||||
"--localstatedir=" .. package:installdir("var"), |
||||
"--disable-dependency-tracking", |
||||
"--disable-silent-rules"} |
||||
import("package.tools.autoconf").install(package, configs) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
local envs = {PKG_CONFIG_PATH = path.join(package:installdir(), "share", "pkgconfig")} |
||||
os.vrunv("pkg-config", {"--exists", "xproto"}, {envs = envs}) |
||||
assert(package:has_cincludes("X11/Xproto.h")) |
||||
end) |
Loading…
Reference in new issue