# -*- 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 68628 2010-06-08 11:52:42Z ryandesign@macports.org $

PortSystem         1.0

name               skymaker
version            3.3.3
revision           1
categories         science
platforms          darwin
maintainers        saao.ac.za:tim
license            CeCILL

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       ftp://ftp.iap.fr/pub/from_users/bertin/skymaker/
checksums          md5 0b523c2a89af9b548b4bfa736780575e \
                   sha1 781e4e1955a04bfadb74904243ddfd8f507839d5 \
                   rmd160 8f9809a1fcf6659a6d76b6d8f6cc1a9154306262

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
