aboutsummaryrefslogtreecommitdiffstats
path: root/main/freeswitch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-06-24 15:04:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-06-24 15:05:44 +0000
commit1e1305daa6badebca6451664e128096dadc29b11 (patch)
tree575c737dd00b253692f22b4ea40a34a50cac6ad8 /main/freeswitch
parenta7d7dc3022e9599d12432a86ac95f9ae5d586c8e (diff)
downloadaports-1e1305daa6badebca6451664e128096dadc29b11.tar.bz2
aports-1e1305daa6badebca6451664e128096dadc29b11.tar.xz
main/freeswitch: added flite module in subpackage
Diffstat (limited to 'main/freeswitch')
-rw-r--r--main/freeswitch/APKBUILD32
-rw-r--r--main/freeswitch/modules.conf14
2 files changed, 34 insertions, 12 deletions
diff --git a/main/freeswitch/APKBUILD b/main/freeswitch/APKBUILD
index 1f9407ecd0..8fea40a846 100644
--- a/main/freeswitch/APKBUILD
+++ b/main/freeswitch/APKBUILD
@@ -1,7 +1,8 @@
# Contributor: Michael Mason <ms13sp@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=freeswitch
pkgver=1.0.6
-pkgrel=8
+pkgrel=9
pkgdesc="A communications platform written in C from the ground up"
url="http://www.freeswitch.org"
license="GPL"
@@ -9,15 +10,17 @@ depends=""
makedepends="curl-dev unixodbc-dev zlib-dev openssl-dev
autoconf automake libtool"
install="$pkgname.pre-install $pkgname.post-install"
-subpackages="$pkgname-dev"
+subpackages="$pkgname-dev $pkgname-flite"
source="http://files.freeswitch.org/freeswitch-$pkgver.tar.gz
modules.conf
freeswitch.confd
freeswitch.initd
"
+_builddir="$srcdir/$pkgname-$pkgver"
+
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$_builddir"
cp -f "$srcdir/modules.conf" modules.conf || return 1
# i think our max cmd len is 32768
@@ -37,7 +40,7 @@ build() {
}
package(){
cd "$srcdir/$pkgname-$pkgver"
- make -j1 DESTDIR="$pkgdir" install
+ make -j1 DESTDIR="$pkgdir" install || return 1
# we need to do some moving/cleanup to allow some... kind of FHS
mkdir -p "$pkgdir"/var/run/freeswitch
mkdir -p "$pkgdir"/var/lib/freeswitch
@@ -53,7 +56,26 @@ package(){
install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}
+
+_mv_mod() {
+ local moddir=usr/lib/freeswitch i=
+ mkdir -p "$subpkgdir"/$moddir
+ for i in $@; do
+ mv "$pkgdir"/$moddir/$i.so "$subpkgdir"/$moddir/ || return 1
+ done
+}
+
+
+flite() {
+ pkgdesc="Freeswitch Text To Speech Module"
+ depends="freeswitch"
+ install=
+ _mv_mod mod_flite mod_say_de mod_say_en mod_say_es mod_say_fr \
+ mod_say_it mod_say_nl mod_say_zh
+}
+
+
md5sums="388effee587887a81fe7f411b7350590 freeswitch-1.0.6.tar.gz
-c05f2356be159e99b3845f5260a33599 modules.conf
+55e62842ad037e5e550ad097df09f6d2 modules.conf
c608cca8ad773acebf201f581438c7e7 freeswitch.confd
6973e15d72e5876152b160bd9e8d282b freeswitch.initd"
diff --git a/main/freeswitch/modules.conf b/main/freeswitch/modules.conf
index c6f5a05de8..9968d68d9a 100644
--- a/main/freeswitch/modules.conf
+++ b/main/freeswitch/modules.conf
@@ -18,7 +18,7 @@ applications/mod_fsv
#applications/mod_rss
#applications/mod_snom
#applications/mod_vmd
-#asr_tts/mod_flite
+asr_tts/mod_flite
#asr_tts/mod_pocketsphinx
#asr_tts/mod_cepstral
codecs/mod_g723_1
@@ -67,9 +67,9 @@ languages/mod_lua
#xml_int/mod_xml_cdr
#xml_int/mod_xml_ldap
say/mod_say_en
-#say/mod_say_de
-#say/mod_say_es
-#say/mod_say_fr
-#say/mod_say_it
-#say/mod_say_nl
-#say/mod_say_zh
+say/mod_say_de
+say/mod_say_es
+say/mod_say_fr
+say/mod_say_it
+say/mod_say_nl
+say/mod_say_zh