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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name open_jtalk |
---|
7 | version 1.02 |
---|
8 | categories audio japanese |
---|
9 | platforms darwin |
---|
10 | maintainers nomaintainer |
---|
11 | license BSD |
---|
12 | |
---|
13 | description Japanese text-to-speech synthesis system |
---|
14 | |
---|
15 | long_description Open JTalk is a Japanese text-to-speech synthesis system. |
---|
16 | |
---|
17 | homepage http://open-jtalk.sourceforge.net/ |
---|
18 | master_sites sourceforge:open-jtalk |
---|
19 | |
---|
20 | checksums ${distname}${extract.suffix} \ |
---|
21 | sha1 cc3e4b1b04600ad2d526f07a33e2b2978f47ee2b \ |
---|
22 | rmd160 875463e70dea02b702719546905a3b86df78bcb2 |
---|
23 | |
---|
24 | depends_lib port:hts_engine_API \ |
---|
25 | port:libiconv |
---|
26 | |
---|
27 | use_autoreconf yes |
---|
28 | |
---|
29 | configure.args --with-hts-engine-header-path=${prefix}/include \ |
---|
30 | --with-hts-engine-library-path=${prefix}/lib |
---|
31 | |
---|
32 | patchfiles patch-Makefile.diff |
---|
33 | |
---|
34 | default_variants +voice |
---|
35 | |
---|
36 | set voice_name hts_voice_nitech_jp_atr503_m001 |
---|
37 | set voice_model ${voice_name}-${version} |
---|
38 | |
---|
39 | variant voice description {Add HTS voice and a demo script} { |
---|
40 | distfiles-append ${voice_model}${extract.suffix} |
---|
41 | checksums-append ${voice_model}${extract.suffix} \ |
---|
42 | sha1 aea8118b703a3dc5681fdffbafa42e5ad8e007d0 \ |
---|
43 | rmd160 2856c060f983c63fc9632ab56fa4e2443abf585d |
---|
44 | |
---|
45 | post-destroot { |
---|
46 | # copy the voice model data. |
---|
47 | set voice_dir ${prefix}/lib/${name}/${voice_model} |
---|
48 | copy ${workpath}/${voice_model} ${destroot}${voice_dir} |
---|
49 | # configure an executable demo script file. |
---|
50 | set script_name open_jtalk_demo |
---|
51 | set script_dest ${destroot}${prefix}/bin/${script_name} |
---|
52 | set dic_dir ${prefix}/lib/${name}/dic |
---|
53 | xinstall -m 755 ${filespath}/${script_name} ${script_dest} |
---|
54 | reinplace "s|@voice_dir@|${voice_dir}|g" ${script_dest} |
---|
55 | reinplace "s|@dic_dir@|${dic_dir}|g" ${script_dest} |
---|
56 | } |
---|
57 | } |
---|
58 | |
---|
59 | livecheck.type regex |
---|
60 | livecheck.url http://sourceforge.net/projects/open-jtalk/files/ |
---|
61 | livecheck.regex /${name}-(\[0-9.\]+)/ |
---|