123456789101112131415161718 |
- package("opengl")
- set_homepage("https://opengl.org/")
- set_description("OpenGL - The Industry Standard for High Performance Graphics")
- on_fetch(function (package, opt)
- -- we always get it from compiler toolchain
- if package:is_plat("macosx") then
- return {frameworks = "OpenGL", defines = "GL_SILENCE_DEPRECATION"}
- elseif package:is_plat("windows", "mingw") then
- return {links = "opengl32"}
- end
- if opt.system then
- if package:is_plat("linux") and package.find_package then
- return package:find_package("opengl", opt) or package:find_package("libgl", opt)
- end
- end
- end)
|