# $Id: Portfile 53097 2009-06-29 14:03:12Z alakazam@macports.org $

PortSystem 1.0

name                octave-image
version             1.0.10
categories          math science
platforms           darwin
maintainers         and.damore alakazam
description         The Octave-forge Image package provides functions for reading, writing, and processing images. The package supports almost all image formats through the use of ImageMagick. The package also provides functions for feature extraction, image statistics, spatial and geometric transformations, morphological operations, linear filtering, and much more.  
long_description    ${description}

homepage            http://octave.sourceforge.net/
master_sites        sourceforge:octave

distname            image-$version

checksums           md5     c139877a4ce2b1f6fe08772a52a327be \
                    sha1    0d8731f8f47cc18fdfb2ead8e700d3507cff79df \
                    rmd160  3aad306325c84cfe543c7b61b60a7fea2cfa9c3c

depends_lib-append  port:octave 

post-destroot {
    move ${destroot}${prefix}/share/octave/octave_packages ${destroot}${prefix}/share/octave/octave_packages_${name}
}

post-activate {
    system "octave --eval \"pkg rebuild\""
}

livecheck.check regex
livecheck.url   http://octave.sourceforge.net/packages.html
livecheck.regex http://downloads\.sourceforge\.net/octave/image-(\\d+(\\.\\d+)*)\.tar\.gz
