# -*- 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.2.10 v
github.tarball_from     releases
categories              science
maintainers             {aronnax @lpsinger} openmaintainer
license                 LGPL-3+
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  88459c7d3db3773b4586b9154f299bfdd207cba3 \
                        sha256  5a7ff2a65bcb80db062d7f25341a199725863571c5610f8e177a7636fcdc8ff4 \
                        size    18689893

patchfiles              dynamic_lookup-11.patch

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

# yamlchan.c: error: 'for' loop initial declaration used outside C99 mode
configure.cflags-append -std=c99
