# -*- 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
# $Id$
PortSystem      1.0
PortGroup       compilers 1.0

name            fitsverify
conflicts       fitsverify-devel
version         4.21
revision        8
categories      science
license         MIT
platforms       darwin
maintainers     eso.org:usd-help
description     A FITS File Format-Verification Tool
long_description Fitsverify is a computer program that rigorously checks whether a \
                 FITS (Flexible Image Transport System) data file conforms to the \
                 requirements defined in Version 3.0 of the FITS Standard document.
homepage        https://heasarc.gsfc.nasa.gov/docs/software/ftools/fitsverify
master_sites    https://ftp.eso.org/pub/dfs/pipelines/libraries/fitsverify
checksums       rmd160 cb7792b822e0e6f222653ff3f1d070abf85b9f9c \
                sha256 502e373ab9d679a0fd0ac8d6063e2f8bf4e738dfd8433e1e4b5e7bd6d984c2e5

depends_lib     port:cfitsio

use_configure   no
use_parallel_build  no

post-extract {
    copy ${filespath}/Makefile ${worksrcpath}/Makefile
}

build.args  CPPFLAGS=-DSTANDALONE \
            CFLAGS="-I${worksrcpath} -I${prefix}/include" \
            LIBS="-L${prefix}/lib -lcfitsio"

destroot.args   BINDIR=${prefix}/bin

test.run        no
