Ticket #29076: Portfile

File Portfile, 3.0 KB (added by humem (humem), 14 years ago)
Line 
1# -*- 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
2# $Id$
3
4PortSystem          1.0
5
6name                julius
7version             4.1.5.1
8categories          audio japanese
9platforms           darwin
10maintainers         nomaintainer
11license             BSD
12
13description         Large Vocabulary Continuous Speech Recognition (LVCSR) Engine
14long_description    "Julius" is an open-source high-performance large vocabulary \
15                    continuous speech recognition (LVCSR) decoder software for \
16                    speech-related researchers and developers. \
17                    Based on word N-gram and triphone context-dependent HMM, \
18                    it can perform almost real-time decoding on most current \
19                    PCs with small amount of memory.
20homepage            http://julius.sourceforge.jp/
21master_sites        sourceforge_jp:julius/50318/:julius \
22                    sourceforge_jp:/julius/51158/:dictation_kit
23
24distfiles           ${distname}${extract.suffix}:julius
25
26checksums           ${distname}${extract.suffix} \
27                         sha1    bf746719ea05095ead4be70cf27b52ae77ed5b37 \
28                         rmd160  904738b1f5cd26bf42fe29f10961d42217be0e86
29
30patchfiles          patch-configure.in.diff
31
32use_autoconf        yes
33
34pre-configure {
35    foreach dir { mkgshmm gramtools jcontrol julius libjulius libsent } {
36        system "echo \"autoconf $dir\" && cd ${worksrcpath}/$dir && autoconf"
37    }
38}
39
40default_variants    +kit
41
42set kit_name        dictation-kit
43set kit_version     v4.1
44set dictation_kit   ${kit_name}-${kit_version}
45
46variant kit description {Add dictation kit and a demo script} {
47    distfiles-append    ${dictation_kit}${extract.suffix}:dictation_kit
48
49    checksums-append    ${dictation_kit}${extract.suffix} \
50                            sha1    7fd6fd6de13cd18c9ab811266da9d548d57c422a \
51                            rmd160  9f8603f95cbb363cb8a92189198837f81c4968dd
52
53    post-destroot {
54        # copy the dictation kit.
55        set lib_inst     ${prefix}/lib/${name}
56        set lib_dest     ${destroot}${lib_inst}
57        file mkdir       ${lib_dest}
58        copy ${workpath}/${dictation_kit}/model      ${lib_dest}
59        copy ${workpath}/${dictation_kit}/fast.jconf ${lib_dest}
60        # configure the dictation kit.
61        set conf_dest    ${lib_dest}/fast.jconf
62        reinplace "s| model/| ${lib_inst}/model/|g"  ${conf_dest}
63        reinplace "s|#-charconv from to|-charconv EUC-JP UTF-8|" ${conf_dest}
64        # configure an executable demo script file.
65        set script_name  julius_demo
66        set script_dest  ${destroot}${prefix}/bin/${script_name}
67        xinstall -m 755  ${filespath}/${script_name} ${script_dest}
68        reinplace "s|@lib_dest@|${lib_dest}|g"       ${script_dest}
69    }
70}
71
72livecheck.type      regex
73livecheck.url       http://sourceforge.jp/projects/${name}/releases/rss
74livecheck.regex     <title>${name}.* - (\[0-9.a-z\-\]+)</title>