summaryrefslogtreecommitdiff
path: root/audio/festival
diff options
context:
space:
mode:
authorproff <proff>1999-04-04 19:32:15 +0000
committerproff <proff>1999-04-04 19:32:15 +0000
commit2f59adaad2c27a9447461f0207106b1c9abfb562 (patch)
treef1b058c61e9f3c0a5663e680a9a7e0f01762903a /audio/festival
parentf5da4d00ad0cecb592e929c432c0294c7ccd3273 (diff)
downloadpkgsrc-2f59adaad2c27a9447461f0207106b1c9abfb562.tar.gz
part of the festival speech synthesis system from CSTR
Diffstat (limited to 'audio/festival')
-rw-r--r--audio/festival/Makefile76
-rw-r--r--audio/festival/files/NetBSD.mak15
-rw-r--r--audio/festival/files/festival.sh5
-rw-r--r--audio/festival/files/festival_client.sh4
-rw-r--r--audio/festival/files/md55
-rw-r--r--audio/festival/files/sitevars.scm2
-rw-r--r--audio/festival/files/top-Makefile3
-rw-r--r--audio/festival/patches/patch-aa12
-rw-r--r--audio/festival/patches/patch-ab47
-rw-r--r--audio/festival/patches/patch-ac23
-rw-r--r--audio/festival/patches/patch-ad25
-rw-r--r--audio/festival/patches/patch-ae12
-rw-r--r--audio/festival/pkg/COMMENT1
-rw-r--r--audio/festival/pkg/DESCR27
-rw-r--r--audio/festival/pkg/PLIST107
15 files changed, 364 insertions, 0 deletions
diff --git a/audio/festival/Makefile b/audio/festival/Makefile
new file mode 100644
index 00000000000..8d103a99b19
--- /dev/null
+++ b/audio/festival/Makefile
@@ -0,0 +1,76 @@
+# $NetBSD: Makefile,v 1.1.1.1 1999/04/04 19:32:33 proff Exp $
+
+DISTNAME= festival-1.3.1
+WRKSRC= ${WRKDIR}
+CATEGORIES= audio
+MASTER_SITES= ftp://ftp.cstr.ed.ac.uk/pub/festival/1.3.1/ \
+ ftp://cslu.cse.ogi.edu/pub/tts/
+DISTFILES= ${DISTNAME}.tar.gz \
+ speech_tools-1.1.1.tar.gz \
+ OGIresLPC-1.4.tar.gz
+
+MAINTAINER= proff@iq.org
+HOMEPAGE= http://www.cstr.ed.ac.uk/projects/festival.html
+
+DEPENDS+= nas-1.2.5:../nas
+
+USE_GMAKE= yes
+
+SPEECHTOOLS= ${WRKSRC}/speech_tools
+FESTIVAL= ${WRKSRC}/festival
+
+FHOME= ${PREFIX}/share/festival
+
+PKG_COMPILER!= case "`${CC} -v 2>&1`" in *2.6.*) echo gcc26;;\
+ *2.7.*) echo gcc27;;\
+ *2.8.*) echo gcc28;;\
+ *egcs*) echo egcs;;\
+ esac
+
+MAKE_ENV+= PKG_EST_HOME=${SPEECHTOOLS} \
+ PKG_FESTIVAL_HOME=${FESTIVAL} \
+ PKG_COMPILER=${PKG_COMPILER} \
+ PKG_X11BASE=${X11BASE} \
+ PKG_PREFIX=${PREFIX} \
+ EGCS_CC=${CC} \
+ EGCS_CXX=${CXX} \
+ GCC28_CC=${CC} \
+ GCC28_CXX=${CXX} \
+ GCC27_CC=${CC} \
+ GCC27_CXX=${CXX} \
+ GCC26_CC=${CC} \
+ GCC26_CXX=${CXX} \
+ CC=${CC} \
+ CXX=${CXX}
+
+pre-patch:
+ @ ${CP} ${SPEECHTOOLS}/config/config-dist ${SPEECHTOOLS}/config/config && \
+ chmod u+w ${SPEECHTOOLS}/config/config
+ @ ${CP} ${FESTIVAL}/config/config-dist ${FESTIVAL}/config/config && \
+ chmod u+w ${FESTIVAL}/config/config
+
+post-patch:
+ @ ${CP} ${FILESDIR}/top-Makefile ${WRKSRC}/Makefile
+ @ ${CP} ${FILESDIR}/NetBSD.mak ${SPEECHTOOLS}/config/systems/NetBSD.mak
+
+do-install:
+ ${INSTALL_DATA_DIR} ${FHOME}
+ chmod -R u+w,a+r,og-w ${FESTIVAL}/lib
+ find ${FESTIVAL}/lib -type d -print0| xargs -0 chmod a+x
+ cd ${FESTIVAL} && pax -r -w lib examples ${FHOME}
+ ${RM} -f ${FHOME}/lib/etc/NetBSD/audsp
+ ${INSTALL_PROGRAM} ${FESTIVAL}/lib/etc/NetBSD/audsp ${PREFIX}/libexec
+ ${INSTALL_PROGRAM} ${FESTIVAL}/src/main/festival ${PREFIX}/libexec/festival.naked
+ ${INSTALL_PROGRAM} ${FESTIVAL}/src/main/festival_client ${PREFIX}/libexec/festival_client.naked
+ for n in festival.sh festival_client.sh sitevars.scm; \
+ do {\
+ ${SED} "s%@PKG_FESTIVAL_LOCATION@%${FHOME}%; \
+ s%@PKG_PREFIX@%${PREFIX}%" <${FILESDIR}/$$n > ${WRKDIR}/$$n ;} \
+ done
+ ${INSTALL_SCRIPT} ${WRKDIR}/festival.sh ${PREFIX}/bin/festival
+ ${INSTALL_SCRIPT} ${WRKDIR}/festival_client.sh ${PREFIX}/bin/festival_client
+ ${INSTALL_DATA} ${WRKDIR}/sitevars.scm ${FHOME}/lib/sitevars.scm
+ ${INSTALL_MAN} ${FESTIVAL}/doc/festival.1 ${PREFIX}/man/man1/festival.1
+ ${INSTALL_MAN} ${FESTIVAL}/doc/festival_client.1 ${PREFIX}/man/man1/festival_client.1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/festival/files/NetBSD.mak b/audio/festival/files/NetBSD.mak
new file mode 100644
index 00000000000..26854d2f3cb
--- /dev/null
+++ b/audio/festival/files/NetBSD.mak
@@ -0,0 +1,15 @@
+include $(EST)/config/systems/default.mak
+
+## echo -n doesn't work (well only sometimes ?)
+ECHO_N = /usr/bin/printf "%s"
+
+NAWK=awk
+
+NAS_LIB=$(PKG_X11BASE)/lib
+NAS_INCLUDE=$(PKG_X11BASE)/include
+
+X11_LIB=$(PKG_X11BASE)/lib
+X11_INCLUDE=$(PKG_X11BASE)/include
+
+OS_INCLUDES+=-I$(PKG_PREFIX)/include
+OS_LIBS+=-L$(PKG_PREFIX)/lib
diff --git a/audio/festival/files/festival.sh b/audio/festival/files/festival.sh
new file mode 100644
index 00000000000..6d606b8a44e
--- /dev/null
+++ b/audio/festival/files/festival.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+# path for audsp
+PATH=@PKG_PREFIX@/libexec:$PATH
+export PATH
+exec festival.naked --libdir @PKG_FESTIVAL_LOCATION@/lib $*
diff --git a/audio/festival/files/festival_client.sh b/audio/festival/files/festival_client.sh
new file mode 100644
index 00000000000..fc4ba4c944b
--- /dev/null
+++ b/audio/festival/files/festival_client.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+PATH=@PKG_PREFIX@/libexec:$PATH
+export PATH
+exec festival_client.naked @PKG_FESTIVAL_LOCATION@/lib $*
diff --git a/audio/festival/files/md5 b/audio/festival/files/md5
new file mode 100644
index 00000000000..f71be4972a7
--- /dev/null
+++ b/audio/festival/files/md5
@@ -0,0 +1,5 @@
+$NetBSD: md5,v 1.1.1.1 1999/04/04 19:32:33 proff Exp $
+
+MD5 (festival-1.3.1.tar.gz) = 87a2842c112dd6f950721c18986ef112
+MD5 (speech_tools-1.1.1.tar.gz) = 8364260dfe91b65eb7f85aeca0a22d84
+MD5 (OGIresLPC-1.4.tar.gz) = 17621bb20cff4e32c27233e822a255d6
diff --git a/audio/festival/files/sitevars.scm b/audio/festival/files/sitevars.scm
new file mode 100644
index 00000000000..e80dbfa1c73
--- /dev/null
+++ b/audio/festival/files/sitevars.scm
@@ -0,0 +1,2 @@
+(set! system-voice-path '("@PKG_FESTIVAL_LOCATION@/lib/voices"))
+(set! sgml_parse_progname "nsgmls")
diff --git a/audio/festival/files/top-Makefile b/audio/festival/files/top-Makefile
new file mode 100644
index 00000000000..ee190c4fe49
--- /dev/null
+++ b/audio/festival/files/top-Makefile
@@ -0,0 +1,3 @@
+all:
+ cd speech_tools && $(MAKE)
+ cd festival && $(MAKE)
diff --git a/audio/festival/patches/patch-aa b/audio/festival/patches/patch-aa
new file mode 100644
index 00000000000..28685e7d404
--- /dev/null
+++ b/audio/festival/patches/patch-aa
@@ -0,0 +1,12 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/04/04 19:32:33 proff Exp $
+
+--- /tmp/speech_tools/include/EST_unix.h Mon Jan 11 20:43:14 1999
++++ speech_tools/include/EST_unix.h Wed Mar 10 03:20:38 1999
+@@ -49,6 +49,7 @@
+ # include <sys/wait.h>
+ # include <sys/resource.h>
+ # include <dirent.h>
++# define unix 1
+ #elif defined(SYSTEM_IS_WIN32)
+ # include <io.h>
+ # include "win32/EST_unix_win32.h"
diff --git a/audio/festival/patches/patch-ab b/audio/festival/patches/patch-ab
new file mode 100644
index 00000000000..72662fc78f3
--- /dev/null
+++ b/audio/festival/patches/patch-ab
@@ -0,0 +1,47 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/04/04 19:32:34 proff Exp $
+
+--- /tmp/speech_tools/config/config Wed Mar 10 03:24:51 1999
++++ speech_tools/config/config Wed Mar 10 03:04:29 1999
+@@ -15,7 +15,7 @@
+ ## You may need to set this explicitly if automounter or NFS
+ ## side effects cause problems
+
+-EST_HOME := $(shell (cd $(EST); pwd))
++EST_HOME := $(PKG_EST_HOME)
+
+ ###########################################################################
+ ## System type.
+@@ -28,14 +28,18 @@
+ ##
+ ## Examples: sparc_SunOS5 intel_Linux2.0
+
+-SYSTEM_TYPE=$(MACHINETYPE)_$(OSTYPE)$(OSREV)
++#SYSTEM_TYPE=$(MACHINETYPE)_$(OSTYPE)$(OSREV)
++# unforunately the above does not fit in well with NetBSD's multiple
++# architectures and frequent changes of revision level (for people running
++# NetBSD-current)
++SYSTEM_TYPE=NetBSD
+
+ ###########################################################################
+ ## Compiler.
+ ## The definitions are in compilers/$(COMPILER).mak
+ ## Examples: gcc gcc26 suncc egcs gcc28
+
+-COMPILER=gcc
++COMPILER=$(PKG_COMPILER)
+
+ ###########################################################################
+ ## Java system to use if you include the Java interface.
+@@ -77,10 +81,10 @@
+ ## specify a program to play files in a desired format.
+
+ ## NCD's network audio system, This is recommended.
+-# INCLUDE_MODULES += NAS_AUDIO
++INCLUDE_MODULES += NAS_AUDIO
+
+ ## Native audio for your platform (sun, linux, freebsd, irix, windows)
+-INCLUDE_MODULES += NATIVE_AUDIO
++#INCLUDE_MODULES += NATIVE_AUDIO
+
+ ## Special code to run Windows MPLAYER
+ # INCLUDE_MODULES += MPLAYER_AUDIO
diff --git a/audio/festival/patches/patch-ac b/audio/festival/patches/patch-ac
new file mode 100644
index 00000000000..c9fc1106352
--- /dev/null
+++ b/audio/festival/patches/patch-ac
@@ -0,0 +1,23 @@
+$NetBSD: patch-ac,v 1.1.1.1 1999/04/04 19:32:34 proff Exp $
+
+diff -u -r /tmp/festival/doc/Makefile work/festival/doc/Makefile
+--- /tmp/festival/doc/Makefile Mon Jan 25 18:31:38 1999
++++ festival/doc/Makefile Wed Mar 10 06:59:12 1999
+@@ -29,7 +29,7 @@
+ TOP=..
+ DIRNAME=doc
+
+-FESTIVAL=$(TOP)/bin/festival --libdir $(TOP)/lib
++FESTIVAL=$(TOP)/src/main/festival --libdir $(TOP)/lib
+
+ # Include some of EST documentation.
+ DOCXX_EXTRA_FILES = $(EST)/include/EST_Stream.h
+@@ -52,7 +52,7 @@
+ %.1 : %.head %.options %.tail
+ cat $^ >$@
+ %.options : $(TOP)/src/main/%
+- $(TOP)/bin/$* -man_options >$@
++ $(FESTIVAL)$* -man_options >$@
+
+ festival.info: festival.texi festfunc.texi festvars.texi festfeat.texi
+ makeinfo festival.texi
diff --git a/audio/festival/patches/patch-ad b/audio/festival/patches/patch-ad
new file mode 100644
index 00000000000..cd7f2ae7e51
--- /dev/null
+++ b/audio/festival/patches/patch-ad
@@ -0,0 +1,25 @@
+$NetBSD: patch-ad,v 1.1.1.1 1999/04/04 19:32:34 proff Exp $
+
+diff -u -r /tmp/festival/examples/benchmark work/festival/examples/benchmark
+--- /tmp/festival/examples/benchmark Mon Jan 11 21:02:32 1999
++++ festival/examples/benchmark Wed Mar 10 06:59:12 1999
+@@ -1,6 +1,6 @@
+ #!/bin/sh
+
+-default_libdir="/projects/festival/lib"
++default_libdir="$FESTIVAL_HOME/lib"
+
+ while true
+ do
+@@ -15,9 +15,9 @@
+ esac
+ done
+
+-text=${1-"$HOME/projects/festival/examples/benchmark.text"}
++text=${1-"$FESTIVAL_HOME/examples/benchmark.text"}
+
+-for i in . src/main ../src/main $HOME/projects/festival/src/main /cstr/bin
++for i in . src/main ../src/main $FESTIVAL_HOME/src/main
+ do
+ if [ -n "$festival" ]
+ then
diff --git a/audio/festival/patches/patch-ae b/audio/festival/patches/patch-ae
new file mode 100644
index 00000000000..0f6de5d59ce
--- /dev/null
+++ b/audio/festival/patches/patch-ae
@@ -0,0 +1,12 @@
+$NetBSD: patch-ae,v 1.1.1.1 1999/04/04 19:32:34 proff Exp $
+
+--- festival/config/config-dist Mon Jan 11 20:59:22 1999
++++ festival/config/config Thu Mar 11 02:41:30 1999
+@@ -43,6 +43,7 @@
+ # ALSO_INCLUDE += diphone
+ # ALSO_INCLUDE += clunits
+ # ALSO_INCLUDE += rjc_synthesis
++ALSO_INCLUDE+=OGIresLPC
+
+ ###########################################################################
+ ##
diff --git a/audio/festival/pkg/COMMENT b/audio/festival/pkg/COMMENT
new file mode 100644
index 00000000000..783aa1805cc
--- /dev/null
+++ b/audio/festival/pkg/COMMENT
@@ -0,0 +1 @@
+Festival is a general multi-lingual speech synthesis system
diff --git a/audio/festival/pkg/DESCR b/audio/festival/pkg/DESCR
new file mode 100644
index 00000000000..fa0e2647de8
--- /dev/null
+++ b/audio/festival/pkg/DESCR
@@ -0,0 +1,27 @@
+ Festival is a general multi-lingual speech synthesis system
+ developed at CSTR. It offers a full text to speech system with
+ various APIs, as well an environment for development and research
+ of speech synthesis techniques. It is written in C++ with a
+ Scheme-based command interpreter for general control.
+
+ Version 1.3.1 (January 1999) is now available for research,
+ educational and individual use for free. It has the following
+ features
+ * English (British and American), Spanish (mexican) and
+ Welsh text to speech
+ * Externally configurable language independent modules
+ + phonesets, lexicons, letter-to-sound rules, tokenizing,
+ part of speech tagging, intonation and duration.
+ * Waveform synthesizers:
+ + diphone based: residual excited LPC (and PSOLA not for
+ distribution)
+ + MBROLA database support.
+ * Portable (Unix) distribution.
+ * On-line documentation.
+ * SABLE markup, Emacs, client/server (including Java), scripting
+ interfaces.
+
+You will also need to install at least one festvox-* (festival voice)
+package (infact, the festvox packages are dependent on this package).
+
+-Julian Assange <proff@iq.org>
diff --git a/audio/festival/pkg/PLIST b/audio/festival/pkg/PLIST
new file mode 100644
index 00000000000..376a317de34
--- /dev/null
+++ b/audio/festival/pkg/PLIST
@@ -0,0 +1,107 @@
+bin/festival
+bin/festival_client
+libexec/festival.naked
+libexec/festival_client.naked
+libexec/audsp
+man/man1/festival.1
+man/man1/festival_client.1
+share/festival/lib/Makefile
+share/festival/lib/mrpa_phones.scm
+share/festival/lib/mrpa_allophones.scm
+share/festival/lib/radio_phones.scm
+share/festival/lib/holmes_phones.scm
+share/festival/lib/mrpa_durs.scm
+share/festival/lib/klatt_durs.scm
+share/festival/lib/gswdurtreeZ.scm
+share/festival/lib/f2bdurtreeZ.scm
+share/festival/lib/tobi.scm
+share/festival/lib/f2bf0lr.scm
+share/festival/lib/tobi_rules.scm
+share/festival/lib/tilt.scm
+share/festival/lib/tilt_ab.scm
+share/festival/lib/tilt_params.scm
+share/festival/lib/sec.ts20.quad.ngrambin
+share/festival/lib/sec.B.hept.ngrambin
+share/festival/lib/synthesis.scm
+share/festival/lib/siod.scm
+share/festival/lib/init.scm
+share/festival/lib/etc
+share/festival/lib/etc/Makefile
+share/festival/lib/etc/email_filter
+share/festival/lib/etc/NetBSD
+share/festival/lib/etc/NetBSD/.made
+@dirrm share/festival/lib/etc/NetBSD
+@dirrm share/festival/lib/etc
+share/festival/lib/module_description.scm
+share/festival/lib/lexicons.scm
+share/festival/lib/unitdatabase.scm
+share/festival/lib/festival.scm
+share/festival/lib/intonation.scm
+share/festival/lib/duration.scm
+share/festival/lib/pos.scm
+share/festival/lib/phrase.scm
+share/festival/lib/voices.scm
+share/festival/lib/tts.scm
+share/festival/lib/festdoc.scm
+share/festival/lib/languages.scm
+share/festival/lib/token.scm
+share/festival/lib/mbrola.scm
+share/festival/lib/display.scm
+share/festival/lib/postlex.scm
+share/festival/lib/tokenpos.scm
+share/festival/lib/festtest.scm
+share/festival/lib/cslush.scm
+share/festival/lib/web.scm
+share/festival/lib/cart_aux.scm
+share/festival/lib/pauses.scm
+share/festival/lib/scfg.scm
+share/festival/lib/mettree.scm
+share/festival/lib/java.scm
+share/festival/lib/engmorph.scm
+share/festival/lib/engmorphsyn.scm
+share/festival/lib/lts.scm
+share/festival/lib/lts_build.scm
+share/festival/lib/Sable.v0_2.dtd
+share/festival/lib/sable-latin.ent
+share/festival/lib/festival.el
+share/festival/lib/scfg_wsj_wp20.gram
+share/festival/lib/email-mode.scm
+share/festival/lib/ogimarkup-mode.scm
+share/festival/lib/sable-mode.scm
+share/festival/lib/soleml-mode.scm
+share/festival/lib/sitevars.scm
+@dirrm share/festival/lib
+share/festival/examples/Makefile
+share/festival/examples/webdemo.scm
+share/festival/examples/ex1.email
+share/festival/examples/ex1.ogi
+share/festival/examples/example.sable
+share/festival/examples/example2.sable
+share/festival/examples/tobi.stml
+share/festival/examples/example.th
+share/festival/examples/intro.text
+share/festival/examples/spintro.text
+share/festival/examples/benchmark.text
+share/festival/examples/saytime.sh
+share/festival/examples/text2pos.sh
+share/festival/examples/latest.sh
+share/festival/examples/scfg_parse_text.sh
+share/festival/examples/text2wave.sh
+share/festival/examples/make_utts.sh
+share/festival/examples/dumpfeats.sh
+share/festival/examples/durmeanstd.sh
+share/festival/examples/benchmark
+share/festival/examples/festival_client.pl
+share/festival/examples/toksearch.scm
+share/festival/examples/th-mode.scm
+share/festival/examples/addr-mode.scm
+share/festival/examples/saytime
+share/festival/examples/text2pos
+share/festival/examples/latest
+share/festival/examples/scfg_parse_text
+share/festival/examples/text2wave
+share/festival/examples/make_utts
+share/festival/examples/dumpfeats
+share/festival/examples/durmeanstd
+@dirrm share/festival/examples
+@dirrm share/festival