# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
license zlib MIT {LGPL Noncommercial}
maintainers {gmail.com:Deil.Christoph @cdeil} openmaintainer
description C access to FITS data files with optional Fortran wrappers
long_description CFITSIO is a library of C and Fortran subroutines for \
reading and writing data files in FITS (Flexible Image \
Transport System) data format. CFITSIO simplifies the \
task of writing software that deals with FITS files by \
providing an easy to use set of high-level routines that \
insulate the programmer from the internal complexities \
of the FITS file format. At the same time, CFITSIO \
provides many advanced features that have made it the \
most widely used FITS file programming interface in the \
homepage https://heasarc.gsfc.nasa.gov/fitsio/
master_sites https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/
distname ${name}[strsed ${version} {g/\.//}]
checksums rmd160 395981944c8db05cf0e6352c5d2e7424612f63af \
sha256 dd1cad4208fb7a9462914177f26672ccfb21fc8a1f6366e41e7b69b13ad7fd24
patchfiles patch-configure.diff patch-Makefile.in.diff
# turn off FORTRAN compiler wrappers by removing FORTRAN from the path
if {![fortran_variant_isset]} {
configure.cflags -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
configure.universal_args-delete --disable-dependency-tracking
reinplace "s|@@MPORTS_PREFIX@@|${prefix}|" ${worksrcpath}/configure
system "ranlib ${destroot}${prefix}/lib/libcfitsio.a"
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 -d ${docdir}
{*}[glob ${worksrcpath}/*.txt] \