Contents of /branches/R11-stable/extras/speech-dispatcher/speech-dispatcher-0.7.1-r1.smage2
Parent Directory | Revision Log
Revision 15612 -
(show annotations)
(download)
Mon Jan 7 11:54:12 2013 UTC (11 years, 8 months ago) by niro
File size: 1847 byte(s)
Mon Jan 7 11:54:12 2013 UTC (11 years, 8 months ago) by niro
File size: 1847 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="speech-dispatcher" |
4 | PVER="0.7.1" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="media-sound" |
8 | |
9 | DESCRIPTION="High-level device independent layer for speech synthesis interface." |
10 | HOMEPAGE="http://devel.freebsoft.org/speechd" |
11 | |
12 | # todo espeak, flite support |
13 | DEPEND=">= dev-libs/glib2-2.34 |
14 | >= dev-libs/dotconf-1.3 |
15 | >= media-libs/alsa-lib-1.0.26 |
16 | >= media-libs/libao-1.1 |
17 | >= media-libs/nas-1.9 |
18 | >= media-sound/libpulse-2.1" |
19 | |
20 | SDEPEND=">= virtual/sed" |
21 | |
22 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
23 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
24 | |
25 | sminclude python mbuild mtools |
26 | |
27 | SRC_URI=( |
28 | http://devel.freebsoft.org/pub/projects/speechd/${SRCFILE} |
29 | mirror://${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/speech-dispatcherd.service |
31 | ) |
32 | |
33 | UP2DATE="updatecmd ${HOMEPAGE} | lasttarball gz" |
34 | |
35 | src_prepare() |
36 | { |
37 | munpack ${SRCFILE} || die |
38 | cd ${SRCDIR} |
39 | |
40 | # multilib fix |
41 | sed -i 's:NAS_LIBS = -laudio -L/usr/X11R6/lib:NAS_LIBS = -laudio:' src/audio/Makefile.am || die |
42 | } |
43 | |
44 | src_compile() |
45 | { |
46 | cd ${SRCDIR} |
47 | |
48 | mconfigure \ |
49 | --disable-static \ |
50 | --enable-python \ |
51 | --with-alsa \ |
52 | --with-pulse \ |
53 | --with-libao \ |
54 | --with-nas \ |
55 | --without-espeak \ |
56 | --without-flite \ |
57 | || die |
58 | |
59 | mmake || die |
60 | |
61 | # python modules |
62 | cd ${SRCDIR}/src/python |
63 | python_docompile || die |
64 | } |
65 | |
66 | src_install() |
67 | { |
68 | cd ${SRCDIR} |
69 | mmake DESTDIR=${BINDIR} install || die |
70 | |
71 | cd ${SRCDIR}/src/python |
72 | python_doinstall || die |
73 | |
74 | # disable espeak, flite is already disabled by upstream |
75 | sed -i 's/^AddModule "espeak"/#AddModule "espeak"/' \ |
76 | ${BINDIR}/etc/speech-dispatcher/speechd.conf || di |
77 | |
78 | # default to pulseaudio, but use alsa as fallback |
79 | sed -i 's/# AudioOutputMethod "pulse,alsa"/AudioOutputMethod "pulse,alsa"/' \ |
80 | ${BINDIR}/etc/speech-dispatcher/speechd.conf || die |
81 | |
82 | minstallunit speech-dispatcherd.service || die |
83 | } |
84 | |
85 | postinstall() |
86 | { |
87 | mstartunit speech-dispatcherd.service || die |
88 | } |
89 | |
90 | postremove() |
91 | { |
92 | mstopunit speech-dispatcherd.service || die |
93 | } |