Skip to content

Commit 647e2a7

Browse files
xq114Copilot
andcommitted
add pkgconfig sources
Co-authored-by: Copilot <copilot@github.com>
1 parent 52fe5c9 commit 647e2a7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/g/glu/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ package("glu")
1111
end
1212
if opt.system then
1313
if package:is_plat("linux") and package.find_package then
14-
return package:find_package("GLU", opt)
14+
return package:find_package("GLU", opt) or package:find_package("pkgconfig::libglu", opt)
1515
end
1616
end
1717
end)

packages/g/glx/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ package("glx")
66
on_fetch(function (package, opt)
77
if opt.system then
88
if package:is_plat("linux") and package.find_package then
9-
return package:find_package("GLX", opt)
9+
return package:find_package("GLX", opt) or package:find_package("pkgconfig::libglx", opt)
1010
end
1111
end
1212
end)

packages/o/opengl/xmake.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ package("opengl")
1212
end
1313
if opt.system then
1414
if package:is_plat("linux") and package.find_package then
15-
return package:find_package("OpenGL", opt) or package:find_package("GL", opt)
15+
return package:find_package("OpenGL", opt) or package:find_package("GL", opt) or package:find_package("pkgconfig::libopengl", opt) or package:find_package("pkgconfig::libgl", opt)
1616
end
1717
end
1818
end)

0 commit comments

Comments
 (0)