# -*- 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 78713 2011-05-18 22:22:05Z ryandesign@macports.org $

PortSystem          1.0

name                iulib
hg.tag              d9b9406fac75
version             0.4-${hg.tag}
revision            1
categories          graphics
platforms           darwin
maintainers         nomaintainer

description         C++ library of image understanding-related algorithms

long_description    ${name} is a library of image understanding-related \
                    algorithms. It provides basic image processing, \
                    mathematical morphology, and machine learning algorithms.

fetch.type          hg
hg.url              https://iulib.googlecode.com/hg/
homepage            http://code.google.com/p/iulib/

depends_build       port:scons

depends_lib         port:libpng \
                    port:jpeg \
                    port:tiff \
                    port:zlib \
                    port:libsdl \
                    port:libsdl_image \
                    port:libsdl_gfx

patchfiles          patch-SConstruct.diff \
                    patch-components.cc.diff

post-patch {
    reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/SConstruct
}

use_configure       no

build.cmd           scons
build.target
# you can remove the build.args test=yes, but it nice to know they work
build.args          test=yes

destroot.cmd        scons
destroot.destdir    prefix=${destroot}${prefix}
