$ cvs import ...

I ports/audio/festival/core

real fucking cute. fuck you, you fucking fuck!
This commit is contained in:
jolan 2004-07-11 06:27:07 +00:00
parent a21c75414f
commit 37e8fff307
18 changed files with 459 additions and 0 deletions

View File

@ -0,0 +1,94 @@
# $OpenBSD: Makefile,v 1.1 2004/07/11 06:27:07 jolan Exp $
# doesn't compile with gcc3
NOT_FOR_ARCHS= amd64 hppa sparc64
COMMENT= "general multi-lingual speech synthesis system"
V= 1.4.3
DISTNAME= festival-${V}-release
PKGNAME= ${DISTNAME:S/-release//}
CATEGORIES= audio
MASTER_SITES= http://www.cstr.ed.ac.uk/download/festival/${V}/ \
http://festvox.org/packed/festival/${V}/ \
http://www.speech.cs.cmu.edu/festival/cstr/festival/${V}/
MASTER_SITES0= http://mirrors.protection.cx/~jolan/
DIST_SUBDIR= festival
DISTFILES= ${DISTNAME}.tar.gz speech_tools-1.2.3-release.tar.gz
SUPDISTFILES= OGIresLPC-2.0.9.tar.gz:0
HOMEPAGE= http://www.cstr.ed.ac.uk/projects/festival/
# BSD-like
PERMIT_DISTFILES_CDROM?=Yes
PERMIT_DISTFILES_FTP= Yes
PERMIT_PACKAGE_CDROM?= Yes
PERMIT_PACKAGE_FTP= Yes
WRKDIST= ${WRKDIR}
USE_GMAKE= Yes
SPEECH= ${WRKSRC}/speech_tools
FESTIVAL= ${WRKSRC}/festival
MAKE_ENV+= CC="${CC}" \
CXX="${CXX}" \
CFLAGS="${CFLAGS}" \
CXXFLAGS="${CXXFLAGS}" \
PKG_EST_HOME="${SPEECH}" \
EST_HOME="${SPEECH}" \
FESTIVAL_BUILD_HOME="${FESTIVAL}"
CONFIGURE_STYLE=gnu
EXAMPLEDIR= ${PREFIX}/share/examples/festival
SHAREDIR= ${PREFIX}/lib/festival
FLAVORS= ogi
FLAVOR?=
.if ${FLAVOR:L:Mogi}
DISTFILES+= OGIresLPC-2.0.9.tar.gz:0
PERMIT_DISTFILES_CDROM= "no fee"
PERMIT_PACKAGE_CDROM= "no fee"
.endif
post-patch:
@cp ${FILESDIR}/OpenBSD.mak ${WRKSRC}/speech_tools/config/systems/OpenBSD.mak
@cp ${FILESDIR}/Makefile ${WRKSRC}
do-configure:
@cd ${FESTIVAL} && ${SETENV} ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS}
@cd ${SPEECH} && ${SETENV} ${CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS}
.if ${FLAVOR:L:Mogi}
@printf "ALSO_INCLUDE += OGIcommon\nALSO_INCLUDE += OGIdbase\nALSO_INCLUDE += OGIresLPC\n" >> ${FESTIVAL}/config/config
.endif
post-build:
@perl -pi -e s,'/bin/festival','${PREFIX}/bin/festival', ${WRKBUILD}/festival/bin/text2wave
do-install:
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
${INSTALL_DATA_DIR} ${EXAMPLEDIR}/songs
${INSTALL_DATA_DIR} ${SHAREDIR}
.for EXT in dtd el ent gram ngrambin properties scm
${INSTALL_DATA} ${WRKSRC}/festival/lib/*.${EXT} ${SHAREDIR}
.endfor
${INSTALL_PROGRAM} ${FESTIVAL}/lib/etc/OpenBSD/audsp ${PREFIX}/bin
${INSTALL_PROGRAM} ${FESTIVAL}/src/main/festival ${PREFIX}/bin
${INSTALL_PROGRAM} ${FESTIVAL}/src/main/festival_client ${PREFIX}/bin
${INSTALL_SCRIPT} ${FESTIVAL}/bin/festival_server ${PREFIX}/bin
${INSTALL_SCRIPT} ${FESTIVAL}/bin/festival_server_control ${PREFIX}/bin
${INSTALL_SCRIPT} ${FESTIVAL}/bin/text2wave ${PREFIX}/bin
${INSTALL_MAN} ${FESTIVAL}/doc/festival.1 ${PREFIX}/man/man1/festival.1
${INSTALL_MAN} ${FESTIVAL}/doc/festival_client.1 ${PREFIX}/man/man1/festival_client.1
.for EXT in dtd scm stml tar text
${INSTALL_DATA} ${FESTIVAL}/examples/*.${EXT} ${EXAMPLEDIR}
.endfor
${INSTALL_DATA} ${FESTIVAL}/examples/ex1.* ${EXAMPLEDIR}
${INSTALL_DATA} ${FESTIVAL}/examples/example* ${EXAMPLEDIR}
${INSTALL_DATA} ${FESTIVAL}/examples/festival_client.* ${EXAMPLEDIR}
${INSTALL_SCRIPT} ${FESTIVAL}/examples/{dumpfeats,durmeanstd,latest,make_utts,saytime,scfg_parse_text,text2pos,text2wave} ${EXAMPLEDIR}
${INSTALL_DATA} ${FESTIVAL}/examples/songs/*.xml ${EXAMPLEDIR}/songs
.include <bsd.port.mk>

View File

@ -0,0 +1,9 @@
MD5 (festival/OGIresLPC-2.0.9.tar.gz) = abd5246049210028a24a5c1a349d21c7
MD5 (festival/festival-1.4.3-release.tar.gz) = c070523bea2baa0bcaa2d922481abbb5
MD5 (festival/speech_tools-1.2.3-release.tar.gz) = 783051edfa493b5325ac3ff205bdf265
RMD160 (festival/OGIresLPC-2.0.9.tar.gz) = 9ffcfd84c21f5598263f964f9aefa03698c1f5e7
RMD160 (festival/festival-1.4.3-release.tar.gz) = 3fd455685d699ba12d1a007eba7fc9f74cb58dea
RMD160 (festival/speech_tools-1.2.3-release.tar.gz) = 46fd77cd23033099bb646e35ab3415362ed05d25
SHA1 (festival/OGIresLPC-2.0.9.tar.gz) = e54b7d3f7ed1696a6eeca0fe1695a099d2ed3712
SHA1 (festival/festival-1.4.3-release.tar.gz) = 7705b711b738426b27d1275f8443327ccd8dd8de
SHA1 (festival/speech_tools-1.2.3-release.tar.gz) = 8227d9820c6c25c9e5a0d02d7dcae00116e368df

View File

@ -0,0 +1,4 @@
# $OpenBSD: Makefile,v 1.1 2004/07/11 06:27:07 jolan Exp $
all:
cd speech_tools && $(MAKE)
cd festival && $(MAKE)

View File

@ -0,0 +1,5 @@
# $OpenBSD: OpenBSD.mak,v 1.1 2004/07/11 06:27:07 jolan Exp $
include $(EST)/config/systems/default.mak
ECHO_N = /usr/bin/printf "%s"
NATIVE_AUDIO_MODULE= FREEBSD16
NAWK=awk

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-festival_config_config_in,v 1.1 2004/07/11 06:27:07 jolan Exp $
--- festival/config/config.in.orig 2001-04-04 08:12:35.000000000 -0500
+++ festival/config/config.in 2004-05-06 15:33:21.000000000 -0500
@@ -20,7 +20,7 @@ EST=$(TOP)/../speech_tools
## You may need to set this explicitly if automounter or NFS
## side effects cause problems
-FESTIVAL_HOME := $(shell (cd $(TOP); pwd))
+FESTIVAL_HOME := $(PKG_FESTIVAL_HOME)
###########################################################################
## Feature selection.

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-festival_config_project_mak,v 1.1 2004/07/11 06:27:07 jolan Exp $
--- festival/config/project.mak.orig 2003-01-24 18:15:34.000000000 -0600
+++ festival/config/project.mak 2004-05-06 15:39:06.000000000 -0500
@@ -70,8 +70,8 @@ ALL_MODULES = \
# Place where programs are compiled
-PROJECT_MAIN_DIR=$(FESTIVAL_HOME)/src/main
-PROJECT_SCRIPTS_DIR=$(FESTIVAL_HOME)/src/scripts
+PROJECT_MAIN_DIR=$(FESTIVAL_BUILD_HOME)/src/main
+PROJECT_SCRIPTS_DIR=$(FESTIVAL_BUILD_HOME)/src/scripts
# Where the main RCS tree is, probably only used within CSTR

View File

@ -0,0 +1,24 @@
$OpenBSD: patch-festival_doc_Makefile,v 1.1 2004/07/11 06:27:07 jolan Exp $
--- festival/doc/Makefile.orig 2001-04-04 06:55:21.000000000 -0500
+++ festival/doc/Makefile 2004-05-06 16:04:24.000000000 -0500
@@ -44,7 +44,7 @@ MAIN_TO_DOCUMENT=
EXAMPLE_TO_DOCUMENT=
-FESTIVAL=$(TOP)/bin/festival --libdir $(TOP)/lib
+FESTIVAL=$(TOP)/src/main/festival --libdir $(TOP)/lib
# Include some of EST documentation.
DOCXX_EXTRA_FILES =
@@ -72,9 +72,9 @@ include $(EST)/config/rules/doc.mak
%.1 : %.head %.options %.tail
cat $^ >$@
%.options : $(TOP)/src/main/%
- $(TOP)/bin/$* -man_options >$@
+ $(FESTIVAL)$* -man_options >$@
%.options : $(TOP)/src/main/%.exe
- $(TOP)/bin/$* -man_options >$@
+ $(FESTIVAL)$* -man_options >$@
festival.info: festival.texi festfunc.texi festvars.texi festfeat.texi
@ if [ ! -d info ] ; \

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-festival_lib_voices_scm,v 1.1 2004/07/11 06:27:07 jolan Exp $
--- festival/lib/voices.scm.orig 2003-01-20 06:07:00.000000000 -0600
+++ festival/lib/voices.scm 2004-05-20 01:42:08.000000000 -0500
@@ -182,6 +182,10 @@ the default voice. [see Site initializat
ked_diphone
don_diphone
rab_diphone
+ aec_diphone
+ jph_diphone
+ mwm_diphone
+ tll_diphone
en1_mbrola
us1_mbrola
us2_mbrola

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-festival_src_arch_festival_Makefile,v 1.1 2004/07/11 06:27:07 jolan Exp $
--- festival/src/arch/festival/Makefile.orig 2001-04-04 06:55:20.000000000 -0500
+++ festival/src/arch/festival/Makefile 2004-05-07 10:49:02.000000000 -0500
@@ -62,6 +62,6 @@ LOCAL_DEFINES += $(FESTIVAL_DEFINES)
LOCAL_INCLUDES += $(FESTIVAL_INCLUDES)
festival.o: festival.cc
- $(CXX_COMMAND_TEMPLATES) -DFTNAME='$(PROJECT_NAME)' -DFTLIBDIRC=$(FTLIBDIR) -DFTVERSION='$(PROJECT_VERSION)' -DFTSTATE='$(PROJECT_STATE)' -DFTDATE='$(PROJECT_DATE)' -DFTOSTYPE=\"$(SYSTEM_TYPE)\" festival.cc
+ $(CXX_COMMAND_TEMPLATES) -DFTNAME='$(PROJECT_NAME)' -DFTLIBDIRC="$(PREFIX)/lib/festival" -DFTVERSION='$(PROJECT_VERSION)' -DFTSTATE='$(PROJECT_STATE)' -DFTDATE='$(PROJECT_DATE)' -DFTOSTYPE=\"$(SYSTEM_TYPE)\" festival.cc

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-festival_src_main_Makefile,v 1.1 2004/07/11 06:27:07 jolan Exp $
--- festival/src/main/Makefile.orig 2001-04-04 06:55:20.000000000 -0500
+++ festival/src/main/Makefile 2004-05-06 10:34:54.000000000 -0500
@@ -50,13 +50,13 @@ include $(EST)/config/rules/bin_process.
ETCDIR=$(TOP)/lib/etc/$(SYSTEM_TYPE)
festival: festival_main.o $(LIBDEPS)
- $(LINK_COMMAND) -o festival festival_main.o $(LIBS)
+ $(LINK_COMMAND) -o festival festival_main.o $(LIBS) -lossaudio
festival_client: festival_client.o $(REQUIRED_LIBDEPS)
- $(LINK_COMMAND) -o festival_client festival_client.o $(LIBS)
+ $(LINK_COMMAND) -o festival_client festival_client.o $(LIBS) -lossaudio
$(ETCDIR)/audsp: $(ETCDIR)/.made audsp.o $(LIBDEPS)
- $(LINK_COMMAND) -o $(ETCDIR)/audsp audsp.o $(LIBS)
+ $(LINK_COMMAND) -o $(ETCDIR)/audsp audsp.o $(LIBS) -lossaudio
# Can't just rely on the dir as it gets updated with new files
# check for the data of a file created in etcdir

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-speech_tools_audio_voxware_cc,v 1.1 2004/07/11 06:27:07 jolan Exp $
--- speech_tools/audio/voxware.cc.orig 2002-12-02 08:14:58.000000000 -0600
+++ speech_tools/audio/voxware.cc 2004-05-13 21:13:03.000000000 -0500
@@ -61,7 +61,7 @@
#include "EST_error.h"
#ifdef SUPPORT_FREEBSD16
-#include <machine/soundcard.h>
+#include <soundcard.h>
#include <fcntl.h>
int freebsd16_supported = TRUE;
int linux16_supported = FALSE;
@@ -150,7 +150,7 @@ int play_voxware_wave(EST_Wave &inwave,
if (al.present("-audiodevice"))
audiodevice = al.val("-audiodevice");
else
- audiodevice = "/dev/dsp";
+ audiodevice = "/dev/audio";
if ((audio = open(audiodevice,O_WRONLY)) == -1)
{
@@ -262,7 +262,7 @@ int record_voxware_wave(EST_Wave &inwave
if (al.present("-audiodevice"))
audiodevice = al.val("-audiodevice");
else
- audiodevice = "/dev/dsp";
+ audiodevice = "/dev/audio";
sample_rate = al.ival("-sample_rate");

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-speech_tools_config_compilers_gcc295_mak,v 1.1 2004/07/11 06:27:07 jolan Exp $
--- speech_tools/config/compilers/gcc295.mak.orig 2004-05-06 15:03:05.000000000 -0500
+++ speech_tools/config/compilers/gcc295.mak 2004-05-06 15:02:28.000000000 -0500
@@ -46,8 +46,8 @@ ifndef GCC295
GCC295 = gcc
endif
-CC= $(GCC295)
-CXX = $(GCC295)
+#CC= $(GCC295)
+#CXX = $(GCC295)
CXXFLAGS += -fguiding-decls

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-speech_tools_config_compilers_gcc_defaults_mak,v 1.1 2004/07/11 06:27:07 jolan Exp $
--- speech_tools/config/compilers/gcc_defaults.mak.orig 2002-11-29 07:34:50.000000000 -0600
+++ speech_tools/config/compilers/gcc_defaults.mak 2004-05-06 15:00:52.000000000 -0500
@@ -38,14 +38,14 @@
## ##
###########################################################################
-CC=gcc
-CXX =gcc
+#CC=gcc
+#CXX =gcc
COMPILER_DESC=FSF gcc
COMPILER_VERSION_COMMAND=$(CXX) -v 2>&1 | tail -1 | sed -e 's/^....//'
-CFLAGS = $(GCC_SYSTEM_OPTIONS) $(CC_OTHER_FLAGS)
-CXXFLAGS = $(GCC_SYSTEM_OPTIONS) -fno-implicit-templates $(CC_OTHER_FLAGS)
+CFLAGS += $(GCC_SYSTEM_OPTIONS) $(CC_OTHER_FLAGS)
+CXXFLAGS += $(GCC_SYSTEM_OPTIONS) -fno-implicit-templates $(CC_OTHER_FLAGS)
DEBUG_CCFLAGS = -g
DEBUG_CXXFLAGS = -g

View File

@ -0,0 +1,30 @@
$OpenBSD: patch-speech_tools_config_config_in,v 1.1 2004/07/11 06:27:07 jolan Exp $
--- speech_tools/config/config.in.orig 2002-07-22 17:58:44.000000000 -0500
+++ speech_tools/config/config.in 2004-05-06 14:57:04.000000000 -0500
@@ -28,7 +28,7 @@ EST_HOME := $(shell (cd $(EST); pwd))
##
## Examples: sparc_SunOS5 intel_Linux2.0
-SYSTEM_TYPE=$(MACHINETYPE)_$(OSTYPE)$(OSREV)
+SYSTEM_TYPE=OpenBSD
###########################################################################
## Compiler.
@@ -56,7 +56,7 @@ CONFIGURATION =
##
## OPTIMISE=4 will turn off DEBUG
-OPTIMISE=3
+#OPTIMISE=3
WARN=1
# VERBOSE=1
# DEBUG=1
@@ -65,7 +65,7 @@ WARN=1
## Directory specific selections which override the above
-OPTIMISE_sigpr = 3
+#OPTIMISE_sigpr = 3
###########################################################################
## Feature selection.

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-speech_tools_config_modules_freebsd16_audio_mak,v 1.1 2004/07/11 06:27:07 jolan Exp $
--- speech_tools/config/modules/freebsd16_audio.mak.orig 2001-04-04 08:11:27.000000000 -0500
+++ speech_tools/config/modules/freebsd16_audio.mak 2004-05-06 10:14:35.000000000 -0500
@@ -44,6 +44,8 @@ MOD_DESC_FREEBSD16_AUDIO=Native audio mo
AUDIO_DEFINES += -DSUPPORT_FREEBSD16
+MODULE_EXTRA_LIBS= -lossaudio
+
#ifdef INCLUDE_JAVA_CPP
# AUDIO_DEFINES += -DTHREAD_SAFETY
# MODULE_LIBS += -lpthread

View File

@ -0,0 +1,11 @@
Festival offers a general framework for building speech synthesis
systems as well as including examples of various modules. As a whole it
offers full text to speech through a number APIs. Festival is
multi-lingual (currently English, Welsh and Spanish) though English is
the most advanced.
FLAVORs:
asterisk - hooks for the Asterisk PBX
ogi - Oregon Graduate Institute's residual LPC Synthesizer
Usage is restricted to non-commercial entities.

View File

@ -0,0 +1,17 @@
@comment $OpenBSD: PFRAG.ogi,v 1.1 2004/07/11 06:27:08 jolan Exp $
lib/festival/ogi_effect.scm
lib/festival/ogi_enhance.scm
lib/festival/ogi_gswdurtreeZ_wb.scm
lib/festival/ogi_hack.scm
lib/festival/ogi_kddurtreeZ_wb.scm
lib/festival/ogi_klatt_durs_wb.scm
lib/festival/ogi_languages.scm
lib/festival/ogi_lexicons.scm
lib/festival/ogi_lts_worldbet.scm
lib/festival/ogi_phrase.scm
lib/festival/ogi_postlex.scm
lib/festival/ogi_synthesis.scm
lib/festival/ogi_token.scm
lib/festival/ogi_unitsel.scm
lib/festival/ogi_wordsynth.scm
lib/festival/ogi_worldbet_phones.scm

View File

@ -0,0 +1,116 @@
@comment $OpenBSD: PLIST,v 1.1 2004/07/11 06:27:08 jolan Exp $
%%ogi%%
bin/audsp
bin/festival
bin/festival_client
bin/festival_server
bin/festival_server_control
bin/text2wave
lib/festival/Sable.v0_2.dtd
lib/festival/Singing.v0_1.dtd
lib/festival/apml.scm
lib/festival/apml_f2bf0lr.scm
lib/festival/cart_aux.scm
lib/festival/clunits.scm
lib/festival/clunits_build.scm
lib/festival/cmusphinx2_phones.scm
lib/festival/cslush.scm
lib/festival/cstr.scm
lib/festival/darpa_phones.scm
lib/festival/display.scm
lib/festival/duration.scm
lib/festival/email-mode.scm
lib/festival/engmorph.scm
lib/festival/engmorphsyn.scm
lib/festival/f2bdurtreeZ.scm
lib/festival/f2bf0lr.scm
lib/festival/festdoc.scm
lib/festival/festival.el
lib/festival/festival.scm
lib/festival/festtest.scm
lib/festival/fringe.scm
lib/festival/gswdurtreeZ.scm
lib/festival/holmes_phones.scm
lib/festival/init.scm
lib/festival/intonation.scm
lib/festival/java.scm
lib/festival/klatt_durs.scm
lib/festival/languages.scm
lib/festival/lexicons.scm
lib/festival/lts.scm
lib/festival/lts_build.scm
lib/festival/mbrola.scm
lib/festival/mettree.scm
lib/festival/module_description.scm
lib/festival/mrpa_allophones.scm
lib/festival/mrpa_durs.scm
lib/festival/mrpa_phones.scm
lib/festival/ogimarkup-mode.scm
lib/festival/pauses.scm
lib/festival/phoneset.scm
lib/festival/phrase.scm
lib/festival/pos.scm
lib/festival/postlex.scm
lib/festival/radio_phones.scm
lib/festival/sable-latin.ent
lib/festival/sable-mode.scm
lib/festival/scfg.scm
lib/festival/scfg_wsj_wp20.gram
lib/festival/sec.B.hept.ngrambin
lib/festival/sec.ts20.quad.ngrambin
lib/festival/singing-mode.scm
lib/festival/siod.scm
lib/festival/soleml-mode.scm
lib/festival/speech.properties
lib/festival/synthesis.scm
lib/festival/tilt.scm
lib/festival/tobi.scm
lib/festival/tobi_rules.scm
lib/festival/token.scm
lib/festival/tokenpos.scm
lib/festival/tts.scm
lib/festival/voices.scm
lib/festival/web.scm
man/man1/festival.1
man/man1/festival_client.1
share/examples/festival/addr-mode.scm
share/examples/festival/apml.dtd
share/examples/festival/benchmark.text
share/examples/festival/dumpfeats
share/examples/festival/durmeanstd
share/examples/festival/ex1.email
share/examples/festival/ex1.ogi
share/examples/festival/example.apml
share/examples/festival/example.sable
share/examples/festival/example.th
share/examples/festival/example2.sable
share/examples/festival/festival_client.c
share/examples/festival/festival_client.h
share/examples/festival/festival_client.pl
share/examples/festival/intro.text
share/examples/festival/latest
share/examples/festival/make_utts
share/examples/festival/saytime
share/examples/festival/scfg_parse_text
share/examples/festival/songs/america1.xml
share/examples/festival/songs/america2.xml
share/examples/festival/songs/america3.xml
share/examples/festival/songs/america4.xml
share/examples/festival/songs/daisy.xml
share/examples/festival/songs/doremi.xml
share/examples/festival/songs/lochlomond.xml
share/examples/festival/songs/spice1.xml
share/examples/festival/songs/spice2.xml
share/examples/festival/songs/spice3.xml
share/examples/festival/songs/spice4.xml
share/examples/festival/speech_pm_1.0.tar
share/examples/festival/spintro.text
share/examples/festival/text2pos
share/examples/festival/text2wave
share/examples/festival/th-mode.scm
share/examples/festival/tobi.stml
share/examples/festival/toksearch.scm
share/examples/festival/webdemo.scm
@dirrm share/examples/festival/songs
@dirrm share/examples/festival
@dirrm lib/festival