# $Id: Portfile 54984 2009-08-05 16:05:33Z mnick@macports.org $

PortSystem          1.0

name                libANN
version             1.1.1
maintainers         mnick

categories          science devel
description         A Library for Approximate Nearest Neighbor Searching
long_description    ANN is a library written in C++, which supports data structures and \
                    algorithms for both exact and approximate nearest neighbor searching \
                    in arbitrarily high dimensions.

platforms           darwin

homepage            http://www.cs.umd.edu/~mount/ANN/
master_sites        ${homepage}/Files/${version}/
distname            ann_${version}

checksums           md5     b6247e4a34e8a5e122ebf299cd51f871 \
                    sha1    3f4ac40d6cd3733c3a63b959ca505decd10a833d \
                    rmd160  5b5df4713583cf4fadc6636a76e73a33403f8f16

use_configure       no
build.target        macosx-g++

destroot {
    file copy ${worksrcpath}/include/ANN ${destroot}${prefix}/include
    file copy ${worksrcpath}/lib/libANN.a ${destroot}${prefix}/lib
    eval file copy [glob ${worksrcpath}/bin/*] ${destroot}${prefix}/bin
    file mkdir ${destroot}${prefix}/share/doc
    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/libANN
}

livecheck.check 	regex
livecheck.url 		${homepage}
livecheck.regex 	<b>Version (.*)</b>
