# -*- 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 52660 2009-06-20 21:14:00Z ryandesign@macports.org $

PortSystem 1.0

name              newmat
version           10
categories        math
maintainers       jameskyle

description       This C++ library is intended for scientists and engineers who need to manipulate a variety of types of matrices using standard matrix operations.

long_description  This C++ library is intended for scientists and engineers who need to manipulate a variety of types of matrices using standard matrix operations. Emphasis is on the kind of operations needed in statistical calculations such as least squares, linear equation solve and eigenvalues. It supports matrix types,e.g., Matrix (rectangular matrix), UpperTriangularMatrix, LowerTriangularMatrix, DiagonalMatrix, SymmetricMatrix, BandMatrix, UpperBandMatrix, LowerBandMatrix, SymmetricBandMatrix, IdentityMatrix, RowVector, ColumnVector.

homepage          http://www.robertnz.net
platforms         darwin
master_sites      http://www.robertnz.net/ftp/
distname          ${name}${version}

checksums         md5 cc7408a10ee3d4775fc5f86e523bf56a \
                  sha1 91cfcaba03f5fa69a3e3c77a9ce6762f7eb6b963 \
                  rmd160 90a396fa888d0f87c345c13262ccad2d9de4adf4

depends_build     port:cmake
configure.cmd     cmake

configure.pre_args
configure.args    -DCMAKE_INSTALL_PREFIX:PATH=${prefix}

use_parallel_build yes
extract.mkdir     yes
pre-configure {
  file copy ${filespath}/CMakeLists.txt ${worksrcpath}
}

livecheck.check    regex
livecheck.url      ${homepage}/download.html
livecheck.regex    {newmat([0-9.]+).tar.gz.*}
livecheck.md5      cc7408a10ee3d4775fc5f86e523bf56a
