Contents of /branches/magellan-next/extras/speech-dispatcher/speech-dispatcher-0.7.1-r1.smage2
Parent Directory | Revision Log
Revision 8762 -
(show annotations)
(download)
Thu Jul 28 14:14:18 2011 UTC (12 years, 9 months ago) by niro
File size: 1322 byte(s)
Thu Jul 28 14:14:18 2011 UTC (12 years, 9 months ago) by niro
File size: 1322 byte(s)
auto added: ver bump to 0.7.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="speech-dispatcher" |
4 | PVER="0.7.1" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="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.28 |
14 | >= dev-libs/dotconf-1.3 |
15 | >= media-libs/alsa-lib-1.0.24 |
16 | >= media-libs/libao-1.1 |
17 | >= media-libs/nas-1.9 |
18 | >= media-sound/pulseaudio-0.9" |
19 | |
20 | SDEPEND=">= sys-apps/sed-4" |
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 | ) |
31 | |
32 | UP2DATE="updatecmd ${HOMEPAGE} | lasttarball gz" |
33 | |
34 | src_compile() |
35 | { |
36 | cd ${SRCDIR} |
37 | |
38 | mconfigure \ |
39 | --disable-static \ |
40 | --enable-python \ |
41 | --with-alsa \ |
42 | --with-pulse \ |
43 | --with-libao \ |
44 | --with-nas \ |
45 | --without-espeak \ |
46 | --without-flite \ |
47 | || die |
48 | |
49 | mmake || die |
50 | |
51 | # python modules |
52 | cd ${SRCDIR}/src/python |
53 | python_docompile || die |
54 | } |
55 | |
56 | src_install() |
57 | { |
58 | cd ${SRCDIR} |
59 | mmake DESTDIR=${BINDIR} install || die |
60 | |
61 | cd ${SRCDIR}/src/python |
62 | python_doinstall || die |
63 | |
64 | # disable espeak, flite |
65 | |
66 | # default to pulseaudio, but use alsa as fallback |
67 | sed -i 's/# AudioOutputMethod "pulse,alsa"/AudioOutputMethod "pulse,alsa"/' \ |
68 | ${BINDIR}/etc/speech-dispatcher/speechd.conf || die |
69 | } |