Bladeren bron

add some libs for libx11

ruki 4 jaren geleden
bovenliggende
commit
c8d7599359

+ 1 - 1
packages/l/libx11/xmake.lua

@@ -6,7 +6,7 @@ package("libx11")
     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")
+    add_deps("pkg-config", "util-macros", "xtrans", "libxcb", "xorgproto")
 
     on_install("macosx", "linux", function (package)
         local configs = {"--sysconfdir=" .. package:installdir("etc"),

+ 1 - 1
packages/l/libxau/xmake.lua

@@ -6,7 +6,7 @@ package("libxau")
     set_urls("https://www.x.org/archive/individual/lib/libXau-$(version).tar.bz2")
     add_versions("1.0.9", "ccf8cbf0dbf676faa2ea0a6d64bcc3b6746064722b606c8c52917ed00dcb73ec")
 
-    add_deps("autoconf", "util-macros", "xorgproto")
+    add_deps("pkg-config", "util-macros", "xorgproto")
 
     on_install("macosx", "linux", function (package)
         local configs = {"--sysconfdir=" .. package:installdir("etc"),

+ 21 - 0
packages/l/libxcursor/xmake.lua

@@ -0,0 +1,21 @@
+package("libxcursor")
+
+    set_homepage("https://www.x.org/")
+    set_description("X.Org: X Window System Cursor management library")
+
+    set_urls("https://www.x.org/archive/individual/lib/libXcursor-$(version).tar.bz2")
+    add_versions("1.2.0", "3ad3e9f8251094af6fe8cb4afcf63e28df504d46bfa5a5529db74a505d628782")
+
+    add_deps("pkg-config", "util-macros", "libx11", "libxfixes", "libxrender")
+
+    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)
+        assert(package:has_ctypes("XcursorFileHeader", {includes = "X11/Xcursor/Xcursor.h"}))
+    end)

+ 1 - 1
packages/l/libxdmcp/xmake.lua

@@ -6,7 +6,7 @@ package("libxdmcp")
     set_urls("https://www.x.org/archive/individual/lib/libXdmcp-$(version).tar.bz2")
     add_versions("1.1.3", "20523b44aaa513e17c009e873ad7bbc301507a3224c232610ce2e099011c6529")
 
-    add_deps("autoconf", "xorgproto")
+    add_deps("pkg-config", "xorgproto")
 
     on_install("macosx", "linux", function (package)
         local configs = {"--sysconfdir=" .. package:installdir("etc"),

+ 22 - 0
packages/l/libxext/xmake.lua

@@ -0,0 +1,22 @@
+package("libxext")
+
+    set_homepage("https://www.x.org/")
+    set_description("X.Org: Library for common extensions to the X11 protocol")
+
+    set_urls("https://www.x.org/archive/individual/lib/libXext-$(version).tar.bz2")
+    add_versions("1.3.4", "59ad6fcce98deaecc14d39a672cf218ca37aba617c9a0f691cac3bcd28edf82b")
+
+    add_deps("pkg-config", "libx11", "xorgproto")
+
+    on_install("macosx", "linux", function (package)
+        local configs = {"--sysconfdir=" .. package:installdir("etc"),
+                         "--localstatedir=" .. package:installdir("var"),
+                         "--disable-dependency-tracking",
+                         "--disable-silent-rules",
+                         "--enable-specs=no"}
+        import("package.tools.autoconf").install(package, configs)
+    end)
+
+    on_test(function (package)
+        assert(package:has_ctypes("XShapeEvent", {includes = "X11/extensions/shape.h"}))
+    end)

+ 21 - 0
packages/l/libxfixes/xmake.lua

@@ -0,0 +1,21 @@
+package("libxfixes")
+
+    set_homepage("https://www.x.org/")
+    set_description("X.Org: Header files for the XFIXES extension")
+
+    set_urls("https://www.x.org/archive/individual/lib/libXfixes-$(version).tar.bz2")
+    add_versions("5.0.3", "de1cd33aff226e08cefd0e6759341c2c8e8c9faf8ce9ac6ec38d43e287b22ad6")
+
+    add_deps("pkg-config", "libx11", "xorgproto")
+
+    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)
+        assert(package:has_ctypes("XFixesSelectionNotifyEvent", {includes = "X11/extensions/Xfixes.h"}))
+    end)

+ 23 - 0
packages/l/libxi/xmake.lua

@@ -0,0 +1,23 @@
+package("libxi")
+
+    set_homepage("https://www.x.org/")
+    set_description("X.Org: Library for the X Input Extension")
+
+    set_urls("https://www.x.org/archive/individual/lib/libXi-$(version).tar.bz2")
+    add_versions("1.7.10", "36a30d8f6383a72e7ce060298b4b181fd298bc3a135c8e201b7ca847f5f81061")
+
+    add_deps("pkg-config", "libx11", "libxext", "libxfixes", "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",
+                         "--enable-specs=no"}
+        import("package.tools.autoconf").install(package, configs)
+    end)
+
+    on_test(function (package)
+        assert(package:has_ctypes("XDeviceButtonEvent", {includes = "X11/extensions/XInput.h"}))
+    end)

+ 21 - 0
packages/l/libxinerama/xmake.lua

@@ -0,0 +1,21 @@
+package("libxinerama")
+
+    set_homepage("https://www.x.org/")
+    set_description("X.Org: API for Xinerama extension to X11 Protocol")
+
+    set_urls("https://www.x.org/archive/individual/lib/libXinerama-$(version).tar.bz2")
+    add_versions("1.1.4", "0008dbd7ecf717e1e507eed1856ab0d9cf946d03201b85d5dcf61489bb02d720")
+
+    add_deps("pkg-config", "libx11", "libxext", "xorgproto")
+
+    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)
+        assert(package:has_ctypes("XineramaScreenInfo", {includes = "X11/extensions/Xinerama.h"}))
+    end)

