157.8. sgp4-3.0
C++ library for satellite orbit propagation from two-line element sets
3.0-1 · Apache-2.0 · 2.5 SBU · 393.1 KiB, 26 files · 41_system, 106 of 1047 · ports/core/astronomy/sgp4
Homepage: https://github.com/dnwrnr/sgp4
Required by (1): sdrangel.
Sources: sgp4-3.0.tar.gz (60.2 KiB), googletest-1.14.0.tar.gz (847.4 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install sgp4'
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 \
-DBUILD_TESTS=OFF \
-DBUILD_EXAMPLES=OFF \
-DFETCHCONTENT_FULLY_DISCONNECTED=ON \
-DFETCHCONTENT_SOURCE_DIR_GOOGLETEST="$SRC_ROOT/googletest-$_gtest"
ninja -C build
DESTDIR=$PKG ninja -C build install
test -f "$PKG/usr/lib/libsgp4s.so"
test -f "$PKG/usr/include/libsgp4/SGP4.h"
Libraries: libsgp4.a, libsgp4s.so.
Directories: /usr/include/libsgp4, /usr/lib/cmake/SGP4, /usr/share/licenses/sgp4.