# -*- 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 83385 2011-08-31 01:52:26Z dports@macports.org $

PortSystem              1.0

name                    matio
version                 1.3.3
set branch              [join [lrange [split ${version} .] 0 1] .]
maintainers             nomaintainer
license                 LGPL-2.1
categories              math
platforms               darwin

description             Matio is a library for working with Matlab save files

long_description        Matio is a library for reading and writing Matlab \
                        save files. It is used by scientific data processing \
                        programs.

homepage                http://sourceforge.net/projects/matio
master_sites            sourceforge

checksums               md5     5c12a98f391de000e88b5a1b20d74abf \
                        sha1    3f8c0dd2eb1abe4ded77ecfca6376f171bcff66c \
                        rmd160  acc835c83fc615978c9ba407f8c17b79afdafb9a

depends_lib             port:zlib

configure.args          --enable-shared

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        COPYING \
        ChangeLog \
        NEWS \
        README \
        ${docdir}
}