+ 21 - 0
packages/l/libxrandr/xmake.lua

@@ -0,0 +1,21 @@
+package("libxrandr")
+
+    set_homepage("https://www.x.org/")
+    set_description("X.Org: X Resize, Rotate and Reflection extension library")
+
+    set_urls("https://www.x.org/archive/individual/lib/libXrandr-$(version).tar.bz2")
+    add_versions("1.5.2", "8aea0ebe403d62330bb741ed595b53741acf45033d3bda1792f1d4cc3daee023")
+
+    add_deps("pkg-config", "libx11", "libxext", "libxrender", "xorgproto")
+
+    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)
+        assert(package:has_ctypes("XRRScreenSize", {includes = "X11/extensions/Xrandr.h"}))
+    end)

+ 21 - 0
packages/l/libxrender/xmake.lua

@@ -0,0 +1,21 @@
+package("libxrender")
+
+    set_homepage("https://www.x.org/")
+    set_description("X.Org: Library for the Render Extension to the X11 protocol")
+
+    set_urls("https://www.x.org/archive/individual/lib/libXrender-$(version).tar.bz2")
+    add_versions("0.9.10", "c06d5979f86e64cabbde57c223938db0b939dff49fdb5a793a1d3d0396650949")
+
+    add_deps("pkg-config", "libx11", "xorgproto")
+
+    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)
+        assert(package:has_ctypes("XRenderColor", {includes = "X11/extensions/Xrender.h"}))
+    end)

+ 1 - 1
packages/x/xcb-proto/xmake.lua

@@ -6,7 +6,7 @@ package("xcb-proto")
     set_urls("https://xcb.freedesktop.org/dist/xcb-proto-$(version).tar.bz2")
     add_versions("1.13", "7b98721e669be80284e9bbfeab02d2d0d54cd11172b72271e47a2fe875e2bde1")
 
-    add_deps("autoconf", "python 3.x")
+    add_deps("pkg-config", "python 3.x")
 
     on_install("macosx", "linux", function (package)
         local configs = {"--sysconfdir=" .. package:installdir("etc"),

+ 1 - 1
packages/x/xorgproto/xmake.lua

@@ -6,7 +6,7 @@ package("xorgproto")
     set_urls("https://xorg.freedesktop.org/archive/individual/proto/xorgproto-$(version).tar.bz2")
     add_versions("2019.2", "46ecd0156c561d41e8aa87ce79340910cdf38373b759e737fcbba5df508e7b8e")
 
-    add_deps("autoconf", "util-macros")
+    add_deps("pkg-config", "util-macros")
 
     on_install("macosx", "linux", function (package)
         local configs = {"--sysconfdir=" .. package:installdir("etc"),

+ 1 - 1
packages/x/xtrans/xmake.lua

@@ -6,7 +6,7 @@ package("xtrans")
     set_urls("https://www.x.org/archive/individual/lib/xtrans-$(version).tar.bz2")
     add_versions("1.4.0", "377c4491593c417946efcd2c7600d1e62639f7a8bbca391887e2c4679807d773")
 
-    add_deps("autoconf", "util-macros", "xorgproto")
+    add_deps("pkg-config", "util-macros", "xorgproto")
 
     on_install("macosx", "linux", function (package)
         local configs = {"--sysconfdir=" .. package:installdir("etc"),