add libxcomposite (#3691)

* add libxcomposite

* fix: missing dep xfixes

* fix: typo in libxfixes

* fix: changed has_cxxfuncs to has_cfuncs

* code review
autoupdate-amgcl-1.4.4
Arthur 8 months ago committed by GitHub
parent 0633f0fe51
commit dfbede6a77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 29
      packages/l/libxcomposite/xmake.lua

@ -0,0 +1,29 @@
package("libxcomposite")
set_homepage("https://www.x.org/")
set_description("libXcomposite provides an X Window System client interface to the Composite extension to the X protocol.")
set_urls("https://www.x.org/archive/individual/lib/libXcomposite-$(version).tar.gz")
add_versions("0.4.6", "3599dfcd96cd48d45e6aeb08578aa27636fa903f480f880c863622c2b352d076")
if is_plat("linux") then
add_extsources("apt::libxcomposite-dev")
end
if is_plat("macosx", "linux") then
add_deps("pkg-config", "libx11", "libxext", "xorgproto", "libxfixes")
end
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"))
import("package.tools.autoconf").install(package, configs)
end)
on_test(function (package)
assert(package:has_cfuncs("XCompositeRedirectWindow", {includes = "X11/extensions/Xcomposite.h"}))
end)
Loading…
Cancel
Save