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.
21 lines
599 B
21 lines
599 B
package("glut") |
|
|
|
set_homepage("https://www.opengl.org/resources/libraries/glut/") |
|
set_description("OpenGL utility toolkit") |
|
|
|
if not is_plat("macosx") then |
|
add_deps("freeglut") |
|
end |
|
|
|
on_fetch(function (package, opt) |
|
if opt.system then |
|
if package:is_plat("macosx") then |
|
return {frameworks = {"GLUT", "OpenGL"}, defines = "GL_SILENCE_DEPRECATION"} |
|
end |
|
else |
|
local freeglut = package:dep("freeglut") |
|
if freeglut then |
|
return freeglut:fetch(opt) |
|
end |
|
end |
|
end)
|
|
|