Annotation of /branches/magellan-next/extras/speech-dispatcher/speech-dispatcher-0.7.1-r1.smage2
Parent Directory | Revision Log
Revision 8763 -
(hide annotations)
(download)
Thu Jul 28 14:19:39 2011 UTC (13 years, 2 months ago) by niro
File size: 1496 byte(s)
Thu Jul 28 14:19:39 2011 UTC (13 years, 2 months ago) by niro
File size: 1496 byte(s)
-multilib fixes
1 | niro | 8761 | # $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 | niro | 8763 | src_prepare() |
35 | { | ||
36 | munpack ${SRCFILE} || die | ||
37 | cd ${SRCDIR} | ||
38 | |||
39 | # multilib fix | ||
40 | sed -i 's:NAS_LIBS = -laudio -L/usr/X11R6/lib:NAS_LIBS = -laudio:' src/audio/Makefile.am || die | ||
41 | } | ||
42 | |||
43 | niro | 8761 | src_compile() |
44 | { | ||
45 | cd ${SRCDIR} | ||
46 | |||
47 | mconfigure \ | ||
48 | niro | 8762 | --disable-static \ |
49 | niro | 8761 | --enable-python \ |
50 | --with-alsa \ | ||
51 | --with-pulse \ | ||
52 | --with-libao \ | ||
53 | --with-nas \ | ||
54 | --without-espeak \ | ||
55 | --without-flite \ | ||
56 | || die | ||
57 | niro | 8762 | |
58 | niro | 8761 | mmake || die |
59 | |||
60 | # python modules | ||
61 | cd ${SRCDIR}/src/python | ||
62 | python_docompile || die | ||
63 | } | ||
64 | |||
65 | src_install() | ||
66 | { | ||
67 | cd ${SRCDIR} | ||
68 | mmake DESTDIR=${BINDIR} install || die | ||
69 | |||
70 | cd ${SRCDIR}/src/python | ||
71 | python_doinstall || die | ||
72 | |||
73 | # disable espeak, flite | ||
74 | |||
75 | # default to pulseaudio, but use alsa as fallback | ||
76 | sed -i 's/# AudioOutputMethod "pulse,alsa"/AudioOutputMethod "pulse,alsa"/' \ | ||
77 | ${BINDIR}/etc/speech-dispatcher/speechd.conf || die | ||
78 | } |