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

name            libnova
version         0.15.0
categories      science
platforms       darwin
maintainers     nomaintainer
license         LGPL-2+

description     Celestial Mechanics, Astrometry and Astrodynamics Library
long_description \
    libnova is a general purpose, double precision, Celestial Mechanics, \
    Astrometry and Astrodynamics library. The intended audience of libnova \
    is C / C++ programmers, astronomers and anyone else interested in \
    calculating positions of astronomical objects or celestial mechanics. \
    libnova is the calculation engine used by the Nova project and most \
    importantly, is free software.
homepage        http://libnova.sourceforge.net/
master_sites    sourceforge:project/libnova/libnova/v%20${version}

checksums       rmd160  ce71fd30124296d22a1f6eb7f306d2e824597948 \
                sha256  7c5aa33e45a3e7118d77df05af7341e61784284f1e8d0d965307f1663f415bb1

depends_build   port:libtool

patchfiles      patch-configure.diff

build.args      LIBTOOL=${prefix}/bin/glibtool

destroot.args   LIBTOOL=${prefix}/bin/glibtool

livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}
