source: trunk/dports/audio/sphinx3/Portfile

Last change on this file was 104232, checked in by jmr@…, 4 years ago

sphinx3: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 104232 2013-03-21 12:54:27Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            sphinx3
6version         0.8
7description     Speech recognition package
8long_description        Sphinx-3 is CMU's state-of-the-art large vocabulary \
9                        speech recognition system. It uses Hidden Markov \
10                        Models (HMM) with continuous output probability \
11                        density functions (PDF).
12maintainers     nomaintainer
13categories      audio
14license         BSD
15platforms       darwin freebsd
16homepage        http://cmusphinx.sourceforge.net/
17master_sites     sourceforge:cmusphinx
18
19use_bzip2   yes
20depends_lib     port:sphinxbase port:python26
21
22checksums           md5     e32bf4c507509b27482adf4cfc467e8f \
23                    sha1    2e58b5a5ec7f397a7db8ef996043daf8162e3657 \
24                    rmd160  95d05c09914bc30ae0b9d849c2141fa3d7a0bdd3
25
26configure.cppflags-append   "-I${prefix}/include/sphinxbase"
27
28pre-configure {
29    # configure ignores cppflags, so we have to fix it
30    reinplace "s|CPPFLAGS=\"-I/usr/include/sphinxbase -I/usr/local/include/sphinxbase\"|CPPFLAGS=\"-I${prefix}/include/sphinxbase\"|" ${worksrcpath}/configure
31}
32
33set python.branch       2.6
34set python.prefix       ${frameworks_dir}/Python.framework/Versions/${python.branch}
35set python.bin  ${python.prefix}/bin/python${python.branch}
36set python.lib  ${python.prefix}/Python
37set python.libdir ${python.prefix}/lib/python${python.branch}
38set python.pkgd ${python.prefix}/lib/python${python.branch}/site-packages
39set python.include      ${python.prefix}/include/python${python.branch}
40
41post-destroot {
42    reinplace "s|/usr/local/include/sphinx|${prefix}/include/sphinx|" ${worksrcpath}/python/setup.py
43    system "cd ${worksrcpath}/python && ${python.bin} setup.py --no-user-cfg install --prefix=${python.prefix} --root=${destroot}"
44   
45    xinstall -d -m 755 ${destroot}${prefix}/share/doc/
46    system "find ${worksrcpath}/doc -name .svn -print0 | xargs -0 rm -rf"
47    file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
48}
49
50livecheck.type  regex
51livecheck.url   http://sourceforge.net/projects/cmusphinx/files
52livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.