Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Sep 2016 18:10:18 +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: r422532 - in head/audio: . asterisk-flite asterisk-flite/files
Message-ID:  <201609201810.u8KIAIXL027160@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: madpilot
Date: Tue Sep 20 18:10:18 2016
New Revision: 422532
URL: https://svnweb.freebsd.org/changeset/ports/422532

Log:
  Flite For Asterisk provides the "Flite" dialplan application, which
  allows you to use the Flite TTS Engine with Asterisk.
  
  WWW: http://zaf.github.io/Asterisk-Flite/

Added:
  head/audio/asterisk-flite/
  head/audio/asterisk-flite/Makefile   (contents, props changed)
  head/audio/asterisk-flite/distinfo   (contents, props changed)
  head/audio/asterisk-flite/files/
  head/audio/asterisk-flite/files/patch-Makefile   (contents, props changed)
  head/audio/asterisk-flite/pkg-descr   (contents, props changed)
  head/audio/asterisk-flite/pkg-plist   (contents, props changed)
Modified:
  head/audio/Makefile

Modified: head/audio/Makefile
==============================================================================
--- head/audio/Makefile	Tue Sep 20 18:03:17 2016	(r422531)
+++ head/audio/Makefile	Tue Sep 20 18:10:18 2016	(r422532)
@@ -31,6 +31,7 @@
     SUBDIR += ascd
     SUBDIR += asmix
     SUBDIR += asmixer
+    SUBDIR += asterisk-flite
     SUBDIR += asunder
     SUBDIR += atunes
     SUBDIR += aubio

Added: head/audio/asterisk-flite/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/asterisk-flite/Makefile	Tue Sep 20 18:10:18 2016	(r422532)
@@ -0,0 +1,44 @@
+# $FreeBSD$
+
+PORTNAME=	asterisk-flite
+PORTVERSION=	2.3
+DISTVERSIONPREFIX=	v
+CATEGORIES=	audio
+
+MAINTAINER=	madpilot@FreeBSD.org
+COMMENT=	Flite dialplan application for Asterisk
+
+LICENSE=	GPLv2
+
+LIB_DEPENDS=	libflite.so:audio/flite
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	zaf
+GH_PROJECT=	Asterisk-Flite
+
+USES=		compiler gmake localbase
+INSTALL_TARGET=	install samples
+
+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_flite.so
+
+.include <bsd.port.post.mk>

Added: head/audio/asterisk-flite/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/asterisk-flite/distinfo	Tue Sep 20 18:10:18 2016	(r422532)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1474382391
+SHA256 (zaf-Asterisk-Flite-v2.3_GH0.tar.gz) = 208a2dfd4c6345c99d6b15cd136fa938355b937fa5f9efe849fcf53106667e4c
+SIZE (zaf-Asterisk-Flite-v2.3_GH0.tar.gz) = 11977

Added: head/audio/asterisk-flite/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/asterisk-flite/files/patch-Makefile	Tue Sep 20 18:10:18 2016	(r422532)
@@ -0,0 +1,58 @@
+--- Makefile.orig	2016-03-20 14:01:21 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=flite.conf.sample
+-CONFNAME=$(basename $(SAMPLENAME))
+-
+-CC=gcc
+-OPTIMIZE=-O2
+-DEBUG=-g
++CONFNAME=$(SAMPLENAME)
+ 
+-LIBS+=-lflite_cmu_us_kal -lflite_cmu_us_kal16 -lflite_cmu_us_awb -lflite_cmu_us_rms -lflite_cmu_us_slt -lflite_usenglish -lflite_cmulex -lflite
++LIBS+=$(LDFLAGS) -lflite_cmu_us_kal -lflite_cmu_us_kal16 -lflite_cmu_us_awb -lflite_cmu_us_rms -lflite_cmu_us_slt -lflite_usenglish -lflite_cmulex -lflite
+ CFLAGS+=-pipe -fPIC -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE
+ 
+ all: _all
+-	@echo " +--------- app_flite Build Complete --------+"
+-	@echo " + app_flite has successfully been built,    +"
+-	@echo " + and can be installed by running:          +"
+-	@echo " +                                           +"
+-	@echo " +               make install                +"
+-	@echo " +-------------------------------------------+"
+ 
+ _all: app_flite.so
+ 
+@@ -46,20 +31,7 @@ clean:
+ install: _all
+ 	$(INSTALL) -m 755 -d $(DESTDIR)$(MODULES_DIR)
+ 	$(INSTALL) -m 755 app_flite.so $(DESTDIR)$(MODULES_DIR)
+-	@echo " +---- app_flite Installation Complete ------+"
+-	@echo " +                                           +"
+-	@echo " + app_flite 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_flite confing Installed ---------"

Added: head/audio/asterisk-flite/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/asterisk-flite/pkg-descr	Tue Sep 20 18:10:18 2016	(r422532)
@@ -0,0 +1,4 @@
+Flite For Asterisk provides the "Flite" dialplan application, which
+allows you to use the Flite TTS Engine with Asterisk.
+
+WWW: http://zaf.github.io/Asterisk-Flite/

Added: head/audio/asterisk-flite/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/asterisk-flite/pkg-plist	Tue Sep 20 18:10:18 2016	(r422532)
@@ -0,0 +1,2 @@
+@sample etc/asterisk/flite.conf.sample
+lib/asterisk/modules/app_flite.so



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609201810.u8KIAIXL027160>