# $Id: Portfile 71567 2010-09-16 22:27:27Z ryandesign@macports.org $

PortSystem          1.0
name                sphinxbase
version             0.6.1
description         Support library for CMU Sphinx
long_description \
    The CMU Sphinx toolkit is a group of speech recognition systems developed \
    at Carnegie Mellon University. This package is a support library that \
    is used by several elements of CMU Sphinx.
    
maintainers         singingwolfboy openmaintainer
categories          audio
platforms           darwin freebsd
homepage            http://cmusphinx.sourceforge.net/
master_sites        sourceforge:cmusphinx
checksums           md5     779647b5fb9e9942994f02fdf2282351 \
                    sha1    07bdb848a56246f1d8abe2bc996bb9724ed377eb \
                    rmd160  47eb44d9707b0f6de035f777f371a07bb50a360a

depends_build       bin:doxygen:doxygen
depends_lib         port:python26

set python.branch   2.6
set python.prefix   ${frameworks_dir}/Python.framework/Versions/${python.branch}
set python.bin      ${python.prefix}/bin/python${python.branch}
set python.lib      ${python.prefix}/Python
set python.libdir   ${python.prefix}/lib/python${python.branch}
set python.pkgd     ${python.prefix}/lib/python${python.branch}/site-packages
set python.include  ${python.prefix}/include/python${python.branch}

patchfiles          Makefile.in.diff
pre-destroot {
    reinplace "s|@@PY_PREFIX@@|${python.prefix}|" ${worksrcpath}/python/Makefile
}
post-destroot {
    xinstall -d -m 755 ${destroot}${prefix}/share/doc/
    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
}

livecheck.type  regex
livecheck.url   http://sourceforge.net/projects/cmusphinx/files
livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}
