193.8. glfw-3.5.1
A window, a GL or Vulkan context and input — Wayland first, X11 under Xwayland as the fallback
3.5.1-1 · Zlib · 0.6 SBU · 677.1 KiB, 11 files · 42_graphics, 74 of 189 · ports/core/gpu/glfw
Homepage: https://www.glfw.org/
Why it is in KDOS. The comment above glew and glfw in script/phases/42_graphics/packages.d/gpu.txt:
The GL loader and window the GL programs and games open.
Depends on: cmake, ninja, pkgconf, wayland, libxkbcommon, libdecor, libglvnd, mesa, vulkan-loader, libX11, libXrandr, libXinerama, libXcursor, libXi, libXext, libXrender, libXxf86vm.
Required by (5): goxel, imhex, orcaslicer, satdump, sdrpp.
Sources: glfw-3.5.1.tar.gz (892.8 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install glfw'
build.sh:
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DGLFW_BUILD_WAYLAND=ON \
-DGLFW_BUILD_X11=ON \
-DGLFW_BUILD_EXAMPLES=OFF \
-DGLFW_BUILD_TESTS=OFF \
-DGLFW_BUILD_DOCS=OFF \
-DGLFW_INSTALL=ON
ninja -C build
DESTDIR=$PKG ninja -C build install
Libraries: libglfw.so.
Directories: /usr/include/GLFW, /usr/lib/cmake/glfw3, /usr/share/licenses/glfw.