193.9. freeglut-3.8.0
The OpenGL Utility Toolkit (libglut), X11 and GLX, for GLUT programs run under Xwayland
3.8.0-1 · MIT · 1.0 SBU · 730.2 KiB, 101 files · 42_graphics, 82 of 189 · ports/core/gpu/freeglut
Homepage: https://freeglut.sourceforge.net/
Why it is in KDOS. The comment above it in script/phases/42_graphics/packages.d/gpu.txt:
The GLUT window mupdf-gl draws in.
Depends on: cmake, ninja, pkgconf, libglvnd, mesa, glu, libX11, libXrandr, libXxf86vm, libXi.
Required by (2): mupdf, opencolorio.
Sources: freeglut-3.8.0.tar.gz (526.1 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 freeglut'
build.sh:
cmake -B build -G Ninja \
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DFREEGLUT_BUILD_SHARED_LIBS=ON \
-DFREEGLUT_BUILD_STATIC_LIBS=OFF \
-DFREEGLUT_BUILD_DEMOS=OFF \
-DFREEGLUT_WAYLAND=OFF \
-DFREEGLUT_GLES=OFF \
-DFREEGLUT_REPLACE_GLUT=ON \
-DFREEGLUT_INSTALL_MAN_PAGES=ON \
-DOpenGL_GL_PREFERENCE=GLVND
ninja -C build
DESTDIR=$PKG ninja -C build install
Libraries: libglut.so.
Directories: /usr/lib/cmake/FreeGLUT, /usr/share/licenses/freeglut.