Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

142.2. glm-1.0.3

OpenGL Mathematics: header-only C++ vectors and matrices in GLSL's terms

1.0.3-1 · MIT · 0.1 SBU · 2.1 MiB, 436 files · 41_system, 562 of 1047 · ports/core/game-libs/glm

Homepage: https://github.com/g-truc/glm

Depends on: cmake, ninja.

Required by (7): horizon-eda, imhex, kicad, libetonyek, libreoffice, organicmaps, supertux.

Sources: glm-1.0.3.tar.gz (4.4 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install glm'

build.sh:

mkdir -p build && cd build
cmake .. -G Ninja \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DGLM_BUILD_LIBRARY=OFF \
	-DGLM_BUILD_TESTS=OFF \
	-DGLM_BUILD_INSTALL=ON
ninja
DESTDIR=$PKG ninja install

install -Dm644 /dev/stdin "$PKG/usr/lib/pkgconfig/glm.pc" <<PC
prefix=/usr
includedir=\${prefix}/include

Name: GLM
Description: OpenGL Mathematics
Version: $version
Cflags: -I\${includedir}
PC

Directories: /usr/include/glm, /usr/share/glm, /usr/share/licenses/glm.