# $Id$ PNAME="speech-dispatcher" PVER="0.7.1" PBUILD="r1" PCATEGORIE="media-sound" DESCRIPTION="High-level device independent layer for speech synthesis interface." HOMEPAGE="http://devel.freebsoft.org/speechd" # todo espeak, flite support DEPEND=">= dev-libs/glib2-2.28 >= dev-libs/dotconf-1.3 >= media-libs/alsa-lib-1.0.24 >= media-libs/libao-1.1 >= media-libs/nas-1.9 >= media-sound/pulseaudio-0.9" SDEPEND=">= sys-apps/sed-4" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude python mbuild mtools SRC_URI=( http://devel.freebsoft.org/pub/projects/speechd/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd ${HOMEPAGE} | lasttarball gz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # multilib fix sed -i 's:NAS_LIBS = -laudio -L/usr/X11R6/lib:NAS_LIBS = -laudio:' src/audio/Makefile.am || die } src_compile() { cd ${SRCDIR} mconfigure \ --disable-static \ --enable-python \ --with-alsa \ --with-pulse \ --with-libao \ --with-nas \ --without-espeak \ --without-flite \ || die mmake || die # python modules cd ${SRCDIR}/src/python python_docompile || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die cd ${SRCDIR}/src/python python_doinstall || die # disable espeak, flite # default to pulseaudio, but use alsa as fallback sed -i 's/# AudioOutputMethod "pulse,alsa"/AudioOutputMethod "pulse,alsa"/' \ ${BINDIR}/etc/speech-dispatcher/speechd.conf || die }