diff --git a/packages/s/soil2/xmake.lua b/packages/s/soil2/xmake.lua index 265a83b42..e7f699c42 100644 --- a/packages/s/soil2/xmake.lua +++ b/packages/s/soil2/xmake.lua @@ -11,7 +11,10 @@ package("soil2") end add_deps("cmake") - add_deps("opengl") + add_deps("opengl", {optional = true}) + if is_plat("linux") then + add_deps("libx11", "libxrandr", "libxrender", "libxinerama", "libxcursor", "libxi", "libxfixes", "libxext") + end if on_check then on_check("windows", function (package) @@ -26,7 +29,7 @@ package("soil2") end) end - on_install("!android and !wasm and !cross and !iphoneos", function (package) + on_install("!android and !wasm and !cross and !iphoneos and !bsd", function (package) io.replace("CMakeLists.txt", "$<$:-fPIC>", "", {plain = true}) io.replace("CMakeLists.txt", "$<$:-fPIC>", "", {plain = true})