157.1. cfitsio-4.7.0
Library for reading and writing FITS, the standard astronomical data format
4.7.0-1 · CFITSIO · 0.6 SBU · 2.4 MiB, 18 files · 41_system, 84 of 1047 · ports/core/astronomy/cfitsio
Homepage: https://heasarc.gsfc.nasa.gov/fitsio/
Why it is in KDOS. The comment above it in script/phases/41_system/packages.d/astronomy.txt:
Every instrument writes FITS and nothing else reads it.
Required by (7): gdal, gimp, gnuastro, gwenview, labplot, libvips, wcslib.
Sources: cfitsio-4.7.0.tar.gz (2.1 MiB). Every step kpkg takes applies to this port.
Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
--disable-curl, line 15: curl
Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install cfitsio'
build.sh:
export CFLAGS="$CFLAGS -D_GNU_SOURCE"
./configure --prefix=/usr --libdir=/usr/lib \
--enable-reentrant --enable-shared --disable-static --disable-curl \
--with-bzip2 F77=gfortran
make
make DESTDIR=$PKG install
rm -f "$PKG/usr/bin/cookbook" "$PKG/usr/bin/smem" "$PKG/usr/bin/speed"
Programs: fitscopy, fitsverify, fpack, funpack, imcopy.
Libraries: libcfitsio.so.
Directories: /usr/share/licenses/cfitsio.