# -*- 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 90246 2012-02-27 16:11:46Z macsforever2000@macports.org $

PortSystem          1.0

name                silo
version             4.8
revision            1
categories          science
platforms           darwin
maintainers         nomaintainer
license             BSD

description         mesh and field I/O library and scientific database

long_description    ${description}

homepage            https://wci.llnl.gov/codes/silo/
master_sites        ${homepage}silo-${version}/

checksums           sha1    8850c82e66d1d00f80041594e6f9b15f8efdfd4d \
                    rmd160  c5a9d278ce71808a421e1b1f10d18c83b51d98fd

distname            ${name}-${version}-bsd

depends_lib         port:zlib

use_parallel_build  yes

# Makefile:152: *** missing separator.  Stop.
configure.ccache    no

default_variants    +hdf5

configure.args      --enable-optimization \
                    --disable-fortran \
                    --with-zlib \
                    --without-qt

test.run            yes
test.target         check

variant hdf5 description {Enable HDF5 support (recommended)} {
    depends_lib-append      port:hdf5-18
    configure.args-append   --with-hdf5=${prefix}
}

livecheck.type      regex
livecheck.url       ${homepage}downloads.html
livecheck.regex     ${name}-(\[0-9.\]+)-bsd
