# -*- 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

PortSystem          1.0
PortGroup           github 1.0

set uname           imutil
github.setup        frigaut yorick-${uname} 0.5.7
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
categories          science yorick
license             GPL-2+
maintainers         {thibaut @paumard} openmaintainer
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

checksums           rmd160  47502d8ef7363cc20648932e3a8d50f03c91cc5c \
                    sha256  d10d3323a777f176991a7405ffb4b76d8b5fffbe8c37fcd8031b03e7ec9700f3

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

build.args          osx

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