# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem       1.0

name             greycstoration
version          2.5.2.1
categories       graphics
description      Open source algorithm for image denoising and interpolation
long_description GREYCstoration is an image regularization algorithm which \
                 processes an image by locally removing small variations of \
                 pixel intensities while preserving significant global image \
                 features, such as sharp edges and corners. The most direct \
                 application of image regularization is denoising. \
                 By extension, it can also be used to inpaint or resize images.

maintainers      gmail.com:julien.lusson
platforms        darwin
homepage         http://www.greyc.ensicaen.fr/~dtschump/greycstoration/

master_sites     ${homepage}data/
use_bzip2        yes

distname         GREYCstoration-${version}
checksums        md5 9acb29050f479b6d4e59bb1096a87451 \
                 sha1 2bfa17573b60a1477c99f34cfb8400d9b78aa9c2 \
                 rmd160 b3cb5d0638952c601b70158ee3e63b45feb5fb07

use_configure   no

depends_lib     port:gimp2

build.target    olinux

destroot {
    xinstall -m 755 ${worksrcpath}/greycstoration \
        ${destroot}${prefix}/bin/
    xinstall -m 755 -d ${destroot}${prefix}/lib/gimp/2.0/plug-ins
    xinstall -m 755 ${worksrcpath}/greycstoration4gimp \
        ${destroot}${prefix}/lib/gimp/2.0/plug-ins
}
