# -*- 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

PortSystem          1.0
PortGroup           cmake 1.1
PortGroup           github 1.0

epoch               1
github.setup        HEASARC cfitsio 4.6.3 cfitsio-
revision            0
categories          science
license             zlib MIT {LGPL Noncommercial}
maintainers         nomaintainer

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 \
                    astronomical community.

homepage            https://heasarc.gsfc.nasa.gov/fitsio/
master_sites        https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/

checksums           rmd160  f2afbb2ff1643669648d4158cd652d33cf9b0c7c \
                    sha256  fad44fff274fdda5ffcc0c0fff3bc3c596362722b9292fc8944db91187813600 \
                    size    4661924

depends_lib-append  port:curl \
                    port:zlib

# error: redefinition of typedef ‘ParseData’
compiler.c_standard  2011

configure.cflags    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64

configure.args-append \
                    -DTESTS=OFF
