xmake.lua 512 B

123456789101112
  1. package("glx")
  2. set_homepage("https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glXIntro.xml")
  3. set_description("an extension to the X Window System core protocol providing an interface between OpenGL and the X Window System")
  4. on_fetch(function (package, opt)
  5. if opt.system then
  6. if package:is_plat("linux") and package.find_package then
  7. return package:find_package("glx", opt) or package:find_package("libglx", opt)
  8. end
  9. end
  10. end)