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

157.7. cspice-67.0.0.git20260416

NASA NAIF's SPICE toolkit (N0067) for planetary ephemerides and observation geometry, as a shared C library

67.0.0.git20260416-2 · LicenseRef-NAIF · 0.1 SBU · 8.2 MiB, 89 files · 41_system, 105 of 1047 · ports/core/astronomy/cspice

Homepage: https://naif.jpl.nasa.gov/naif/toolkit.html

Depends on: cmake, ninja.

Required by (2): celestia, sdrangel.

Sources: cspice-67.0.0.git20260416.tar.gz (8.6 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 cspice'

build.sh:

HOME="$SRC_ROOT" cmake -B build -G Ninja \
	-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DCSPICE_BUILD_STATIC_LIBRARY=OFF \
	-DINSTALL_LIB_DIR=/usr/lib \
	-DINSTALL_BIN_DIR=/usr/bin \
	-DINSTALL_INCLUDE_DIR=/usr/include/cspice \
	-DINSTALL_DATA_DIR=/usr/share \
	-DINSTALL_CMAKE_DIR=/usr/lib/cmake/cspice
ninja -C build
DESTDIR=$PKG ninja -C build install
install -Dm644 README.md "$PKG/usr/share/licenses/$name/README.md"
sed -n '/^-Disclaimer/,/^-Required_Reading/{/^-Required_Reading/!p}' include/SpiceUsr.h \
	> "$PKG/usr/share/licenses/$name/DISCLAIMER"
grep -q 'WITHOUT WARRANTY OF ANY KIND' "$PKG/usr/share/licenses/$name/DISCLAIMER"

test -f "$PKG/usr/lib/libcspice.so"
test -f "$PKG/usr/include/cspice/SpiceUsr.h"

Libraries: libcspice.so.

Directories: /usr/include/cspice, /usr/lib/cmake/cspice, /usr/share/cspice, /usr/share/licenses/cspice.