# -*- 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
set major [lindex [split ${version} .] 0]
description Just Another Gibbs Sampler
long_description JAGS is a program for analysis of Bayesian hierarchical \
models using Markov Chain Monte Carlo (MCMC) simulation, \
homepage http://mcmc-jags.sourceforge.net/
master_sites sourceforge:project/mcmc-jags/JAGS/${major}.x/Source
checksums rmd160 fd89f4b34d8866f19b1a72e181b56f1675d27b07 \
sha256 8ac5dd57982bfd7d5f0ee384499d62f3e0bb35b5f1660feb368545f1186371fc
# test deps pkgconfig and cppunit have to be added in build to work
depends_build-append port:coreutils \
compilers.choose cc cxx f77
compilers.setup require_fortran
# note: BLAS/LAPACK is an optional dependency
configure.args-append --with-blas='-framework Accelerate'
configure.cxxflags-append \
# note: actually seems to contain source of SuiteSparse, which is another port
livecheck.type sourceforge
livecheck.regex /JAGS-(\[0-9.\]+)${extract.suffix}