# -*- 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                montage
version             6.0
revision            0
platforms           darwin
categories          science
maintainers         nomaintainer
description         Montage - Image Mosaic Software for Astronomers
long_description    Montage is a toolkit for assembling Flexible Image \
                    Transport System (FITS) images into custom mosaics

license             BSD

homepage            http://montage.ipac.caltech.edu/
master_sites        http://montage.ipac.caltech.edu/download/
distname            Montage_v${version}
checksums           rmd160  b057f43ed6286c95d9d5f911ae2a4baf1bfe80a2 \
                    sha256  1f540a7389d30fcf9f8cd9897617cc68b19350fbcde97c4d1cdc5634de1992c6 \
                    size    20681949

depends_lib-append  port:bzip2 \
                    port:cfitsio \
                    port:freetype \
                    path:include/turbojpeg.h:libjpeg-turbo \
                    port:wcslib \
                    port:wcstools

patchfiles          patch-lib-src-Makefile.diff

use_configure       no

destroot {
    file copy {*}[glob ${worksrcpath}/bin/m*] ${destroot}${prefix}/bin/
}

livecheck.type      regex
livecheck.url       http://montage.ipac.caltech.edu/docs/download2.html
livecheck.regex     Montage_v(\[0-9.\]+)${extract.suffix}
