# -*- 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 67906 2010-05-21 10:51:44Z ryandesign@macports.org $

PortSystem          1.0

set uname           imutil
name                yorick-${uname}
version             0.5.5
categories          science
platforms           darwin
maintainers         users.sourceforge.net:paumard
description         Fast image manipulation routines for the Yorick language
long_description    Compiled routines for basic but fast image manipulation in \
                    yorick (an interpreted computer language specialized for \
                    numerical and scientific problems). Includes 2d bilinear \
                    and spline2 interpolation, clipping, 2d dist generator, \
                    binning, image rotation, cartesian to polar coordinate \
                    transform, gaussian and poisson random generator, fast \
                    sort and fast median.
homepage            http://maumae.net/yorick/doc/plugins.php
master_sites        http://maumae.net/yorick/packages/src/
distname            ${uname}-${version}-src
extract.suffix      .tgz
worksrcdir          ${name}-${version}

checksums           md5     238b299d5bb6f2aa573b2ac06a0a3c1b \
                    sha1    bf00a914224f5464ed1aa76ceeeb1c2a23d00d32 \
                    rmd160  03c23dd03ca9650928eb9bd775c7db074449ddaa

depends_lib         port:yorick

depends_run         port:yorick-yutils

universal_variant   no

configure.cmd       ${prefix}/bin/yorick
configure.pre_args
configure.args      -batch make.i

post-destroot {
    xinstall -d ${destroot}${prefix}/lib/yorick/packages/installed/
    xinstall -m 644 ${worksrcpath}/${uname}.info \
        ${destroot}${prefix}/lib/yorick/packages/installed/
}
