package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
900 B

package("libglvnd")
set_homepage("https://gitlab.freedesktop.org/glvnd/libglvnd")
set_description("libglvnd: the GL Vendor-Neutral Dispatch library")
add_urls("https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/$(version)/libglvnd-$(version).tar.gz",
"https://gitlab.freedesktop.org/glvnd/libglvnd.git")
add_versions("v1.3.4", "c42061da999f75234f9bca501c21144d9a5768c5911d674eceb8650ce3fb94bb")
add_configs("shared", {description = "Build shared library.", default = true, type = "boolean", readonly = true})
if is_plat("linux") then
add_extsources("apt::libglvnd-dev")
end
add_deps("meson", "ninja", "pkg-config")
on_install("linux", function (package)
import("package.tools.meson").install(package)
end)
on_test(function (package)
assert(package:has_cfuncs("glInitNames", {includes = "GL/gl.h"}))
end)