Magellan Linux

Contents of /branches/magellan-next/extras/speech-dispatcher/speech-dispatcher-0.7.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8761 - (show annotations) (download)
Thu Jul 28 14:04:26 2011 UTC (12 years, 9 months ago) by niro
File size: 1302 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 --enable-python \
40 --with-alsa \
41 --with-pulse \
42 --with-libao \
43 --with-nas \
44 --without-espeak \
45 --without-flite \
46 || die
47
48 mmake || die
49
50 # python modules
51 cd ${SRCDIR}/src/python
52 python_docompile || die
53 }
54
55 src_install()
56 {
57 cd ${SRCDIR}
58 mmake DESTDIR=${BINDIR} install || die
59
60 cd ${SRCDIR}/src/python
61 python_doinstall || die
62
63 # disable espeak, flite
64
65 # default to pulseaudio, but use alsa as fallback
66 sed -i 's/# AudioOutputMethod "pulse,alsa"/AudioOutputMethod "pulse,alsa"/' \
67 ${BINDIR}/etc/speech-dispatcher/speechd.conf || die
68 }