From 0ce9a92f435417180f0a804a04484bf6cdb0d0db Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 14 Oct 2020 23:38:27 +0800 Subject: [PATCH] add libx11 --- packages/l/libx11/xmake.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 packages/l/libx11/xmake.lua diff --git a/packages/l/libx11/xmake.lua b/packages/l/libx11/xmake.lua new file mode 100644 index 000000000..00e8bef0a --- /dev/null +++ b/packages/l/libx11/xmake.lua @@ -0,0 +1,28 @@ +package("libx11") + + set_homepage("https://www.x.org/") + set_description("X.Org: Core X11 protocol client library") + + set_urls("https://www.x.org/archive/individual/lib/libX11-$(version).tar.bz2") + add_versions("1.6.9", "9cc7e8d000d6193fa5af580d50d689380b8287052270f5bb26a5fb6b58b2bed1") + + add_deps("autoconf", "util-macros", "xtrans", "libxcb", "xorgproto") + + on_install("macosx", "linux", function (package) + local configs = {"--sysconfdir=" .. package:installdir("etc"), + "--localstatedir=" .. package:installdir("var"), + "--disable-dependency-tracking", + "--disable-silent-rules", + "--enable-unix-transport", + "--enable-tcp-transport", + "--enable-ipv6", + "--enable-local-transport", + "--enable-loadable-i18n", + "--enable-xthreads", + "--enable-specs=no"} + import("package.tools.autoconf").install(package, configs) + end) + + on_test(function (package) + assert(package:has_cfuncs("XOpenDisplay", {includes = "X11/Xlib.h"})) + end)