# -*- 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 89434 2012-01-29 02:21:39Z hum@macports.org $

PortSystem          1.0
PortGroup           github 1.0

github.setup        chokkan crfsuite 0.12
categories          math textproc
maintainers         hum openmaintainer

description         A fast implementation of Conditional Random Fields (CRFs)
long_description    CRFsuite is an implementation of Conditional Random Fields (CRFs) \
                    for labeling sequential data.

homepage            http://www.chokkan.org/software/crfsuite/
platforms           darwin
license             BSD

checksums           rmd160  f202eeb0fcf29b3e0b0c49d84b111c3bf2b764aa \
                    sha256  7ac996883f3f925c8bf233a5d7c1462034f68df728775c8dc781faeaf7cd00ff

depends_build       port:libtool  \
                    port:autoconf \
                    port:automake
depends_lib         port:liblbfgs

patchfiles          patch-autogen.sh.diff

pre-configure {
    system -W ${worksrcpath} "./autogen.sh"
}

configure.args      --with-liblbfgs=${prefix}
