|
|
|
@ -32,9 +32,11 @@ package("libxcb") |
|
|
|
|
set_homepage("https://www.x.org/") |
|
|
|
|
set_description("X.Org: Interface to the X Window System protocol") |
|
|
|
|
|
|
|
|
|
set_urls("https://xcb.freedesktop.org/dist/libxcb-$(version).tar.gz") |
|
|
|
|
add_urls("https://xcb.freedesktop.org/dist/libxcb-$(version).tar.gz", |
|
|
|
|
"https://www.x.org/archive/individual/lib/libxcb-$(version).tar.gz") |
|
|
|
|
add_versions("1.13.1", "f09a76971437780a602303170fd51b5f7474051722bc39d566a272d2c4bde1b5") |
|
|
|
|
add_versions("1.14", "2c7fcddd1da34d9b238c9caeda20d3bd7486456fc50b3cc6567185dbd5b0ad02") |
|
|
|
|
add_versions("1.16", "bc0f75f84b28e6496a19a1d094d7e47def861a50cb7cce5b23b62eecdc2a4479") |
|
|
|
|
|
|
|
|
|
for name, opt in pairs(components) do |
|
|
|
|
add_configs(name, {description = format("Enable %s submodule (default is %s).", name, opt.default_value), default = opt.default_value}) |
|
|
|
@ -63,7 +65,8 @@ package("libxcb") |
|
|
|
|
"--disable-dependency-tracking", |
|
|
|
|
"--disable-silent-rules", |
|
|
|
|
"--enable-devel-docs=no", |
|
|
|
|
"--with-doxygen=no"} |
|
|
|
|
"--with-doxygen=no", |
|
|
|
|
"PYTHON=python3"} |
|
|
|
|
table.insert(configs, "--enable-shared=" .. (package:config("shared") and "yes" or "no")) |
|
|
|
|
if package:is_plat("linux") and package:config("pic") ~= false then |
|
|
|
|
table.insert(configs, "--with-pic") |
|
|
|
@ -71,7 +74,11 @@ package("libxcb") |
|
|
|
|
for name, opt in pairs(components) do |
|
|
|
|
table.insert(configs, format("--enable-%s=%s", name, package:config(name) and "yes" or "no")) |
|
|
|
|
end |
|
|
|
|
if package:is_plat("macosx") and package:is_cross() then |
|
|
|
|
import("package.tools.autoconf").install(package, configs, {cflags = "-arch " .. package:arch(), shflags = "-arch " .. package:arch()}) |
|
|
|
|
else |
|
|
|
|
import("package.tools.autoconf").install(package, configs) |
|
|
|
|
end |
|
|
|
|
end) |
|
|
|
|
|
|
|
|
|
on_test(function (package) |
|
|
|
|