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.
 
 
 

27 lines
1.1 KiB

package("libepoxy")
set_homepage("https://download.gnome.org/sources/libepoxy/")
set_description("Epoxy is a library for handling OpenGL function pointer management for you.")
set_license("MIT")
add_urls("https://download.gnome.org/sources/libepoxy/$(version).tar.xz", {version = function (version)
return format("%d.%d/libepoxy-%s", version:major(), version:minor(), version)
end})
add_versions("1.5.9", "d168a19a6edfdd9977fef1308ccf516079856a4275cf876de688fb7927e365e4")
add_versions("1.5.10", "072cda4b59dd098bba8c2363a6247299db1fa89411dc221c8b81b8ee8192e623")
add_configs("shared", {description = "Build shared library.", default = true, type = "boolean", readonly = true})
if is_plat("linux") then
add_extsources("apt::libepoxy-dev")
add_deps("libx11", "pkg-config")
end
add_deps("meson", "ninja")
on_install("windows", "macosx", "linux", function (package)
import("package.tools.meson").install(package)
end)
on_test(function (package)
assert(package:has_cfuncs("epoxy_gl_version", {includes = "epoxy/gl.h"}))
end)