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

159.2. geos-3.15.0

Computational geometry library for GIS software

3.15.0-1 · LGPL-2.1-or-later · 15.8 SBU · 11.0 MiB, 563 files · 41_system, 343 of 1047 · ports/core/gis/geos

Homepage: https://libgeos.org/

Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/gis.txt:

geos links nothing, which is why it is first in the GIS chain — proj and gdal are both built against it.

Depends on: cmake, ninja.

Required by (5): gdal, librttopo, libspatialite, python3-shapely, qgis.

Sources: geos-3.15.0.tar.bz2 (6.8 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 geos'

build.sh:

mkdir -p build && cd build
cmake .. -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCMAKE_INSTALL_LIBDIR=lib \
	-DBUILD_SHARED_LIBS=ON \
	-DBUILD_TESTING=OFF \
	-DBUILD_DOCUMENTATION=OFF
ninja
DESTDIR=$PKG ninja install

Programs: geos-config, geosop.

Libraries: libgeos.so, libgeos_c.so.

Directories: /usr/include/geos, /usr/lib/cmake/GEOS, /usr/share/licenses/geos.