Date: Tue, 20 Sep 2016 18:10:54 +0000 (UTC) From: Guido Falsi <madpilot@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r422533 - in head/audio: . asterisk-espeak asterisk-espeak/files Message-ID: <201609201810.u8KIAsLZ028658@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: madpilot Date: Tue Sep 20 18:10:54 2016 New Revision: 422533 URL: https://svnweb.freebsd.org/changeset/ports/422533 Log: eSpeak For Asterisk provides the "Espeak" dialplan application, which allows you to use the Espeak speech synthesizer with Asterisk. This module invokes the Espeak TTS engine locally, and uses it to render text to speech. WWW: https://zaf.github.io/Asterisk-eSpeak/ Added: head/audio/asterisk-espeak/ head/audio/asterisk-espeak/Makefile (contents, props changed) head/audio/asterisk-espeak/distinfo (contents, props changed) head/audio/asterisk-espeak/files/ head/audio/asterisk-espeak/files/patch-Makefile (contents, props changed) head/audio/asterisk-espeak/pkg-descr (contents, props changed) head/audio/asterisk-espeak/pkg-plist (contents, props changed) Modified: head/audio/Makefile Modified: head/audio/Makefile ============================================================================== --- head/audio/Makefile Tue Sep 20 18:10:18 2016 (r422532) +++ head/audio/Makefile Tue Sep 20 18:10:54 2016 (r422533) @@ -31,6 +31,7 @@ SUBDIR += ascd SUBDIR += asmix SUBDIR += asmixer + SUBDIR += asterisk-espeak SUBDIR += asterisk-flite SUBDIR += asunder SUBDIR += atunes Added: head/audio/asterisk-espeak/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/asterisk-espeak/Makefile Tue Sep 20 18:10:54 2016 (r422533) @@ -0,0 +1,46 @@ +# $FreeBSD$ + +PORTNAME= asterisk-espeak +PORTVERSION= 3.0 +DISTVERSIONPREFIX= v +CATEGORIES= audio + +MAINTAINER= madpilot@FreeBSD.org +COMMENT= Espeak dialplan application for Asterisk + +LICENSE= GPLv2 + +LIB_DEPENDS= libespeak.so:audio/espeak \ + libsamplerate.so:audio/libsamplerate + +USE_GITHUB= yes +GH_ACCOUNT= zaf +GH_PROJECT= Asterisk-Espeak + +USES= compiler gmake localbase +INSTALL_TARGET= install samples +WRKSRC= ${WRKDIR}/Asterisk-eSpeak-${PORTVERSION} + +OPTIONS_SINGLE= ASTVER +OPTIONS_SINGLE_ASTVER= ASTERISK11 ASTERISK13 +OPTIONS_DEFAULT= ASTERISK13 + +ASTERISK11_DESC= Depend on Asterisk 11 +ASTERISK13_DESC= Depend on Asterisk 13 + +ASTERISK11_BUILD_DEPENDS= asterisk:net/asterisk11 +ASTERISK11_RUN_DEPENDS= asterisk:net/asterisk11 + +ASTERISK13_BUILD_DEPENDS= asterisk:net/asterisk13 +ASTERISK13_RUN_DEPENDS= asterisk:net/asterisk13 + +.include <bsd.port.pre.mk> + +.if ${CHOSEN_COMPILER_TYPE} == clang +CFLAGS+= -fblocks +.endif + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/asterisk/modules/app_espeak.so + +.include <bsd.port.post.mk> Added: head/audio/asterisk-espeak/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/asterisk-espeak/distinfo Tue Sep 20 18:10:54 2016 (r422533) @@ -0,0 +1,3 @@ +TIMESTAMP = 1474384491 +SHA256 (zaf-Asterisk-Espeak-v3.0_GH0.tar.gz) = 47c7629853ad54a2f3b50a5407db356ab7806f5fa40f9811a129208d6eeec398 +SIZE (zaf-Asterisk-Espeak-v3.0_GH0.tar.gz) = 13758 Added: head/audio/asterisk-espeak/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/asterisk-espeak/files/patch-Makefile Tue Sep 20 18:10:54 2016 (r422533) @@ -0,0 +1,59 @@ +--- Makefile.orig 2016-03-19 11:15:32 UTC ++++ Makefile +@@ -7,30 +7,15 @@ + # at the top of the source tree. + + INSTALL=install +-ASTLIBDIR:=$(shell awk '/moddir/{print $$3}' /etc/asterisk/asterisk.conf) +-ifeq ($(strip $(ASTLIBDIR)),) +- MODULES_DIR=$(INSTALL_PREFIX)/usr/lib/asterisk/modules +-else +- MODULES_DIR=$(INSTALL_PREFIX)$(ASTLIBDIR) +-endif +-ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk ++MODULES_DIR=$(PREFIX)/lib/asterisk/modules ++ASTETCDIR=$(PREFIX)/etc/asterisk + SAMPLENAME=espeak.conf.sample +-CONFNAME=$(basename $(SAMPLENAME)) +- +-CC=gcc +-OPTIMIZE=-O2 +-DEBUG=-g ++CONFNAME=$(SAMPLENAME) + +-LIBS+=-lespeak -lsamplerate ++LIBS+=$(LDFLAGS) -lespeak -lsamplerate + CFLAGS+=-pipe -fPIC -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE + + all: _all +- @echo " +-------- app_espeak Build Complete --------+" +- @echo " + app_espeak has successfully been built, +" +- @echo " + and can be installed by running: +" +- @echo " + +" +- @echo " + make install +" +- @echo " +-------------------------------------------+" + + _all: app_espeak.so + +@@ -46,21 +31,7 @@ clean: + install: _all + $(INSTALL) -m 755 -d $(DESTDIR)$(MODULES_DIR) + $(INSTALL) -m 755 app_espeak.so $(DESTDIR)$(MODULES_DIR) +- @echo " +---- app_espeak Installation Complete -----+" +- @echo " + +" +- @echo " + app_espeak has successfully been installed+" +- @echo " + If you would like to install the sample +" +- @echo " + configuration file run: +" +- @echo " + +" +- @echo " + make samples +" +- @echo " +-------------------------------------------+" + + samples: + @mkdir -p $(DESTDIR)$(ASTETCDIR) +- @if [ -f $(DESTDIR)$(ASTETCDIR)/$(CONFNAME) ]; then \ +- echo "Backing up previous config file as $(CONFNAME).old";\ +- mv -f $(DESTDIR)$(ASTETCDIR)/$(CONFNAME) $(DESTDIR)$(ASTETCDIR)/$(CONFNAME).old ; \ +- fi ; + $(INSTALL) -m 644 $(SAMPLENAME) $(DESTDIR)$(ASTETCDIR)/$(CONFNAME) +- @echo " ------- app_esepak confing Installed --------" +- Added: head/audio/asterisk-espeak/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/asterisk-espeak/pkg-descr Tue Sep 20 18:10:54 2016 (r422533) @@ -0,0 +1,6 @@ +eSpeak For Asterisk provides the "Espeak" dialplan application, +which allows you to use the Espeak speech synthesizer with Asterisk. +This module invokes the Espeak TTS engine locally, and uses it to +render text to speech. + +WWW: https://zaf.github.io/Asterisk-eSpeak/ Added: head/audio/asterisk-espeak/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/asterisk-espeak/pkg-plist Tue Sep 20 18:10:54 2016 (r422533) @@ -0,0 +1,2 @@ +@sample etc/asterisk/espeak.conf.sample +lib/asterisk/modules/app_espeak.so
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609201810.u8KIAsLZ028658>