121.1. qhull-8.0.2
Convex hulls, Delaunay triangulation and Voronoi diagrams
8.0.2-1 · Qhull · 1.6 SBU · 6.2 MiB, 77 files · 41_system, 242 of 1047 · ports/core/cad/qhull
Homepage: http://www.qhull.org/
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/cad.txt:
Delaunay triangulation. matplotlib downloads v8.0.2 by URL when system-qhull is off, so the version here is the one its meson names.
Depends on: cmake.
Required by (6): gdal, matplotlib, octave, orcaslicer, palapeli, prusaslicer.
Sources: qhull-8.0.2.tar.gz (1.2 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 qhull'
build.sh:
mkdir -p build && cd build
cmake .. -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_SKIP_RPATH=ON
make
make DESTDIR=$PKG install
test -f "$PKG/usr/lib/libqhull_r.so.$version"
test -z "$(readelf -d "$PKG/usr/lib/libqhull_r.so.$version" | grep -i "rpath\|runpath")"
Programs: qconvex, qdelaunay, qhalf, qhull, qvoronoi, rbox.
Libraries: libqhull_r.so, libqhullcpp.a, libqhullstatic.a, libqhullstatic_r.a.
Directories: /usr/include/libqhull, /usr/include/libqhull_r, /usr/include/libqhullcpp, /usr/lib/cmake/Qhull, /usr/share/doc/qhull, /usr/share/licenses/qhull.