# -*- 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
description mesh and field I/O library and scientific database
long_description ${description}. Select a Fortran compiler variant to enable Fortran support.
homepage https://wci.llnl.gov/simulation/computer-codes/silo/
master_sites https://wci.llnl.gov/content/assets/docs/simulation/computer-codes/silo/silo-${version}/
distname ${name}-${version}-bsd
checksums rmd160 f15098dfc58f86146bf87fc651bd6580aca71178 \
sha256 4b901dfc1eb4656e83419a6fde15a2f6c6a31df84edfad7f1dc296e01b20140e
compilers.choose fc f77 f90
configure.args --enable-optimization \
--enable-install-lite-headers \
default_variants-append +hdf5
variant hdf5 description {Enable HDF5 support (recommended)} {
depends_lib-append port:hdf5
configure.args-append --with-hdf5=${prefix}
# note: this does not work if hdf5 is installed with an MPI variant
# If using a macports-installed GCC, which includes a compatible fortran
# compiler, compile fortran bindings
if {[fortran_variant_isset]} {
configure.args-replace --disable-fortran --enable-fortran
livecheck.url ${homepage}downloads
livecheck.regex ${name}-(\[0-9.\]+)-bsd