add some libs for x11

pull/89/head
ruki 4 years ago
parent 50f658fb8d
commit a2b1ffdd63
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 18
      packages/l/libelf/xmake.lua
  2. 23
      packages/l/libxdamage/xmake.lua
  3. 23
      packages/l/libxshmfence/xmake.lua
  4. 23
      packages/l/libxv/xmake.lua
  5. 23
      packages/l/libxvmc/xmake.lua

@ -0,0 +1,18 @@
package("libelf")
set_homepage("https://web.archive.org/web/20181111033959/www.mr511.de/software/english.html")
set_description("ELF object file access library")
set_urls("https://dl.bintray.com/homebrew/mirror/libelf-$(version).tar.gz")
add_versions("0.8.13", "591a9b4ec81c1f2042a97aa60564e0cb79d041c52faa7416acb38bc95bd2c76d")
on_install("linux", function (package)
local configs = {"--disable-debug",
"--disable-dependency-tracking",
"--disable-compat"}
import("package.tools.autoconf").install(package, configs)
end)
on_test(function (package)
assert(package:has_cfuncs("elf_begin", {includes = "libelf/gelf.h"}))
end)

@ -0,0 +1,23 @@
package("libxdamage")
set_homepage("https://www.x.org/")
set_description("X.Org: X Damage Extension library")
set_urls("https://www.x.org/archive/individual/lib/libXdamage-$(version).tar.bz2")
add_versions("1.1.5", "b734068643cac3b5f3d2c8279dd366b5bf28c7219d9e9d8717e1383995e0ea45")
if is_plat("macosx", "linux") then
add_deps("pkg-config", "libx11", "libxfixes", "xorgproto")
end
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("XDamageNotifyEvent", {includes = "X11/extensions/Xdamage.h"}))
end)

@ -0,0 +1,23 @@
package("libxshmfence")
set_homepage("https://www.x.org/")
set_description("X.Org: Shared memory 'SyncFence' synchronization primitive")
set_urls("https://www.x.org/archive/individual/lib/libxshmfence-$(version).tar.bz2")
add_versions("1.3", "b884300d26a14961a076fbebc762a39831cb75f92bed5ccf9836345b459220c7")
if is_plat("macosx", "linux") then
add_deps("pkg-config", "xorgproto")
end
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("struct xshmfence", {includes = "X11/xshmfence.h"}))
end)

@ -0,0 +1,23 @@
package("libxv")
set_homepage("https://www.x.org/")
set_description("X.Org: X Video (Xv) extension")
set_urls("https://www.x.org/archive/individual/lib/libXv-$(version).tar.bz2")
add_versions("1.0.11", "d26c13eac99ac4504c532e8e76a1c8e4bd526471eb8a0a4ff2a88db60cb0b088")
if is_plat("macosx", "linux") then
add_deps("pkg-config", "libx11", "libxext", "xorgproto")
end
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("XvEvent", {includes = {"X11/Xlib.h", "X11/extensions/Xvlib.h"}}))
end)

@ -0,0 +1,23 @@
package("libxvmc")
set_homepage("https://www.x.org/")
set_description("X.Org: X-Video Motion Compensation API")
set_urls("https://www.x.org/archive/individual/lib/libXvMC-$(version).tar.bz2")
add_versions("1.0.12", "6b3da7977b3f7eaf4f0ac6470ab1e562298d82c4e79077765787963ab7966dcd")
if is_plat("macosx", "linux") then
add_deps("pkg-config", "util-macros", "libx11", "libxext", "libxv", "xorgproto")
end
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("XvPortID", {includes = {"X11/Xlib.h", "X11/extensions/XvMClib.h"}}))
end)
Loading…
Cancel
Save