Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/g/glu/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ package("glu")
end
if opt.system then
if package:is_plat("linux") and package.find_package then
return package:find_package("glu", opt) or package:find_package("libglu", opt)
return package:find_package("GLU", opt) or package:find_package("pkgconfig::glu", opt)
end
end
end)

if is_plat("linux") then
add_extsources("apt::libglu1-mesa-dev")
end
6 changes: 5 additions & 1 deletion packages/g/glx/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ package("glx")
on_fetch(function (package, opt)
if opt.system then
if package:is_plat("linux") and package.find_package then
return package:find_package("glx", opt) or package:find_package("libglx", opt)
return package:find_package("GLX", opt) or package:find_package("pkgconfig::glx", opt)
end
end
end)

if is_plat("linux") then
add_extsources("apt::libglx-dev")
end
6 changes: 5 additions & 1 deletion packages/o/opengl/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ package("opengl")
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)
return package:find_package("OpenGL", opt) or package:find_package("GL", opt) or package:find_package("pkgconfig::opengl", opt) or package:find_package("pkgconfig::gl", opt)
end
end
end)

if is_plat("linux") then
add_extsources("apt::libopengl-dev")
end
Loading