# -*- 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: Portfile 120319 2014-05-23 04:43:27Z aronnax@macports.org $

PortSystem         1.0

name               skymaker
version            3.10.5
categories         science
platforms          darwin
maintainers        saao.ac.za:tim
license            GPL-3+

description        SkyMaker is a program that simulates astronomical images.

long_description   \
    SkyMaker is a tool that takes catalogs generated by Stuff and creates \
    realistic simulated images of the sky.  The documentation is still \
    fairly sparse.  See the paper at: \
    http://adsabs.harvard.edu/abs/2009MmSAI..80..422B \
    for details.

homepage           http://www.astromatic.net/software/skymaker/
master_sites       http://www.astromatic.net/download/skymaker/
checksums          md5     61c9c5297a5d48c8bad7f6f700ebadaa \
                   sha1    0e11eb66f5d23f12cf6dc967ef4ade5328a662ca \
                   rmd160  207fe8140b1aba1ad21b2d0a053013a529915f2a

depends_lib        port:fftw-3-single
universal_variant  no

configure.fc               ${prefix}/bin/no-possible-compiler
eval configure.cflags-append  ${configure.cppflags}
configure.args             --disable-threads \
                           --with-fftw=${prefix}/lib \
                           --with-fftw-incdir=${prefix}/include

post-destroot {
    set docdir ${destroot}${prefix}/share/doc
    xinstall -m 755 -d ${docdir}
    copy ${worksrcpath}/doc ${docdir}/${name}
    xinstall -m 644 -W ${worksrcpath} \
        README \
        AUTHORS \
        COPYRIGHT \
        ChangeLog \
        BUGS \
        HISTORY \
        THANKS \
        ${docdir}/${name}
}

livecheck.type     regex
livecheck.url      [lindex ${master_sites} 0]
livecheck.regex    ${name}-(\[0-9.\]+)\\.tar
