# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4

PortSystem              1.0
PortGroup               compilers 1.0
PortGroup               github 1.0

github.setup            Starlink ast 9.0.1 v
github.tarball_from     releases
platforms               darwin
categories              science
maintainers             {aronnax @lpsinger} openmaintainer
license                 GPL-2+
description             StarLink Astrometry Library
long_description \
    AST provides a comprehensive range of facilities for attaching world \
    coordinate systems (such as RA/Dec, frequency, etc) to astronomical data, \
    for retrieving and interpreting that information and for generating \
    graphical output based on it.

checksums               rmd160  939b27843a1b42b446d1e6d0c1d180db31bebb74 \
                        sha256  22c2b0bd8f9508771b9335b5dcef166eb70d5614898d8190c5c75b2034253968 \
                        size    18260302

universal_variant       no

compilers.choose        fc f77 f90
compilers.setup         require_fortran

depends_lib-append      port:erfa

destroot.args-append    stardocsdir=${prefix}/share/docs \
                        starexamplesdir=${prefix}/share/examples \
                        starfacsdir=${prefix}/share/help \
                        starhelpdir=${prefix}/share/help \
                        starnewsdir=${prefix}/share/news \
                        STAR_MANIFEST_DIR=${prefix}/share/manifests