# -*- 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 118150 2014-03-23 20:35:02Z takeshi@macports.org $

PortSystem                      1.0
PortGroup                       cmake 1.0

name                            armadillo
version                         4.100.2
categories                      science
platforms                       darwin
maintainers                     gmail.com:christian.frisson openmaintainer
license                         MPL-2.0

description                     Armadillo C++ linear algebra library

long_description                Armadillo is a C++ linear algebra library (matrix maths) \
                                aiming towards a good balance between speed and ease of use. \
                                Integer, floating point and complex numbers are supported, \
                                as well as a subset of trigonometric and statistics functions. \
                                Various matrix decompositions are provided through optional \
                                integration with LAPACK or high-performance LAPACK-compatible \
                                libraries.

homepage                        http://arma.sf.net/
master_sites                    sourceforge:project/arma

checksums                       rmd160  d9c9779bc4fbf865f4655152f5cc5abf54fb266b \
                                sha256  edd8695ce4f84196626cc56a17247a955506d9a140d23d6b1df0924b19146275

patchfiles-append               patch-system-include.diff

depends_build-append            port:pkgconfig

depends_lib-append              port:boost \
                                port:hdf5-18

configure.args-append           -DARPACK_LIBRARY=

livecheck.regex                 /${name}-(\[0-9.\]+)${extract.suffix}

variant arpack description {compile with ARPACK support} {
    depends_lib-append      port:arpack
    configure.args-delete   -DARPACK_LIBRARY=
}
